mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Only look for file name, not ext in Torrent Name
This commit is contained in:
parent
23045c8db1
commit
e7ca93f127
1 changed files with 2 additions and 1 deletions
|
@ -312,8 +312,9 @@ for dirpath, dirnames, filenames in os.walk(Directory):
|
|||
for file in filenames:
|
||||
if root == 1:
|
||||
Logger.debug("Looking for %s in filename", Name)
|
||||
if (Name in file) or (file in Name):
|
||||
if (Name in file) or (os.path.splitext(file)[0] in Name):
|
||||
pass #This file does match the Torrent name
|
||||
logger.debug("Found file %s that matches Torrent Name %s", file, Name)
|
||||
else:
|
||||
continue #This file does not match the Torrent name. Skip it
|
||||
file_path = os.path.join(dirpath, file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue