mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Convert to new-style class by inheriting from object
This commit is contained in:
parent
c7defa37da
commit
0a1fe84306
5 changed files with 13 additions and 8 deletions
|
@ -9,7 +9,8 @@ from core import logger
|
|||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
|
||||
class autoProcessComics:
|
||||
|
||||
class autoProcessComics(object):
|
||||
def processEpisode(self, section, dirName, inputName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
if int(status) != 0:
|
||||
logger.warning("FAILED DOWNLOAD DETECTED, nothing to process.",section)
|
||||
|
|
|
@ -10,7 +10,8 @@ from core import logger
|
|||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
|
||||
class autoProcessGames:
|
||||
|
||||
class autoProcessGames(object):
|
||||
def process(self, section, dirName, inputName=None, status=0, clientAgent='manual', inputCategory=None):
|
||||
status = int(status)
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ from core.transcoder import transcoder
|
|||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
|
||||
class autoProcessMovie:
|
||||
|
||||
class autoProcessMovie(object):
|
||||
def get_release(self, baseURL, imdbid=None, download_id=None, release_id=None):
|
||||
results = {}
|
||||
params = {}
|
||||
|
|
|
@ -11,7 +11,8 @@ from core import logger
|
|||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
|
||||
class autoProcessMusic:
|
||||
|
||||
class autoProcessMusic(object):
|
||||
def get_status(self, url, apikey, dirName):
|
||||
logger.debug("Attempting to get current status for release:%s" % (os.path.basename(dirName)))
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@ from core.transcoder import transcoder
|
|||
|
||||
requests.packages.urllib3.disable_warnings()
|
||||
|
||||
class autoProcessTV:
|
||||
|
||||
class autoProcessTV(object):
|
||||
def command_complete(self, url, params, headers, section):
|
||||
try:
|
||||
r = requests.get(url, params=params, headers=headers, stream=True, verify=False, timeout=(30, 60))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue