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

Feature request: Search for album #206

Open ZaxonXP opened 6 years ago

ZaxonXP commented 6 years ago

Hi,

It would be nice to add a feature which would allow to search music album.

Here how I see it: 1) with some option you specify album name 2) youtube-viewer connect to the discogs database (maybe using WWW::Discogs module) and retreive the data showing the artist name and asking for confirmation (or new name if the name found is not correct). 3) youtube-viewer retreive the album track listing and do multiple queries in order to find and match the best results. 4) when finishing youtube-viewer shows the results

In addition the option "interactive" could be added to decide manually which song should be selected from each track search results. This is in case automatic best matching method would not work very well.

I saw this implemented in mps-youtube Python.

ZaxonXP commented 4 years ago

In the meantime I created my own Perl script which uses the Discogs.com album version URL to get the list of songs, then uses youtube-viewer to search for the songs and match them. It produces the bash script which plays all the album using youtube-viewer command line options.

discogs_url_to_youtube-viewer_parser.pl.zip

You can use the code if it is useful for you. :)