installSoftware
This commit is contained in:
parent
10f8511294
commit
1b104be690
4 changed files with 677 additions and 294 deletions
|
@ -71,6 +71,8 @@ if len(sys.argv) >= 3:
|
|||
show_name = sys.argv[2]
|
||||
else:
|
||||
show_name = os.path.split(os.path.realpath(os.path.curdir))[1]
|
||||
if '(' in show_name:
|
||||
show_name = show_name.split('(')[0].strip()
|
||||
|
||||
search = tv.search(show_name)
|
||||
|
||||
|
@ -180,6 +182,9 @@ for association in associations:
|
|||
if a_basename == basename:
|
||||
old_path = os.path.join(root, a_filename)
|
||||
new_path = os.path.join(root, new_name + a_ext)
|
||||
if old_path == new_path:
|
||||
continue
|
||||
|
||||
print(old_path, "->", new_path)
|
||||
if not dryrun:
|
||||
os.rename(old_path, new_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue