Skip to content

Commit

Permalink
Unlisted videos must also be included inside the ZIM
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Dec 5, 2024
1 parent 7754caf commit 84e0b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/src/youtube2zim/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def skip_deleted_videos(item):

def skip_non_public_videos(item):
"""filter func to filter-out non-public videos"""
return item["status"]["privacyStatus"] == "public"
return item["status"]["privacyStatus"] in ("public", "unlisted")

Check warning on line 335 in scraper/src/youtube2zim/youtube.py

View check run for this annotation

Codecov / codecov/patch

scraper/src/youtube2zim/youtube.py#L335

Added line #L335 was not covered by tests


def skip_outofrange_videos(date_range, item):
Expand Down

0 comments on commit 84e0b95

Please sign in to comment.