diff options
author | LE <llacb47@users.noreply.github.com> | 2021-10-17 22:28:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 07:58:20 +0530 |
commit | 01b052b2b19609a5b0f54db8fa2989562dedbdc4 (patch) | |
tree | 357e635bf32caca9a57f58915264cfdf408c7d90 | |
parent | 019a94f7d62cf9fb482ebf28e1c153486a49f319 (diff) | |
download | hypervideo-pre-01b052b2b19609a5b0f54db8fa2989562dedbdc4.tar.lz hypervideo-pre-01b052b2b19609a5b0f54db8fa2989562dedbdc4.tar.xz hypervideo-pre-01b052b2b19609a5b0f54db8fa2989562dedbdc4.zip |
[tbs] Add tbs live streams (#1326)
Authored by: llacb47
-rw-r--r-- | yt_dlp/extractor/tbs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/tbs.py b/yt_dlp/extractor/tbs.py index cad3f2f46..c7d62ff4e 100644 --- a/yt_dlp/extractor/tbs.py +++ b/yt_dlp/extractor/tbs.py @@ -16,7 +16,7 @@ from ..utils import ( class TBSIE(TurnerBaseIE): - _VALID_URL = r'https?://(?:www\.)?(?P<site>tbs|tntdrama)\.com(?P<path>/(?:movies|watchtnt|shows/[^/]+/(?:clips|season-\d+/episode-\d+))/(?P<id>[^/?#]+))' + _VALID_URL = r'https?://(?:www\.)?(?P<site>tbs|tntdrama)\.com(?P<path>/(?:movies|watchtnt|watchtbs|shows/[^/]+/(?:clips|season-\d+/episode-\d+))/(?P<id>[^/?#]+))' _TESTS = [{ 'url': 'http://www.tntdrama.com/shows/the-alienist/clips/monster', 'info_dict': { @@ -45,7 +45,7 @@ class TBSIE(TurnerBaseIE): drupal_settings = self._parse_json(self._search_regex( r'<script[^>]+?data-drupal-selector="drupal-settings-json"[^>]*?>({.+?})</script>', webpage, 'drupal setting'), display_id) - isLive = 'watchtnt' in path + isLive = 'watchtnt' in path or 'watchtbs' in path video_data = next(v for v in drupal_settings['turner_playlist'] if isLive or v.get('url') == path) media_id = video_data['mediaID'] |