Merge pull request #12 from KoDiGo14/patch-1

puts in order the episodes starting from 1x01
This commit is contained in:
Alfa
2017-08-04 19:54:05 -04:00
committed by GitHub
+1 -1
View File
@@ -174,7 +174,7 @@ def episodiosxtemp(item):
patron = '<td><h3 class=".*?href="([^"]+)".*?">([^<]+).*?td>' patron = '<td><h3 class=".*?href="([^"]+)".*?">([^<]+).*?td>'
matches = re.compile(patron, re.DOTALL).findall(data) matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedurl, scrapedtitle in matches: for scrapedurl, scrapedtitle in matches[::-1]:
url = scrapedurl url = scrapedurl
contentEpisodeNumber = re.findall(r'.*?x([^\/]+)\/', url) contentEpisodeNumber = re.findall(r'.*?x([^\/]+)\/', url)
title = scrapedtitle title = scrapedtitle