google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

fetchart: Search by artist and album title (in addition to ASIN) #443

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Beets last version (installed today):
$ beet version
beets version 1.0b16
plugins: chroma, replaygain, fetchart, lastgenre, scrub, embedart
-----------------------------------
$ cat .beetsconfig 
[beets]
directory: /home/simon/Música/PC
library: /home/simon/.beets/musiclibrary.blb
import_art: yes
plugins: chroma replaygain fetchart lastgenre scrub embedart  
art_filename: folder

[paths]
default: $albumartist/$album/$track - $title
singleton: $artist - $title
comp: Varios/$album/$track - $title

[replaygain]
overwrite: yes

[lastgenre]
canonical:
fallback_str:
-----------------------------------

I have import two albums but beets doesn't import the cover:

$ beet fetchart "Carly Rae Jepsen"
Carly Rae Jepsen - Kiss: no art found

$ beet fetchart "Havoc and Bright Lights"
Alanis Morissette - Havoc and Bright Lights: no art found
-----------------------------------

These albums exist in Amazon.com.

Original issue reported on code.google.com by si...@j1s.es on 4 Oct 2012 at 1:35

GoogleCodeExporter commented 9 years ago
Can you run one of these again in verbose mode (i.e., "beet -v fetchart ...")? 
That way we can see what happened with each of the album art sources.

Original comment by adrian.sampson on 4 Oct 2012 at 4:52

GoogleCodeExporter commented 9 years ago
$  beet -v fetchart "Carly Rae Jepsen"
config file: /home/simon/.beetsconfig
library database: /home/simon/.beets/musiclibrary.blb
library directory: /home/simon/Música/PC
Fetching album art for MBID 41c2284f-a92e-426a-87a7-0ac54ece519c.
Downloading art: 
http://coverartarchive.org/release/41c2284f-a92e-426a-87a7-0ac54ece519c/front-50
0.jpg
Not an image.
No ASIN available: no art found.
Carly Rae Jepsen - Kiss: no art found

$ beet -v fetchart "Havoc and Bright Lights"
config file: /home/simon/.beetsconfig
library database: /home/simon/.beets/musiclibrary.blb
library directory: /home/simon/Música/PC
Fetching album art for MBID 7fc1b9a1-075c-419b-adff-615493ba1bfc.
Downloading art: 
http://coverartarchive.org/release/7fc1b9a1-075c-419b-adff-615493ba1bfc/front-50
0.jpg
Not an image.
No ASIN available: no art found.
Alanis Morissette - Havoc and Bright Lights: no art found

Original comment by si...@j1s.es on 4 Oct 2012 at 9:32

GoogleCodeExporter commented 9 years ago
Fetching art from Amazon only works if the album has an ASIN (Amazon ID) set. 
And it looks like MusicBrainz must be missing the ASIN for these albums. You 
can check this by listing the ASIN for albums matching a query:

$ beet ls -af '$albumartist - $album - $asin' <QUERY>

Original comment by adrian.sampson on 4 Oct 2012 at 9:53

GoogleCodeExporter commented 9 years ago
I think this plugin isn't very useful in this way. Why doesn't make the search 
by artist and/or album?

Original comment by si...@j1s.es on 5 Oct 2012 at 10:57

GoogleCodeExporter commented 9 years ago
There are a few reasons:
- ASINs are present for most albums in MusicBrainz
- Searching by artist/album title is a recipe for ambiguity
- Looking up by ASIN requires a single URL request whereas searching for terms 
uses multiple requests and requires screen-scraping, which runs even more afoul 
of Amazon.com TOS
But I can see the utility in an (optional) less accurate and slower but 
higher-coverage scraper. Any interest in writing it?

Original comment by adrian.sampson on 6 Oct 2012 at 12:10

GoogleCodeExporter commented 9 years ago
Apart from the two previous albums, some examples more:

$ beet ls -af '$albumartist - $album - $asin' "Star Mark"
...nothing...

$ beet ls -af '$albumartist - $album - $asin' "Nirvana"
...nothing...

$ beet ls -af '$albumartist - $album - $asin' "The truth about love"
...nothing...

$ beet ls -af '$albumartist - $album - $asin' "Lisa Stanfield"
...nothing...

$ beet ls -af '$albumartist - $album - $asin' "Selmasongs"
Björk - Selmasongs - None

$ beet ls -af '$albumartist - $album - $asin' "Monkey Business"
Black Eyed Peas - Monkey Business - None

$ beet ls -af '$albumartist - $album - $asin' "the beginning"
Black Eyed Peas - The Beginning - None

$ beet ls -af '$albumartist - $album - $asin' "femme fatale"
Britney Spears - Femme Fatale - None

$ beet ls -af '$albumartist - $album - $asin' "Cher"
Cher - Believe - None
Manic Street Preachers - Forever Delayed - None
Cher - Living Proof - None
Cher - The Greatest Hits of Cher - None

$ beet ls -af '$albumartist - $album - $asin' "ColdPlay"
Coldplay - Mylo Xyloto - None
Coldplay - Viva la vida - None
Coldplay - X&Y - None

$ beet ls -af '$albumartist - $album - $asin' "Daft Punk"
Daft Punk - Da Funk - None
Daft Punk - Daft Club - None
Daft Punk - Discovery - None

$ beet ls -af '$albumartist - $album - $asin' "David Guetta"
David Guetta - Fuck Me I'm Famous: Ibiza Mix 2011 - None
David Guetta - Nothing But The Beat - None
David Guetta - Pop Life - None

$ beet ls -af '$albumartist - $album - $asin' "Dido"
Dido - Life For Rent - None

$ beet ls -af '$albumartist - $album - $asin' "Erasure"
Erasure - Hits! - The Very Best Of Erasure (Disc 1) - None
Erasure - The Innocents - None

$ beet ls -af '$albumartist - $album - $asin' "Fangoria"
Fangoria - A La Felicidad Por La electronica - None
Fangoria - Absolutamente - None
Fangoria - Arquitectura Efímera - None
Fangoria - Astracanada - None
Fangoria - El extraño viaje - None
Fangoria - El extraño viaje revisitado - None
Fangoria - El infierno son los demás - None
Fangoria - Interferencias - None
Fangoria - NATURALEZA MUERTA remixes - None
Fangoria - Naturaleza Muerta - None
Fangoria - Salto Mortal - None
Fangoria - UN DÍA CUALQUIERA EN VULCANO (COMPILACIÓN) - None
Fangoria - Una temporada en el infierno - None
Fangoria - Viven - None

and so on...

I think is clear that this method is fast but unusable. I think this plugin 
should seek first by ASIN and, if it isn't exist, do the search by album and/or 
artist and ask to the user if there is more than 1 result. 

Original comment by si...@j1s.es on 6 Oct 2012 at 2:12

GoogleCodeExporter commented 9 years ago
Very strange! Examining my own library shows that most albums have an ASIN from 
MusicBrainz.

Anyway, I'm turning this ticket into a feature request for an extension to the 
fetchart plugin that will cast a wider net but require screen-scraping. (It 
might depend on a library light BeautifulSoup.) Please let me know if you are 
interested in contributing a patch.

Original comment by adrian.sampson on 6 Oct 2012 at 5:09

untitaker commented 9 years ago

Do not comment here, but on sampsyo/beets#174