1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

get_media: add http:// if the user forgot to add it

This commit is contained in:
Johan Andersson 2015-09-03 22:05:48 +02:00
parent 45a5c0ee38
commit 01a265427f

View File

@ -127,7 +127,8 @@ class Options(object):
self.exclude = None
def get_media(url, options):
if "http" not in url[:4]:
url = "http://%s" % url
stream = service_handler(sites, url)
if not stream:
url, stream = Generic().get(sites, url)