mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Complete re-code of linking in TorrentToMedia
This commit is contained in:
parent
06c2dae5ce
commit
6a0158d801
14 changed files with 291 additions and 208 deletions
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
import logging
|
||||
from nzbtomedia.nzbToMediaUtil import listMediaFiles
|
||||
from nzbtomedia.nzbToMediaUtil import listMediaFiles, joinPath
|
||||
|
||||
Logger = logging.getLogger()
|
||||
|
||||
|
@ -20,7 +20,7 @@ def process_qoq(filename, dirname):
|
|||
head, fileExtension = os.path.splitext(os.path.basename(filename))
|
||||
newname = head[::-1]
|
||||
newfile = newname + fileExtension
|
||||
newfilePath = os.path.join(dirname, newfile)
|
||||
newfilePath = joinPath(dirname, newfile)
|
||||
os.rename(filename, newfilePath)
|
||||
logging.debug("New file name is %s", newfile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue