mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
add call to migrate
This commit is contained in:
parent
6b1c2f94fe
commit
8cf6646aea
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ from subprocess import call
|
||||||
|
|
||||||
|
|
||||||
# Custom imports
|
# Custom imports
|
||||||
|
import migratecfg
|
||||||
import extractor.extractor as extractor
|
import extractor.extractor as extractor
|
||||||
import autoProcessComics
|
import autoProcessComics
|
||||||
import autoProcessGames
|
import autoProcessGames
|
||||||
|
@ -185,6 +186,10 @@ def main(inputDirectory, inputName, inputCategory, inputHash):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
#check to migrate old cfg before trying to load.
|
||||||
|
if os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]), "autoProcessMedia.cfg.sample"))
|
||||||
|
migratecfg.migrate()
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
nzbtomedia_configure_logging(os.path.dirname(sys.argv[0]))
|
nzbtomedia_configure_logging(os.path.dirname(sys.argv[0]))
|
||||||
Logger = logging.getLogger(__name__)
|
Logger = logging.getLogger(__name__)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue