diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-23 23:24:24 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-24 01:07:14 +0530 |
commit | f40ee5e9a0014b308cc83d8d3a0e24a123239eb4 (patch) | |
tree | a9ce83f69e44d1a63344b115e380f01286012ea1 /yt_dlp/extractor/viu.py | |
parent | 1f13021eca0ecc5a6bd34ffd5bf69aa5a8cb8a5a (diff) | |
download | hypervideo-pre-f40ee5e9a0014b308cc83d8d3a0e24a123239eb4.tar.lz hypervideo-pre-f40ee5e9a0014b308cc83d8d3a0e24a123239eb4.tar.xz hypervideo-pre-f40ee5e9a0014b308cc83d8d3a0e24a123239eb4.zip |
[extractor] Add convinience function `_yes_playlist`
Diffstat (limited to 'yt_dlp/extractor/viu.py')
-rw-r--r-- | yt_dlp/extractor/viu.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.py index 1b34c5296..b633df95d 100644 --- a/yt_dlp/extractor/viu.py +++ b/yt_dlp/extractor/viu.py @@ -287,8 +287,7 @@ class ViuOTTIE(InfoExtractor): raise ExtractorError('This video is not available in your region.', expected=True) series_id = video_data.get('series_id') - if not self.get_param('noplaylist') and not idata.get('force_noplaylist'): - self.to_screen('Downloading playlist %s - add --no-playlist to just download video' % series_id) + if self._yes_playlist(series_id, video_id, idata): series = product_data.get('series', {}) product = series.get('product') if product: @@ -308,9 +307,6 @@ class ViuOTTIE(InfoExtractor): return self.playlist_result(entries, series_id, series.get('name'), series.get('description')) - if self.get_param('noplaylist'): - self.to_screen('Downloading just video %s because of --no-playlist' % video_id) - duration_limit = False query = { 'ccs_product_id': video_data['ccs_product_id'], |