mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
Added support for symbolic linking.
This commit is contained in:
parent
cecd34c626
commit
6ee08b99b0
4 changed files with 29 additions and 7 deletions
|
@ -101,6 +101,15 @@ def migrate():
|
|||
option, value = item
|
||||
if option in ["compressedExtensions", "mediaExtensions", "metaExtensions"]:
|
||||
section = "Extensions" # these were moved
|
||||
if option == "useLink": # Sym links supported now as well.
|
||||
try:
|
||||
num_value = int(value)
|
||||
if num_value == 1:
|
||||
value = "hard"
|
||||
else:
|
||||
value = "no"
|
||||
except ValueError:
|
||||
pass
|
||||
confignew.set(section, option, value)
|
||||
section = "Torrent" # reset in case extensions out of order.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue