mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #149] [MERGED] [downloader] Recognize ondemand video types and skip stream-only videos honestly #153
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/149
Author: @Glitchy-Sheep
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @Glitchy-Sheep
Base:
main← Head:feat/ondemand-video-types📝 Commits (3)
2aa7c9afeat: Recognize the ondemand_* video url types5af97ccfix: Skip stream-only videos with a warning instead of a silent drop89a9956docs: Note the ondemand video types in the changelog📊 Changes
10 files changed (+134 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
boosty_downloader/src/application/mappers/post_mapper.py(+12 -1)📝
boosty_downloader/src/application/ok_video_ranking.py(+21 -0)📝
boosty_downloader/src/application/use_cases/download_single_post.py(+5 -0)📝
boosty_downloader/src/infrastructure/boosty_api/models/post/post_data_types/post_data_ok_video.py(+2 -0)📝
boosty_downloader/src/infrastructure/boosty_api/utils/validation_errors.py(+1 -1)📝
test/unit/boosty_api/ok_video_types_test.py(+9 -1)📝
test/unit/boosty_api/validation_errors_test.py(+2 -2)📝
test/unit/download_manager/ok_video_ranking_test.py(+29 -2)📝
test/unit/mappers/post_mapper_test.py(+48 -2)📄 Description
Summary
Boosty added two new video url types:
ondemand_dashandondemand_hls. Every run over a post with them nagged "please report this at GitHub". The client now knows these types. Selection also got a safety rule: only progressive mp4 formats are downloadable, and a video with nothing but streaming manifests is skipped with an honest warning.Problem
ondemand_*at every check and download. The videos themselves downloaded fine - the warning was pure noise.hls/dashmanifest urls, anddownload_filesaved the manifest text to disk as a fake video.Fix
ondemand_hls/ondemand_dashjoin the enum at the bottom of the ranking. The report-to-github warning no longer fires for them.get_best_videopicks from an explicit allowlist of 8 progressive mp4 types. A manifest url can never reach the file downloader. New types stay non-downloadable until recognized.Skip video (streams are not supported yet): <title>and retries next run. If Boosty starts serving downloadable urls, it downloads by itself.imaginary_*word.Before / After
Before: every
check/downloadover such posts prints unknown-content warnings and asks to report them.After: the same commands are quiet, videos download exactly as before, and a stream-only video says honestly that streams are not supported yet.
Verification
checkover a real blog with these types: the ondemand warnings are gone.ISO Media MP4lands on disk - no manifests, no warnings.ondemand_*urls are empty for every probed video, so nothing downloadable is skipped.task cigreen: checks, 113 unit tests, 6 live integration tests, build.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.