Skip to content

Commit

Permalink
[ie/nebula] Overhaul extractors (yt-dlp#8566)
Browse files Browse the repository at this point in the history
Closes yt-dlp#4300, Closes yt-dlp#5814, Closes yt-dlp#7588, Closes yt-dlp#6334, Closes yt-dlp#6538
Authored by: elyse0, pukkandan, seproDev

Co-authored-by: Elyse <[email protected]>
Co-authored-by: pukkandan <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent 3237f8b commit 45d82be
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 229 deletions.
5 changes: 3 additions & 2 deletions test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ def sanitize(key, value):

test_info_dict = {
key: sanitize(key, value) for key, value in got_dict.items()
if value is not None and key not in IGNORED_FIELDS and not any(
key.startswith(f'{prefix}_') for prefix in IGNORED_PREFIXES)
if value is not None and key not in IGNORED_FIELDS and (
not any(key.startswith(f'{prefix}_') for prefix in IGNORED_PREFIXES)
or key == '_old_archive_ids')
}

# display_id may be generated from id
Expand Down
1 change: 1 addition & 0 deletions yt_dlp/extractor/_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@
from .ndtv import NDTVIE
from .nebula import (
NebulaIE,
NebulaClassIE,
NebulaSubscriptionsIE,
NebulaChannelIE,
)
Expand Down
Loading

0 comments on commit 45d82be

Please sign in to comment.