raingart / Nova-YouTube-extension

Apache License 2.0
199 stars 9 forks source link

[Feature] Stop jumping to next video #52

Closed Fred-Vatin closed 1 year ago

Fred-Vatin commented 1 year ago

Hi,

At the end of a playlist, when the last item is played, YT opens a random video. It happens also when you play any other video. At the end, YT open a new video while you’re reading comment for instance. But I want videos on playlists keep auto-playing.

I hope there was an option to prevent that.

raingart commented 1 year ago

You tried use "Add playlist autoplay control button"?

in the test playlist everything is ok - if disable button above https://www.youtube.com/watch?v=-mY7zepLQAU&list=PLv2T6hXHdnHRbQdOxWhod0U_VYy33T_qK&index=1

Fred-Vatin commented 1 year ago

Try turning this switch off. Screenshot_1

Thanks. This works with video outside playlist but if you’re reaching the end of the last video of a playlist, YT keeps opening a new video nonetheless. Unless this image is disabled but the drawback is it turns off auto-play for all videos of the playlist.

Fred-Vatin commented 1 year ago

It seems that I have no issue with this playlist. After having run some tests, my theory is when playlist contains the message “X unavailable videos are hidden” the bug happens. Unfortunately, the hidden videos can not be removed from a playlist as far as I know.

Fred-Vatin commented 1 year ago

I succeeded to remove hidden videos. It seems to solve this issue. https://www.gamerevolution.com/guides/703333-youtube-unavailable-videos-are-hidden-error-fix-pc-ios-iphone-android-2022

raingart commented 1 year ago

I will try to make either a message that the video is not available and it is recommended to delete it. Or turn off playback. It's not hard to implement.

It's good if the playlist is yours. What if he's an outsider? Here is an example, then this is the problem https://www.youtube.com/watch?v=v0PqdzLdFSk&list=OLAK5uy_m-Dv_8xLBZNZeysu7yXsw7psMf48nJ7tw&index=8

raingart commented 1 year ago

I added a check to the "Add playlist autoplay control button" part of the plugin

check beta ver

So far I haven't thought of a better implementation. Perhaps you should specify that user can remove the video from the playlist. But in the built-in alert() there is no way to insert active links