doomtv: fix

This commit is contained in:
Intel1
2017-12-15 14:35:14 -05:00
committed by GitHub
parent afaf2fd4b4
commit 5729e04cb5
+2
View File
@@ -225,6 +225,8 @@ def findvideos(item):
#itemlist = get_url(item)
data = httptools.downloadpage(item.url).data
data = re.sub(r'"|\n|\r|\t|&nbsp;|<br>|\s{2,}', "", data)
url_m3u8 = scrapertools.find_single_match(data, '<source src=(.*?) type=application/x-mpegURL/>')
itemlist.append(item.clone(url=url_m3u8, action='play'))
patron = 'id=(tab\d+)><div class=movieplay><(?:iframe|script) src=(.*?)(?:scrolling|><\/script>)'
matches = re.compile(patron, re.DOTALL).findall(data)