tblancher / pymazon

Automatically exported from code.google.com/p/pymazon
Other
0 stars 0 forks source link

Support more file-name template variables #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to have more variables for filename templates in addition to 
just "title", "album", etc.
What comes to mind is:
 * album_artist - The artist of the album may be different from the artist of one track. That actually is the case for some albums downloadable from Amazon, i.e. group projects or samplers.
 * titlenum0 - The title number with leading zeros. Very useful to create filenames that sort correctly.
There might be more, check the clamz project for ideas.

Original issue reported on code.google.com by devuran...@gmx.net on 29 Jun 2010 at 8:54

GoogleCodeExporter commented 8 years ago
Regarding the first suggestion:

I will add an album_artist, genre, and disc_number tag. I don't think anything 
else makes much sense. (filesize, asin, **metadata)

Regarding the second issue:

Simply put a zero in front of the ${tracknum} tag. i.e. 

0${tracknum} - whatever.... 

But I suppose that would be a problem with double digit track numbers. 

That said, I'm still not convinced this is pymazon's problem, and not one with 
the sort implementation of whatever list widget is used in your file manager. 
Nautilus, for example, sorts just fine without the leading zeros. Additionally, 
sometimes the tracknumbers listed in the .amz file already have the leading 
zeros attached, and of course I can't control how Amazon makes the .amz file.

If you come up with some better justification for the second issue, file a new 
ticket and I will reconsider it. For now, I won't fix that.

Original comment by SCColbert@gmail.com on 1 Jul 2010 at 6:47

GoogleCodeExporter commented 8 years ago
My "filemanager" is called "ls". ;)
You could probably parse the tracknumbers from .amz into an int and then work 
based on that?

Original comment by devuran...@gmx.net on 1 Jul 2010 at 8:35

GoogleCodeExporter commented 8 years ago
Both of these issues are fixed in trunk. The three tags have been added, and 
one zero is prepended to a length 1 number.

Original comment by SCColbert@gmail.com on 2 Jul 2010 at 3:03

GoogleCodeExporter commented 8 years ago
Issue 30 has been merged into this issue.

Original comment by SCColbert@gmail.com on 23 Dec 2010 at 1:56

GoogleCodeExporter commented 8 years ago
Issue 33 has been merged into this issue.

Original comment by SCColbert@gmail.com on 30 Jan 2011 at 7:21