mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-31 12:00:04 -07:00
Changed how it detects windows for removing read-only flags
This commit is contained in:
parent
9bd7eb4ec7
commit
4cbd1b36fb
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import re
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import nzbtomedia
|
import nzbtomedia
|
||||||
|
import platform
|
||||||
|
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
from nzbtomedia.autoProcess.autoProcessComics import autoProcessComics
|
from nzbtomedia.autoProcess.autoProcessComics import autoProcessComics
|
||||||
|
@ -149,7 +150,7 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID)
|
||||||
if not inputCategory in nzbtomedia.NOFLATTEN: #don't flatten hp in case multi cd albums, and we need to copy this back later.
|
if not inputCategory in nzbtomedia.NOFLATTEN: #don't flatten hp in case multi cd albums, and we need to copy this back later.
|
||||||
flatten(outputDestination)
|
flatten(outputDestination)
|
||||||
|
|
||||||
if os.name == 'nt': # remove Read Only flag from files in Windows.
|
if platform.system().lower() == 'windows': # remove Read Only flag from files in Windows.
|
||||||
remove_read_only(outputDestination)
|
remove_read_only(outputDestination)
|
||||||
|
|
||||||
# Now check if video files exist in destination:
|
# Now check if video files exist in destination:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue