projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd26a7
)
[hotstar] Extract more formats (closes #22323)
author
Sergey M․
<dstftw@gmail.com>
Wed, 18 Sep 2019 20:00:19 +0000
(
03:00
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 18 Sep 2019 20:00:19 +0000
(
03:00
+0700)
youtube_dl/extractor/hotstar.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/hotstar.py
b/youtube_dl/extractor/hotstar.py
index 79d5bbb2e8bb297e099efb44b2d5451eb06562ca..c7545a1e66cc168b025c4888e315bc3e41e60cf9 100644
(file)
--- a/
youtube_dl/extractor/hotstar.py
+++ b/
youtube_dl/extractor/hotstar.py
@@
-3,6
+3,7
@@
from __future__ import unicode_literals
import hashlib
import hmac
+import re
import time
import uuid
@@
-126,6
+127,8
@@
class HotStarIE(HotStarBaseIE):
format_url = url_or_none(playback_set.get('playbackUrl'))
if not format_url:
continue
+ format_url = re.sub(
+ r'(?<=//staragvod)(\d)', r'web\1', format_url)
tags = str_or_none(playback_set.get('tagsCombination')) or ''
if tags and 'encryption:plain' not in tags:
continue