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:
parent
45a5c0ee38
commit
01a265427f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user