Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report error when cover art not found #137

Open
ghost opened this issue Feb 28, 2013 · 2 comments
Open

Report error when cover art not found #137

ghost opened this issue Feb 28, 2013 · 2 comments
Labels
feature features we would like to implement migrated Issue migrated from Google Code

Comments

@ghost
Copy link

ghost commented Feb 28, 2013

This issue was automatically migrated from Google Code.
Original author: [email protected] (February 28, 2012 09:09:24)
Original issue: google-code-export/beets#352

@edent
Copy link

edent commented Apr 27, 2013

I use this code to get album artwork when Beets fails

encoded="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$albumpath")"
url="http://www.albumart.org/index.php?skey=$encoded&itempage=1&newsearch=1&searchindex=Music" 
coverurl=`wget -qO - "$url" | grep -m 1 -o 'http://ecx\.images-amazon\.com\/images\/I\/*/[\%0-9a-zA-Z.,-]*\.jpg'`

It basically searches AlbumArt.org and scrapes the first result.
(Taken from http://shkspr.mobi/blog/2013/04/screenscraping-album-artwork-from-the-linux-command-line/)

@sampsyo
Copy link
Member

sampsyo commented Apr 27, 2013

Very cool. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature features we would like to implement migrated Issue migrated from Google Code
Projects
None yet
Development

No branches or pull requests

2 participants