user234683 / youtube-local

browser-based client for watching Youtube anonymously and with greater page performance
GNU Affero General Public License v3.0
521 stars 62 forks source link

[Feature] "Play all" for a channel's videos #125

Closed DUOLabs333 closed 2 years ago

DUOLabs333 commented 2 years ago

Maybe a button for playing all of a channel's videos as a playlist?

user234683 commented 2 years ago

Temporary workaround: take the url https://www.youtube.com/playlist?list=UU and put the channel ID after it without the UC part. e.g. UCoxcjq-8xIDTYp3uz647V5A -> oxcjq-8xIDTYp3uz647V5A -> https://www.youtube.com/playlist?list=UUoxcjq-8xIDTYp3uz647V5A

DUOLabs333 commented 2 years ago

It worked -- I tried it before, and failed (turns out, I didn't remove /videos) at the end.

DUOLabs333 commented 2 years ago

However, for some reason, the playlist isn't played in order.

DUOLabs333 commented 2 years ago

https://youtube.test/https://www.youtube.com/watch?v=__NAtINx6Ic&list=UU6Ii2PPnHDkjLTJJQgOw7sQ&index=49.

The issue starts here: https://youtube.test/https://www.youtube.com/watch?v=ka0PJCndIfA&list=UU6Ii2PPnHDkjLTJJQgOw7sQ&index=23

DUOLabs333 commented 2 years ago

I found the problem --- Once you get to the second page, the playlist view scrolls exactly n videos ahead, if the video is n videos down on the playlist view page. For example, if https://youtube.test/https://www.youtube.com/watch?v=09Li7FyJUfc&list=UU6Ii2PPnHDkjLTJJQgOw7sQ&index=24 is 4 videos down on https://youtube.test/https://www.youtube.com/playlist?list=UU6Ii2PPnHDkjLTJJQgOw7sQ&index=49&page=2, and when you click on it, the playlist view on the right side starts at the video 4 videos down.

image

DUOLabs333 commented 2 years ago

The n also increments if you go to the next page; so if you go to page 3, the playlist is scrolled 21 videos ahead. A way to fix this is for the playlist view to start from video floor(index/20)

DUOLabs333 commented 2 years ago

The problem is that youtube-local is just a view for youtube, and youtube only keeps the last 99 videos.

DUOLabs333 commented 2 years ago

Autoplay also jumps down a certain number of videos (I can't figure out how it works, though). After a certain number of jumps, it stops autoplaying. If you click on other videos, no autoplay will happen