Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube Playlists not returning latest videos #1875

Open
mtfurlan opened this issue Nov 25, 2020 · 8 comments
Open

Youtube Playlists not returning latest videos #1875

mtfurlan opened this issue Nov 25, 2020 · 8 comments
Labels
Bug-Report Confirmed bug report

Comments

@mtfurlan
Copy link

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 mtfurlan added the Bug-Report Confirmed bug report label Nov 25, 2020
@em92
Copy link
Contributor

em92 commented Nov 29, 2020

Just made some investigation.
This is not working anymore and returns 0:

$item_count = $this->ytBridgeParseHtmlListing($html, 'tr.pl-video', '.pl-video-title a', false);

So it just fallbacks for fetching videos from youtube's videos.xml, which returns only first 15 videos from playlist.

@em92
Copy link
Contributor

em92 commented May 16, 2021

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

@mtfurlan
Copy link
Author

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

@dvikan dvikan closed this as completed Mar 26, 2022
@em92
Copy link
Contributor

em92 commented Mar 26, 2022

This is not fixed yet. Only partial

@em92 em92 reopened this Mar 26, 2022
@T3SQ8
Copy link

T3SQ8 commented Aug 30, 2022

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).

@em92
Copy link
Contributor

em92 commented Aug 31, 2022

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?

@T3SQ8
Copy link

T3SQ8 commented Aug 31, 2022

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.

@dvikan
Copy link
Contributor

dvikan commented Sep 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug-Report Confirmed bug report
Projects
None yet
Development

No branches or pull requests

4 participants