KohGeek / SortYoutubePlaylistByDuration

Proper repository for Greasyfork plugin Sort Youtube Playlist By Duration (formerly Sort Youtube Watch Later by Duration)
https://greasyfork.org/en/scripts/446741-sort-youtube-playlist-by-duration
GNU General Public License v2.0
19 stars 3 forks source link

[BUG] Watch Later > 500 positions gets stuck on "Playlist is not fully loaded, waiting..." #6

Open szebrowski opened 2 months ago

szebrowski commented 2 months ago

Describe the bug Bigger watch later playlist doesn't work because YT is un-loading the playlist when video is moved.

To Reproduce

  1. have watch later playlist which has >= 500 positions
  2. set option to "sort all"
  3. click "sort" button

Actual Behaviour Everytime video moves to new position, YT un-loads the playlist and script is stuck in "Playlist is not fully loaded, waiting..." state.

Platform (please complete the following information):

KohGeek commented 2 months ago

Partially fixed. Current code is a bandaid because it's timer dependant. Will address in the next update.

twojnarowski commented 2 months ago

For me now it works only when I want to sort less than 100 videos. If any scrolling is required, the script stops after first scroll attempt.

Darkle commented 2 months ago

For me now it works only when I want to sort less than 100 videos. If any scrolling is required, the script stops after first scroll attempt.

Have you tried increasing the "Scroll Retry Time"? I found with long playlists I sometimes need to increase it to 1000 or 2000 ms.

twojnarowski commented 2 months ago

For me now it works only when I want to sort less than 100 videos. If any scrolling is required, the script stops after first scroll attempt.

Have you tried increasing the "Scroll Retry Time"? I found with long playlists I sometimes need to increase it to 1000 or 2000 ms.

It makes it work for a moment, but also stops working after few videos swapped.