Open duckpuppy opened 3 years ago
See https://github.com/ytdl-org/youtube-dl/issues/1706
This is not possible because youtube-dl doesn't have the time. Maybe a sort according to name should be done then.
That would work in that exact case, but only because the uploader used the exact same title each time. A pure string sort on most other channels would fail since it's common to name those types of videos "Catchy title just for this episode to get your attention - Game Name Part X".
I know it's not your fault - it's certainly youtube-dl's fault for ignoring that issue for this long - but I think it does make ytcc unusable for my purposes. It's a great piece of software otherwise.
I know it's not your fault - it's certainly youtube-dl's fault for ignoring that issue for this long
It is youtube's "fault" for not providing this data... This info is available only through the data API which ytdl obv cannot use, and not in the innertube API
Can't ytcc somehow save the order in which the video is extracted? ytdl/p always extracts videos in the order the youtube page provides them. So when you do yt-dlp "https://www.youtube.com/channel/..."
, it will be in the correct newest to oldest
Can't ytcc somehow save the order in which the video is extracted?
Ytcc actually does that. Video IDs in ytcc (scoped by playlist) are increasing in the order they are extracted from ytdl. But that does not help as a reliable workaround.
Sorting by order_by = playlists:asc, publish_date:desc, id:asc
will list in correct order, assuming the playlist on YouTube is sorted oldest to newest. You'll run into problems, though, if the playlist is sorted any different than ytcc's pulish_date
sorter setting, or if you ytcc update
in between same-day video releases.
Describe the bug If a playlist/subscription has multiple videos uploaded on the same day, they are not sorted by time when using the
publish_date
ordering.To Reproduce Subscribe to a channel that publishes multiple videos per day and update. Set the
order_by
value inytcc.conf
topublish_date:asc
. Executeytcc list -p <channel>
Expected behavior Videos are listed in the strict order they were published.
Environment, configuration and version information
Additional context Example output from a channel below. I used the YouTube Data API to retrieve two of the videos (Part 225 and 224). 224's publishedAt property was one hour before 225, but in the list below all the videos for each day are sorted in descending order by time even though the ordering in the config file is
publish_date:asc
.Partial responses for each video from the API: