mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Deprecate "Most Views" download order
YouTube's new listing layout means yt-dlp no longer returns `view_count` in flat channel/playlist entries, so sorting by views raised KeyError and the download failed and retried forever. Sorting by views now requires per-video extraction (hundreds of requests per channel), so the feature is deprecated rather than degraded: - downloader: the 'views' branch raises UnrecoverableDownloadError so the download fails cleanly (no retry loop) with a message to switch to Newest/Oldest. May be revisited via the YouTube Data API. - schema: download_order validation drops 'views' (newest/oldest/null only). - UI: removed "Most Views" from the download-order dropdown. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e513e36496
commit
fcb64fed13
5 changed files with 45 additions and 6 deletions
|
|
@ -101,7 +101,7 @@ export const validUrlRegex = /^(http|https):\/\/[^ "]+$/;
|
|||
export const downloadOrderOptions = [
|
||||
{key: 'newest', text: 'Newest', value: 'newest'},
|
||||
{key: 'oldest', text: 'Oldest', value: 'oldest'},
|
||||
{key: 'views', text: 'Most Views', value: 'views'},
|
||||
// 'views'/'Most Views' was removed: YouTube no longer provides view counts in channel/playlist listings.
|
||||
];
|
||||
|
||||
export const downloadResolutionOptions = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue