Skip to content

Commit 961570a

Browse files
authored
Merge pull request #379 from openzim/add_unlisted_videos
Unlisted videos must also be included inside the ZIM
2 parents 7754caf + fe3f950 commit 961570a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

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

1920
## [3.2.1] - 2024-11-01
2021

Diff for: scraper/src/youtube2zim/youtube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def skip_deleted_videos(item):
332332

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

337337

338338
def skip_outofrange_videos(date_range, item):

0 commit comments

Comments
 (0)