Add --no-vods flag using isLiveContent detection

This commit is contained in:
2026-04-07 22:32:04 +02:00
parent 2533b63597
commit 35ab1bdaf6
2 changed files with 25 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ python3 latest3.py "https://www.youtube.com/@ludwig/videos"
python3 latest3.py "@ludwig" --json
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --json
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --no-shorts
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --no-vods
python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --no-shorts --no-vods
```
## Output fields
@@ -31,6 +33,7 @@ python3 latest3.py "https://www.youtube.com/@ludwig/videos" --limit 3 --no-short
- `--limit N` how many videos to return (1-20)
- `--json` output as JSON
- `--no-shorts` exclude URLs matching `/shorts/`
- `--no-vods` exclude livestream VODs (`isLiveContent=true` on watch page)
## Notes