mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
cleanup
This commit is contained in:
parent
1c1dc35e4c
commit
5e9677be6c
1 changed files with 2 additions and 4 deletions
|
@ -46,7 +46,7 @@ packed = 0
|
||||||
config = ConfigParser.ConfigParser()
|
config = ConfigParser.ConfigParser()
|
||||||
configFilename = os.path.join(os.path.dirname(sys.argv[0]), "TorrentToMedia.cfg")
|
configFilename = os.path.join(os.path.dirname(sys.argv[0]), "TorrentToMedia.cfg")
|
||||||
|
|
||||||
print "transmissionToMedia v 4.1"
|
print "torrentToMedia v 4.1"
|
||||||
print "INFO: Loading config from", configFilename
|
print "INFO: Loading config from", configFilename
|
||||||
|
|
||||||
if not os.path.isfile(configFilename):
|
if not os.path.isfile(configFilename):
|
||||||
|
@ -84,8 +84,6 @@ elif useLink == 0 and packed == 0: ## hardlink
|
||||||
shutil.copytree(src, dst, copy_function=os.link)
|
shutil.copytree(src, dst, copy_function=os.link)
|
||||||
|
|
||||||
elif useLink == 0 and packed == 1: ## unpack
|
elif useLink == 0 and packed == 1: ## unpack
|
||||||
## 7z x test.rar ---- need to add "yes" to command
|
|
||||||
|
|
||||||
## Using Windows?
|
## Using Windows?
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
cmd_7zip = [extractionTool, 'x -y']
|
cmd_7zip = [extractionTool, 'x -y']
|
||||||
|
@ -127,7 +125,7 @@ elif useLink == 0 and packed == 1: ## unpack
|
||||||
else:
|
else:
|
||||||
print("ERROR: Unknown file type: %s", ext[1])
|
print("ERROR: Unknown file type: %s", ext[1])
|
||||||
continue
|
continue
|
||||||
fp = os.path.join(save_path, os.path.normpath(f["path"]))
|
fp = os.path.join(destination, os.path.normpath(f["path"]))
|
||||||
|
|
||||||
## Destination path
|
## Destination path
|
||||||
dest = os.path.join(destination, Name)
|
dest = os.path.join(destination, Name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue