aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/pluralsight.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-17 17:53:08 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-17 18:59:51 +0530
commita06916d98e1669f9b7d821bcb3ca6d13bd6429fe (patch)
treee6484fd0b6301d0051a0300c866cc2922a4437b7 /yt_dlp/extractor/pluralsight.py
parent681de68e9df67f07dde3fbbc6cb2e65a78b2bb16 (diff)
downloadhypervideo-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/pluralsight.py')
-rw-r--r--yt_dlp/extractor/pluralsight.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/pluralsight.py b/yt_dlp/extractor/pluralsight.py
index 2d63855df..d494753e6 100644
--- a/yt_dlp/extractor/pluralsight.py
+++ b/yt_dlp/extractor/pluralsight.py
@@ -337,11 +337,11 @@ query viewClip {
# In order to minimize the number of calls to ViewClip API and reduce
# the probability of being throttled or banned by Pluralsight we will request
# only single format until formats listing was explicitly requested.
- if self._downloader.params.get('listformats', False):
+ if self.get_param('listformats', False):
allowed_qualities = ALLOWED_QUALITIES
else:
def guess_allowed_qualities():
- req_format = self._downloader.params.get('format') or 'best'
+ req_format = self.get_param('format') or 'best'
req_format_split = req_format.split('-', 1)
if len(req_format_split) > 1:
req_ext, req_quality = req_format_split
@@ -349,7 +349,7 @@ query viewClip {
for allowed_quality in ALLOWED_QUALITIES:
if req_ext == allowed_quality.ext and req_quality in allowed_quality.qualities:
return (AllowedQuality(req_ext, (req_quality, )), )
- req_ext = 'webm' if self._downloader.params.get('prefer_free_formats') else 'mp4'
+ req_ext = 'webm' if self.get_param('prefer_free_formats') else 'mp4'
return (AllowedQuality(req_ext, (best_quality, )), )
allowed_qualities = guess_allowed_qualities()