trizen / youtube-viewer

Lightweight YouTube client for Linux
https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html
Artistic License 2.0
1.18k stars 86 forks source link

Saving youtube playlists and videos #174

Open ghost opened 6 years ago

ghost commented 6 years ago

Is there a way to save youtube playlist and videos. Currently after every fresh restart I have to go search for playlist I want in a browser then paste the link in the search bar in youtube-viewer and then select the video. Its actually very cumbersome process. A way to add and remove youtube playlist(s) is a good feature for youtube-viewer

ZaxonXP commented 4 years ago

Depends what/how you want to watch. In my case I wanted to get a list of channel videos specified by channel ID. For that I used the following scripts

get_list.pl <channel_ID> <list_file_name.txt>

allows me to download the complete list of channel videos. This can be modified to get what you want.

Then I use the xterm and vim with some mapping file in order to play/download the video/audio and maintain the list (check the show_list.sh). There is also the desktop icon example (Desktop/F1.desktop) and the example of the list itself (F1.txt).

I hope this helps in the meantime until youtube-viewer gets this functionality. :)

trizen commented 4 years ago

Support for restoring the previous session has been added in version 3.7.2. (https://github.com/trizen/youtube-viewer/commit/f4fbb68732634e2fe0cfc4d131f20b7cc32ad14e, https://github.com/trizen/youtube-viewer/commit/cd0ce90a739685a6992701b6c403695a557032b9)