yt-dlp 2026.1.6.233142.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.
@@ -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,
@@ -1,4 +1,4 @@
1
- import inspect
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
- _CLASS_LOOKUP = {
21
- name: value
22
- for name, value in inspect.getmembers(_extractors)
23
- if name.endswith('IE') and name != 'GenericIE'
24
- }
25
- _CLASS_LOOKUP['GenericIE'] = _extractors.GenericIE
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