deltabit: common workaround kodi 18

This commit is contained in:
mac12m99
2019-05-29 18:54:52 +02:00
parent 15c7aa8dc9
commit 9aedaa171b

View File

@@ -30,6 +30,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
sources = scrapertools.find_single_match(data, 'sources: \[([^\]]+)\]')
for media_url in scrapertools.find_multiple_matches(sources, '"([^"]+)"'):
media_url = media_url.replace('https:', 'http:')
ext = scrapertools.get_filename_from_url(media_url)[-4:]
video_urls.append(["%s [deltabit]" % (ext), media_url])
return video_urls