mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 16:34:01 +01:00
Merge branch 'develop' of https://github.com/rembo10/headphones into develop
This commit is contained in:
@@ -353,11 +353,11 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list,
|
|||||||
elif Kind == "cue_split":
|
elif Kind == "cue_split":
|
||||||
new_folder = os.path.split(albumpath)[0]
|
new_folder = os.path.split(albumpath)[0]
|
||||||
|
|
||||||
# Need to update the downloaded track list with the new location.
|
# Need to update the downloaded track list with the new location.
|
||||||
# Could probably just throw in the "headphones-modified" folder,
|
# Could probably just throw in the "headphones-modified" folder,
|
||||||
# but this is good to make sure we're not counting files that may have failed to move
|
# but this is good to make sure we're not counting files that may have failed to move
|
||||||
|
if new_folder:
|
||||||
downloaded_track_list = []
|
downloaded_track_list = []
|
||||||
|
|
||||||
for r, d, f in os.walk(albumpath):
|
for r, d, f in os.walk(albumpath):
|
||||||
for files in f:
|
for files in f:
|
||||||
if any(files.lower().endswith('.' + x.lower()) for x in headphones.MEDIA_FORMATS):
|
if any(files.lower().endswith('.' + x.lower()) for x in headphones.MEDIA_FORMATS):
|
||||||
|
|||||||
Reference in New Issue
Block a user