mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
Merge remote-tracking branch 'jcarlosgarciasegovia/master'
This commit is contained in:
commit
f2e237adc8
1 changed files with 15 additions and 0 deletions
|
@ -2165,6 +2165,21 @@ class BlipTVIE(InfoExtractor):
|
||||||
self._downloader.trouble(u'ERROR: invalid URL: %s' % url)
|
self._downloader.trouble(u'ERROR: invalid URL: %s' % url)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if '/play/' in url:
|
||||||
|
request = compat_urllib_request.Request(url)
|
||||||
|
response = compat_urllib_request.urlopen(request)
|
||||||
|
redirecturl = response.geturl()
|
||||||
|
hashindex = redirecturl.find('#')
|
||||||
|
if hashindex!=-1:
|
||||||
|
hash = redirecturl[hashindex+1:]
|
||||||
|
params = compat_parse_qs(hash)
|
||||||
|
files = params['file']
|
||||||
|
for file in files:
|
||||||
|
match = re.search('/(\d+)',file)
|
||||||
|
if match:
|
||||||
|
file_id = match.group(1)
|
||||||
|
url = 'http://blip.tv/a/a-'+file_id
|
||||||
|
|
||||||
if '?' in url:
|
if '?' in url:
|
||||||
cchar = '&'
|
cchar = '&'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue