mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Fixed logging code in autoFork
This commit is contained in:
parent
c2e9a0e56b
commit
a2cf0d6995
1 changed files with 3 additions and 10 deletions
|
@ -1,15 +1,8 @@
|
|||
import logging
|
||||
import urllib
|
||||
|
||||
import nzbtomedia
|
||||
|
||||
from lib import requests
|
||||
from nzbToMediaConfig import config
|
||||
|
||||
from nzbtomedia import logger
|
||||
def autoFork(inputCategory):
|
||||
|
||||
Logger = logging.getLogger()
|
||||
|
||||
# auto-detect correct section
|
||||
section = nzbtomedia.CFG.findsection(inputCategory)
|
||||
if not section:
|
||||
|
@ -34,12 +27,12 @@ def autoFork(inputCategory):
|
|||
|
||||
try:
|
||||
ssl = int(nzbtomedia.CFG[section][inputCategory]["ssl"])
|
||||
except (config, ValueError):
|
||||
except:
|
||||
ssl = 0
|
||||
|
||||
try:
|
||||
web_root = nzbtomedia.CFG[section][inputCategory]["web_root"]
|
||||
except config:
|
||||
except:
|
||||
web_root = ""
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue