Fix Dreamsub

This commit is contained in:
Alhaziel
2020-01-22 20:56:32 +01:00
parent e3d20d6453
commit ef03a17f04
+3 -3
View File
@@ -111,15 +111,15 @@ def findvideos(item):
itemlist = [] itemlist = []
support.log() support.log()
matches = support.match(item, patron=r'<a href="([^"]+)"', patronBlock=r'<div style="white-space: (.*?)<div id="main-content"') matches = support.match(item, patron=r'href="([^"]+)"', patronBlock=r'<div style="white-space: (.*?)<div id="main-content"')
if not matches.matches: if not matches.matches and item.contentType != 'episode':
item.data = matches.data item.data = matches.data
item.contentType = 'tvshow' item.contentType = 'tvshow'
return episodios(item) return episodios(item)
# matches.matches.sort() # matches.matches.sort()
support.log('VIDEO')
for url in matches.matches: for url in matches.matches:
lang = url.split('/')[-2] lang = url.split('/')[-2]
if 'ita' in lang.lower(): if 'ita' in lang.lower():