mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-23 06:25:22 -07:00
Sort listMediaFiles results by path length
Sort listMediaFiles results by path length in order to give priority to files higher in the folder hierarchy. Corrects an error where the contents of an archive file in a child directory could overwrite other archive files in the parent directory before the overwritten archive has been extracted.
This commit is contained in:
parent
c50957d0b4
commit
9e788a0f42
1 changed files with 1 additions and 1 deletions
|
@ -977,7 +977,7 @@ def listMediaFiles(path, minSize=0, delete_ignored=0, media=True, audio=True, me
|
||||||
|
|
||||||
files.append(fullCurFile)
|
files.append(fullCurFile)
|
||||||
|
|
||||||
return files
|
return sorted(files,key=len)
|
||||||
|
|
||||||
def find_imdbid(dirName, inputName):
|
def find_imdbid(dirName, inputName):
|
||||||
imdbid = None
|
imdbid = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue