1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

get_media: handle generic as a regular service.

This commit is contained in:
Johan Andersson 2015-09-06 16:03:26 +02:00
parent 8507219bf0
commit 411381a653

View File

@ -131,7 +131,8 @@ def get_media(url, options):
url = "http://%s" % url
stream = service_handler(sites, url)
if not stream:
url, stream = Generic().get(sites, url)
generic = Generic(url)
url, stream = generic.get(sites)
if not stream:
if url.find(".f4m") > 0 or url.find(".m3u8") > 0:
stream = Raw(url)