mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Improve regex for rename script.
This commit is contained in:
parent
f9c2ab8d84
commit
5b224f41cf
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ def rename_script(dirname):
|
||||||
rename_file = ""
|
rename_file = ""
|
||||||
for dir, dirs, files in os.walk(dirname):
|
for dir, dirs, files in os.walk(dirname):
|
||||||
for file in files:
|
for file in files:
|
||||||
if re.search('(rename\S*\.(sh|bat))',file):
|
if re.search('(rename\S*\.(sh|bat)$)',file,re.IGNORECASE):
|
||||||
rename_file = os.path.join(dir, file)
|
rename_file = os.path.join(dir, file)
|
||||||
dirname = dir
|
dirname = dir
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue