Extend coverlovin a bit

Bug #1163570 reported by Thomas Funk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CoverLovin
New
Undecided
Unassigned

Bug Description

Hi all,

I've adjusted the tool a little bit. Because I need these changes for
a music player applet in Fvwm-Nightshade. If you like it feel free to use it
or some parts of the code. Unfortunately the dependencies are increase. Now
Mutagen AND ImageMagick (for converting) is needed.

Description of changes:
1) I changed the name creation because if you have a directory with
   mixed songs from different artists 'cover.jpg' isn't ideal. Now you can
   enter a list of keywords. Possible keys are: artist, album, title. While
   processing the cover name will be created from the tags. As a delimiter
   the '-' is used but can be changed with '--delimiter'.
2) While processing the song will be checked if an embedded cover is available.
   If so it will extracted and saved/converted to the correct image format
   and the used image size.
3) coverlovin processes by default only 1 directory but can be extended with
   '--depth'. 0 is unlimited.
4) Now it is possible to scan only one file instead of directories. For
   directory/ies '-d' is used and '-f' for file.
5) Some users like to see which version they use. I implemented this, too ^^

The --help output:
Usage: coverlovin.py [options]

Options:
  -h, --help show this help message and exit
  -s SIZE, --size=SIZE file size: small, medium, or large (default: medium)
  -i IMAGE, --image=IMAGE
                        image format, eg jpg, png, gif (default: jpg)
  -n NAME, --name=NAME cover image file name. Comma seperated key list. Keys:
                        artist,album,title (default: artist,album)
  --delimiter=DELIMITER
                        cover image file name delimiter (default: -)
  -r REFERER, --referer=REFERER
                        referer url (default:
                        https://launchpad.net/coverlovin)
  -c COUNT, --count=COUNT
                        image lookup count (default: 8))
  -o, --overwrite overwrite (default False)
  -f FILE, --file=FILE file to scan
  -d DIR, --directory=DIR
                        directory to scan
  --depth=DEPTH directory depth to scan (default 1). 0 is unlimited
  --debug show debug (default False)
  --version show version

If you have ideas, improvements or find a bug feel free to contact me :-)

Best Regards,
Thomas

Revision history for this message
Thomas Funk (t-funk) wrote :
Revision history for this message
abrsdk (abrsdk) wrote :

Those are some really nice features! I was using clementine's extract cover option to do #2 but now it will be much easier. But I would love to see album art fetching from discogs if that's possbile

Revision history for this message
Thomas Funk (t-funk) wrote :

discogs has a python library for this but it's only available via Github
( https://github.com/discogs/discogs_client ) and coverlovin should work
on all distributions. Ok, with an inquiry whether discogs is installed it
can be implemented ...

Unfortunately I haven't had any time to implement it because I am working
on the next release of Fvwm-Nightshade. Perhaps in 2 or 3 months ...

Sorry.

Attached is the newest version of my coverlovin with the following extra
features:

- In the file mode it can print out a string with informations of the
  song. Useful for a player backend.
- If 'Artist' and 'Album' not available in the Id3 tags no search will
  be done.
- The covers can be converted to an external directory.
- some bugfixes

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.