mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-23 21:39:28 +01:00
Merge pull request #401 from Juicie/master
Releasetype directory support
This commit is contained in:
@@ -294,7 +294,7 @@
|
||||
<h2>Renaming Options:</h2>
|
||||
<br>
|
||||
<h3>Folder Format:</h3><input type="text" name="folder_format" value="${config['folder_format']}" size="43"><br>
|
||||
<i class="smalltext">Use: artist, album, year and first (first letter in artist name)<br />
|
||||
<i class="smalltext">Use: artist, album, year, releasetype and first (first letter in artist name)<br />
|
||||
E.g.: first/artist/album [year] = G/Girl Talk/All Day [2010]</i>
|
||||
<br><br>
|
||||
<h3>File Format:</h3><input type="text" name="file_format" value="${config['file_format']}" size="43">
|
||||
|
||||
@@ -294,6 +294,7 @@ def moveFiles(albumpath, release, tracks):
|
||||
|
||||
artist = release['ArtistName'].replace('/', '_')
|
||||
album = release['AlbumTitle'].replace('/', '_')
|
||||
releasetype = release['Type'].replace('/', '_')
|
||||
|
||||
if release['ArtistName'].startswith('The '):
|
||||
sortname = release['ArtistName'][4:]
|
||||
@@ -312,7 +313,8 @@ def moveFiles(albumpath, release, tracks):
|
||||
'album': album,
|
||||
'year': year,
|
||||
'first': firstchar,
|
||||
'lowerfirst': lowerfirst
|
||||
'lowerfirst': lowerfirst,
|
||||
'releasetype': releasetype
|
||||
}
|
||||
|
||||
|
||||
@@ -576,4 +578,4 @@ def forcePostProcess():
|
||||
verify(rgid, albumpath)
|
||||
else:
|
||||
logger.info('No match found on MusicBrainz for: %s - %s' % (name, album))
|
||||
processing = processing_next
|
||||
processing = processing_next
|
||||
|
||||
Reference in New Issue
Block a user