darkhz / invidtui

A TUI based Invidious client
MIT License
196 stars 6 forks source link

[Feature Request] Recommendations page? #38

Closed xplshn closed 8 months ago

xplshn commented 9 months ago

As the tittle says, support for YT's recommended page. Based off of the approach used by YTFZF: https://github.com/pystardust/ytfzf/blob/master/addons/scrapers/recommended Given that a POSIX sh could do it I am sure it could be implemented in less lines in Go.

Also, apps like Newpipe, somehow, have recommendations based off of the current video you are playing, I don't know the details behind such implementations, however, that'd be pretty cool and add to the entertainment/music listening experience. Thanks.

darkhz commented 9 months ago

Very good, this will be implemented.

xplshn commented 9 months ago

Thanks, this project is very handy! And more to me, I am the kind of person that has a bare .xinitrc script that only starts a terminal in full screen, and, in fact, I am writing this from a TUI Github client lol, anyways, thanks for this! Keep up the good work!

darkhz commented 9 months ago

@xplshn the question is, where would the recommended videos be displayed? Maybe it could be shown within the queue, in a separate space for recommended videos.

xplshn commented 9 months ago

Youtube has a recommendation page, and it also recommends videos inside of queues, the recommendations are different, the recommendations page is based on the videos you've watched in the past, and the recommended videos in a queue are based on what you watched on the past and what you are currently watching, so, I guess both?

darkhz commented 8 months ago

https://github.com/darkhz/invidtui/assets/44058754/3f5a1667-4588-4144-8045-7bc2b3bfcd49

This is how the current recommendations tab looks like.

xplshn commented 8 months ago

Wow, that's great! Any chance this project starts using Bubbletea, or FZF? In order to make the codebase smaller and also get sexier dialogs

darkhz commented 8 months ago

This is now implemented. Assuming that the default keybindings are set, press q to open the queue, and press Tab to switch between the 'Queue' and 'Recommendations' pages.