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 fe3f950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Corrected the short video resolution in the UI (#366)
- Check for empty playlists after filtering, and after downloading videos (#375)
- Unlisted videos must also be included inside the ZIM (#379)

## [3.2.1] - 2024-11-01

Expand Down
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 fe3f950

Please sign in to comment.