diff options
Diffstat (limited to 'yt_dlp')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 | ||||
-rw-r--r-- | yt_dlp/extractor/sportdeutschland.py | 2 | ||||
-rw-r--r-- | yt_dlp/extractor/youtube.py | 6 | ||||
-rw-r--r-- | yt_dlp/update.py | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 5d21b43cf..f701738c9 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3784,7 +3784,7 @@ class YoutubeDL: klass = type(self) write_debug(join_nonempty( f'{"yt-dlp" if REPOSITORY == "yt-dlp/yt-dlp" else REPOSITORY} version', - __version__ + {'stable': '', 'nightly': '*'}.get(CHANNEL, f' <{CHANNEL}>'), + f'{CHANNEL}@{__version__}', f'[{RELEASE_GIT_HEAD[:9]}]' if RELEASE_GIT_HEAD else '', '' if source == 'unknown' else f'({source})', '' if _IN_CLI else 'API' if klass == YoutubeDL else f'API:{self.__module__}.{klass.__qualname__}', diff --git a/yt_dlp/extractor/sportdeutschland.py b/yt_dlp/extractor/sportdeutschland.py index 6490f4203..30dbcf370 100644 --- a/yt_dlp/extractor/sportdeutschland.py +++ b/yt_dlp/extractor/sportdeutschland.py @@ -130,7 +130,7 @@ class SportDeutschlandIE(InfoExtractor): 'channel_url': 'channel_url', 'was_live': 'was_live'}), **self._process_video(info['id'], video), } for i, video in enumerate(parts, 1)] - print(entries[0]['duration']) + return { '_type': 'multi_video', **info, diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index b8bb980f3..acd4077f4 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3717,10 +3717,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'filesize': int_or_none(fmt.get('contentLength')), 'format_id': f'{itag}{"-drc" if fmt.get("isDrc") else ""}', 'format_note': join_nonempty( - '%s%s' % (audio_track.get('displayName') or '', - ' (default)' if language_preference > 0 else ''), + join_nonempty(audio_track.get('displayName'), + language_preference > 0 and ' (default)', delim=''), fmt.get('qualityLabel') or quality.replace('audio_quality_', ''), - 'DRC' if fmt.get('isDrc') else None, + fmt.get('isDrc') and 'DRC', try_get(fmt, lambda x: x['projectionType'].replace('RECTANGULAR', '').lower()), try_get(fmt, lambda x: x['spatialAudioType'].replace('SPATIAL_AUDIO_TYPE_', '').lower()), throttled and 'THROTTLED', is_damaged and 'DAMAGED', delim=', '), diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 297539bb6..5a752d716 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -29,13 +29,13 @@ UPDATE_SOURCES = { 'stable': 'yt-dlp/yt-dlp', 'nightly': 'yt-dlp/yt-dlp-nightly-builds', } +REPOSITORY = UPDATE_SOURCES['stable'] _VERSION_RE = re.compile(r'(\d+\.)*\d+') API_BASE_URL = 'https://api.github.com/repos' # Backwards compatibility variables for the current channel -REPOSITORY = UPDATE_SOURCES[CHANNEL] API_URL = f'{API_BASE_URL}/{REPOSITORY}/releases' |