ottimizzazione filmpertutti e serietvu

This commit is contained in:
marco
2020-03-27 10:18:46 +01:00
parent df94b062da
commit cb6463ef09
2 changed files with 0 additions and 6 deletions

View File

@@ -156,9 +156,6 @@ def newest(categoria):
def findvideos(item):
if item.contentType == 'movie':
data = httptools.downloadpage(item.url).data
toUnshorten = scrapertools.find_multiple_matches(data, 'https?://buckler.link/[a-zA-Z0-9]+')
for link in toUnshorten:
data += '\n' + httptools.downloadpage(link, follow_redirects=False).headers["Location"]
return support.server(item, data=data)
else:
return support.server(item, item.url)

View File

@@ -111,9 +111,6 @@ def findvideos(item):
log()
if item.args != 'update':
data = item.url
toUnshorten = scrapertools.find_multiple_matches(data, 'https?://buckler.link/[a-zA-Z0-9]+')
for link in toUnshorten:
data += '\n' + httptools.downloadpage(link, follow_redirects=False).headers["Location"]
return support.server(item, data=data)
else:
itemlist = []