rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

Youtube Playlists not returning latest videos

Open mtfurlan opened this issue 5 years ago • 8 comments

Describe the bug Many youtube playlists add new videos to the end, not the beginning.

For example: https://www.youtube.com/playlist?list=PLaDrN74SfdT7Ueqtwn_bXo1MuSWT0ji2w

This shows the oldest 15 videos in the playlist, in reverse chronological order. https://feed.eugenemolotov.ru/?action=display&bridge=Youtube&context=By+playlist+Id&p=PLaDrN74SfdT7Ueqtwn_bXo1MuSWT0ji2w&duration_min=&duration_max=&format=Html

To Reproduce

  1. Put playlist ID into a youtube-bridge
  2. see that it doesn't return the newest videos.

Expected behavior I would like to be able to get the newest videos out of a playlist instead of the oldest.

Additional context There was a similar bug report #647 that playlists aren't sorted by date, and that was fixed by #1162, but the example playlist in that puts new videos at the start of the playlist, not the end. So playlists are now returned in reverse chronological order, but it's still the first X videos off the top of the playlist not the bottom.

mtfurlan avatar Nov 25 '20 17:11 mtfurlan

Just made some investigation. This is not working anymore and returns 0: https://github.com/RSS-Bridge/rss-bridge/blob/1e75f9d3d558cb9dd91aab36a61cdc81f1c8dcb3/bridges/YoutubeBridge.php#L249 So it just fallbacks for fetching videos from youtube's videos.xml, which returns only first 15 videos from playlist.

em92 avatar Nov 29 '20 07:11 em92

Hello, @mtfurlan ! FYI, I have just pushed partial fix for this bug. It works correctly, if playlist has less than 100 videos.

em92 avatar May 16 '21 20:05 em92

Nice, thank you! I do see it working, I just forgot to reply earlier.

mtfurlan avatar Jun 10 '21 15:06 mtfurlan

This is not fixed yet. Only partial

em92 avatar Mar 26 '22 19:03 em92

There was a similar bug report #647 that playlists aren't sorted by date, and that was fixed by #1162, but the example playlist in that puts new videos at the start of the playlist, not the end.

I think adding a "Reverse order" toggle could be a workaround for this issue (Reversing the order and picking the entries off the top for any playlists where the playlist creator puts newer videos at the top).

T3SQ8 avatar Aug 30 '22 17:08 T3SQ8

I think adding a "Reverse order" toggle could be a workaround for this issue (Reversing the order and picking the entries off the top for any playlists where the playlist creator puts newer videos at the top).

Could you please provide, where did you find "reverse order" toggle?

em92 avatar Aug 31 '22 05:08 em92

Could you please provide, where did you find "reverse order" toggle?

I didn't find one. I suggested adding one to the YouTube bridge in order to work with playlists with the videos in reverse order.

T3SQ8 avatar Aug 31 '22 17:08 T3SQ8

i think a "Reverse ordering" checkbox in the bridge form can solve this nicely. if anyone has the courage to touch the youtube bridge code

dvikan avatar Sep 12 '23 22:09 dvikan