diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 17:53:08 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 18:59:51 +0530 |
commit | a06916d98e1669f9b7d821bcb3ca6d13bd6429fe (patch) | |
tree | e6484fd0b6301d0051a0300c866cc2922a4437b7 /yt_dlp/extractor/viu.py | |
parent | 681de68e9df67f07dde3fbbc6cb2e65a78b2bb16 (diff) | |
download | hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.lz hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.xz hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.zip |
[extractor] Add `write_debug` and `get_param`
Diffstat (limited to 'yt_dlp/extractor/viu.py')
-rw-r--r-- | yt_dlp/extractor/viu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.py index 3292d553e..b1e5f0af7 100644 --- a/yt_dlp/extractor/viu.py +++ b/yt_dlp/extractor/viu.py @@ -287,7 +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._downloader.params.get('noplaylist') and not idata.get('force_noplaylist'): + 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) series = product_data.get('series', {}) product = series.get('product') @@ -308,7 +308,7 @@ class ViuOTTIE(InfoExtractor): return self.playlist_result(entries, series_id, series.get('name'), series.get('description')) - if self._downloader.params.get('noplaylist'): + if self.get_param('noplaylist'): self.to_screen('Downloading just video %s because of --no-playlist' % video_id) duration_limit = False |