mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix #6 for github module not found issue
This commit is contained in:
parent
3221c7ed63
commit
291ff880a0
@ -55,6 +55,8 @@ import datetime
|
|||||||
import threading
|
import threading
|
||||||
import getopt
|
import getopt
|
||||||
|
|
||||||
|
import lib.github as github
|
||||||
|
|
||||||
import sickbeard
|
import sickbeard
|
||||||
from sickbeard import db, logger, network_timezones, failed_history, name_cache
|
from sickbeard import db, logger, network_timezones, failed_history, name_cache
|
||||||
from sickbeard.tv import TVShow
|
from sickbeard.tv import TVShow
|
||||||
@ -62,7 +64,6 @@ from sickbeard.webserveInit import SRWebServer
|
|||||||
from sickbeard.databases.mainDB import MIN_DB_VERSION, MAX_DB_VERSION
|
from sickbeard.databases.mainDB import MIN_DB_VERSION, MAX_DB_VERSION
|
||||||
from sickbeard.event_queue import Events
|
from sickbeard.event_queue import Events
|
||||||
from lib.configobj import ConfigObj
|
from lib.configobj import ConfigObj
|
||||||
from lib.github import Github
|
|
||||||
|
|
||||||
throwaway = datetime.datetime.strptime('20110101', '%Y%m%d')
|
throwaway = datetime.datetime.strptime('20110101', '%Y%m%d')
|
||||||
|
|
||||||
@ -74,9 +75,6 @@ class SickRage(object):
|
|||||||
# system event callback for shutdown/restart
|
# system event callback for shutdown/restart
|
||||||
sickbeard.events = Events(self.shutdown)
|
sickbeard.events = Events(self.shutdown)
|
||||||
|
|
||||||
# github api
|
|
||||||
sickbeard.gh = Github().get_organization(sickbeard.GIT_ORG).get_repo(sickbeard.GIT_REPO) # wanted branch
|
|
||||||
|
|
||||||
# daemon constants
|
# daemon constants
|
||||||
self.runAsDaemon = False
|
self.runAsDaemon = False
|
||||||
self.CREATEPID = False
|
self.CREATEPID = False
|
||||||
@ -292,6 +290,9 @@ class SickRage(object):
|
|||||||
MAX_DB_VERSION) + ").\n" + \
|
MAX_DB_VERSION) + ").\n" + \
|
||||||
"If you have used other forks of SB, your database may be unusable due to their modifications.")
|
"If you have used other forks of SB, your database may be unusable due to their modifications.")
|
||||||
|
|
||||||
|
# github api
|
||||||
|
sickbeard.gh = github.Github().get_organization(sickbeard.GIT_ORG).get_repo(sickbeard.GIT_REPO) # wanted branch
|
||||||
|
|
||||||
# Initialize the config and our threads
|
# Initialize the config and our threads
|
||||||
sickbeard.initialize(consoleLogging=self.consoleLogging)
|
sickbeard.initialize(consoleLogging=self.consoleLogging)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user