put in order the episodes starting from 1x01

in matches[::-1]: set episodes in order
This commit is contained in:
KoDiGo14
2017-08-04 12:09:32 -05:00
committed by GitHub
parent 9b10f1df05
commit 10439f4830

View File

@@ -174,7 +174,7 @@ def episodiosxtemp(item):
patron = '<td><h3 class=".*?href="([^"]+)".*?">([^<]+).*?td>'
matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedurl, scrapedtitle in matches:
for scrapedurl, scrapedtitle in matches[::-1]:
url = scrapedurl
contentEpisodeNumber = re.findall(r'.*?x([^\/]+)\/', url)
title = scrapedtitle