yt-dlp 2026.1.16.233125.dev0__py3-none-any.whl → 2026.1.19.359.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yt_dlp/extractor/_extractors.py +23 -28
- yt_dlp/extractor/extractors.py +13 -7
- yt_dlp/extractor/lazy_extractors.py +222 -222
- yt_dlp/extractor/youtube/_base.py +16 -16
- yt_dlp/extractor/youtube/_video.py +173 -153
- yt_dlp/networking/_curlcffi.py +2 -2
- yt_dlp/utils/_jsruntime.py +8 -0
- yt_dlp/version.py +3 -3
- {yt_dlp-2026.1.16.233125.dev0.data → yt_dlp-2026.1.19.359.dev0.data}/data/share/doc/yt_dlp/README.txt +12 -12
- {yt_dlp-2026.1.16.233125.dev0.data → yt_dlp-2026.1.19.359.dev0.data}/data/share/man/man1/yt-dlp.1 +4 -4
- {yt_dlp-2026.1.16.233125.dev0.dist-info → yt_dlp-2026.1.19.359.dev0.dist-info}/METADATA +8 -3
- {yt_dlp-2026.1.16.233125.dev0.dist-info → yt_dlp-2026.1.19.359.dev0.dist-info}/RECORD +18 -18
- {yt_dlp-2026.1.16.233125.dev0.data → yt_dlp-2026.1.19.359.dev0.data}/data/share/bash-completion/completions/yt-dlp +0 -0
- {yt_dlp-2026.1.16.233125.dev0.data → yt_dlp-2026.1.19.359.dev0.data}/data/share/fish/vendor_completions.d/yt-dlp.fish +0 -0
- {yt_dlp-2026.1.16.233125.dev0.data → yt_dlp-2026.1.19.359.dev0.data}/data/share/zsh/site-functions/_yt-dlp +0 -0
- {yt_dlp-2026.1.16.233125.dev0.dist-info → yt_dlp-2026.1.19.359.dev0.dist-info}/WHEEL +0 -0
- {yt_dlp-2026.1.16.233125.dev0.dist-info → yt_dlp-2026.1.19.359.dev0.dist-info}/entry_points.txt +0 -0
- {yt_dlp-2026.1.16.233125.dev0.dist-info → yt_dlp-2026.1.19.359.dev0.dist-info}/licenses/LICENSE +0 -0
yt_dlp/extractor/_extractors.py
CHANGED
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
# flake8: noqa: F401
|
|
2
|
-
# isort: off
|
|
3
|
-
|
|
4
|
-
from .youtube import ( # Youtube is moved to the top to improve performance
|
|
5
|
-
YoutubeIE,
|
|
6
|
-
YoutubeClipIE,
|
|
7
|
-
YoutubeFavouritesIE,
|
|
8
|
-
YoutubeNotificationsIE,
|
|
9
|
-
YoutubeHistoryIE,
|
|
10
|
-
YoutubeTabIE,
|
|
11
|
-
YoutubeLivestreamEmbedIE,
|
|
12
|
-
YoutubePlaylistIE,
|
|
13
|
-
YoutubeRecommendedIE,
|
|
14
|
-
YoutubeSearchDateIE,
|
|
15
|
-
YoutubeSearchIE,
|
|
16
|
-
YoutubeSearchURLIE,
|
|
17
|
-
YoutubeMusicSearchURLIE,
|
|
18
|
-
YoutubeSubscriptionsIE,
|
|
19
|
-
YoutubeTruncatedIDIE,
|
|
20
|
-
YoutubeTruncatedURLIE,
|
|
21
|
-
YoutubeYtBeIE,
|
|
22
|
-
YoutubeYtUserIE,
|
|
23
|
-
YoutubeWatchLaterIE,
|
|
24
|
-
YoutubeShortsAudioPivotIE,
|
|
25
|
-
YoutubeConsentRedirectIE,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
# isort: on
|
|
29
|
-
|
|
30
2
|
from .abc import (
|
|
31
3
|
ABCIE,
|
|
32
4
|
ABCIViewIE,
|
|
@@ -2551,6 +2523,29 @@ from .youporn import (
|
|
|
2551
2523
|
YouPornTagIE,
|
|
2552
2524
|
YouPornVideosIE,
|
|
2553
2525
|
)
|
|
2526
|
+
from .youtube import (
|
|
2527
|
+
YoutubeClipIE,
|
|
2528
|
+
YoutubeConsentRedirectIE,
|
|
2529
|
+
YoutubeFavouritesIE,
|
|
2530
|
+
YoutubeHistoryIE,
|
|
2531
|
+
YoutubeIE,
|
|
2532
|
+
YoutubeLivestreamEmbedIE,
|
|
2533
|
+
YoutubeMusicSearchURLIE,
|
|
2534
|
+
YoutubeNotificationsIE,
|
|
2535
|
+
YoutubePlaylistIE,
|
|
2536
|
+
YoutubeRecommendedIE,
|
|
2537
|
+
YoutubeSearchDateIE,
|
|
2538
|
+
YoutubeSearchIE,
|
|
2539
|
+
YoutubeSearchURLIE,
|
|
2540
|
+
YoutubeShortsAudioPivotIE,
|
|
2541
|
+
YoutubeSubscriptionsIE,
|
|
2542
|
+
YoutubeTabIE,
|
|
2543
|
+
YoutubeTruncatedIDIE,
|
|
2544
|
+
YoutubeTruncatedURLIE,
|
|
2545
|
+
YoutubeWatchLaterIE,
|
|
2546
|
+
YoutubeYtBeIE,
|
|
2547
|
+
YoutubeYtUserIE,
|
|
2548
|
+
)
|
|
2554
2549
|
from .zaiko import (
|
|
2555
2550
|
ZaikoETicketIE,
|
|
2556
2551
|
ZaikoIE,
|
yt_dlp/extractor/extractors.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import itertools
|
|
2
2
|
import os
|
|
3
3
|
|
|
4
4
|
from ..globals import LAZY_EXTRACTORS
|
|
@@ -17,12 +17,18 @@ else:
|
|
|
17
17
|
if not _CLASS_LOOKUP:
|
|
18
18
|
from . import _extractors
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
name
|
|
22
|
-
for name
|
|
23
|
-
if name.endswith('IE')
|
|
24
|
-
|
|
25
|
-
_CLASS_LOOKUP
|
|
20
|
+
members = tuple(
|
|
21
|
+
(name, getattr(_extractors, name))
|
|
22
|
+
for name in dir(_extractors)
|
|
23
|
+
if name.endswith('IE')
|
|
24
|
+
)
|
|
25
|
+
_CLASS_LOOKUP = dict(itertools.chain(
|
|
26
|
+
# Add Youtube first to improve matching performance
|
|
27
|
+
((name, value) for name, value in members if '.youtube' in value.__module__),
|
|
28
|
+
# Add Generic last so that it is the fallback
|
|
29
|
+
((name, value) for name, value in members if name != 'GenericIE'),
|
|
30
|
+
(('GenericIE', _extractors.GenericIE),),
|
|
31
|
+
))
|
|
26
32
|
|
|
27
33
|
# We want to append to the main lookup
|
|
28
34
|
_current = _extractors_context.value
|