aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/hotstar.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-09-19 03:00:19 +0700
committerSergey M․ <dstftw@gmail.com>2019-09-19 03:00:19 +0700
commit1cb812d3c257b3f6d3c07ccabcbdebd0190fbec4 (patch)
tree5e5b9ef9179aa4ec8b350ab72666504b8b4ef0c7 /youtube_dl/extractor/hotstar.py
parent6fd26a7d4a851b260c56974d77911804c09ff816 (diff)
[hotstar] Extract more formats (closes #22323)
Diffstat (limited to 'youtube_dl/extractor/hotstar.py')
-rw-r--r--youtube_dl/extractor/hotstar.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/hotstar.py b/youtube_dl/extractor/hotstar.py
index 79d5bbb2e..c7545a1e6 100644
--- 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