aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-12-12 18:16:45 +0100
committerRemita Amine <remitamine@gmail.com>2017-12-12 18:16:45 +0100
commit15960255fe3caaae58132116d772d1c1bcf415fa (patch)
tree9b3ac5a87e6dba2f7276002882d70482012a4469 /youtube_dl
parent6b2d8c91823c8f4c5dcda42cf174ab5468c44661 (diff)
[tbs] fix typo
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/tbs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tbs.py b/youtube_dl/extractor/tbs.py
index 460bc5d74..eab22c38f 100644
--- a/youtube_dl/extractor/tbs.py
+++ b/youtube_dl/extractor/tbs.py
@@ -36,8 +36,7 @@ class TBSIE(TurnerBaseIE):
}]
def _real_extract(self, url):
- domain, display_id = re.match(self._VALID_URL, url).groups()
- site = domain[:3]
+ site, display_id = re.match(self._VALID_URL, url).groups()
webpage = self._download_webpage(url, display_id)
video_data = self._parse_json(self._search_regex(
r'<script[^>]+?data-drupal-selector="drupal-settings-json"[^>]*?>({.+?})</script>',
@@ -62,7 +61,7 @@ class TBSIE(TurnerBaseIE):
'http://www.%s.com/service/token_spe' % site,
m3u8_url, media_id, {
'url': url,
- 'site_name': site.upper(),
+ 'site_name': site[:3].upper(),
'auth_required': video_data.get('authRequired') == '1',
})
formats.extend(self._extract_m3u8_formats(