diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-10 04:14:42 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-10 04:19:54 +0530 |
commit | c586f9e8dee3c6f2aac10e828751cac592b6ba14 (patch) | |
tree | 21f56a821295d30f75ab06890fea3bef8dc6b2c7 /yt_dlp/YoutubeDL.py | |
parent | 59a7a13ef99888c1403e985bdfc6cdca5c748f10 (diff) | |
download | hypervideo-pre-c586f9e8dee3c6f2aac10e828751cac592b6ba14.tar.lz hypervideo-pre-c586f9e8dee3c6f2aac10e828751cac592b6ba14.tar.xz hypervideo-pre-c586f9e8dee3c6f2aac10e828751cac592b6ba14.zip |
[cleanup] minor fixes
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 7d085a33e..2439fc82b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1539,7 +1539,7 @@ class YoutubeDL(object): def get_entry(i): return ie_entries[i - 1] else: - if not isinstance(ie_entries, PagedList): + if not isinstance(ie_entries, (PagedList, LazyList)): ie_entries = LazyList(ie_entries) def get_entry(i): @@ -3374,13 +3374,13 @@ class YoutubeDL(object): from .postprocessor.embedthumbnail import has_mutagen from .cookies import SQLITE_AVAILABLE, KEYRING_AVAILABLE - lib_str = ', '.join(sorted(filter(None, ( + lib_str = join_nonempty( compat_pycrypto_AES and compat_pycrypto_AES.__name__.split('.')[0], - has_websockets and 'websockets', + KEYRING_AVAILABLE and 'keyring', has_mutagen and 'mutagen', SQLITE_AVAILABLE and 'sqlite', - KEYRING_AVAILABLE and 'keyring', - )))) or 'none' + has_websockets and 'websockets', + delim=', ') or 'none' write_debug('Optional libraries: %s' % lib_str) proxy_map = {} |