1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix #4 for github module not found issue

This commit is contained in:
echel0n 2014-11-16 04:01:15 -08:00
parent 50dd3a531d
commit 5e8cdbfb9a
2 changed files with 4 additions and 7 deletions

View File

@ -54,6 +54,7 @@ import locale
import datetime import datetime
import threading import threading
import getopt import getopt
import 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
@ -68,12 +69,14 @@ throwaway = datetime.datetime.strptime('20110101', '%Y%m%d')
signal.signal(signal.SIGINT, sickbeard.sig_handler) signal.signal(signal.SIGINT, sickbeard.sig_handler)
signal.signal(signal.SIGTERM, sickbeard.sig_handler) signal.signal(signal.SIGTERM, sickbeard.sig_handler)
class SickRage(object): class SickRage(object):
def __init__(self): def __init__(self):
# 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.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

View File

@ -26,8 +26,6 @@ import re
import sys import sys
import os.path import os.path
import github
from threading import Lock from threading import Lock
from sickbeard import providers, metadata, config, webserveInit from sickbeard import providers, metadata, config, webserveInit
@ -541,10 +539,6 @@ def initialize(consoleLogging=True):
CheckSection(CFG, 'Pushbullet') CheckSection(CFG, 'Pushbullet')
CheckSection(CFG, 'Subtitles') CheckSection(CFG, 'Subtitles')
# github api
gh = github.Github().get_organization(GIT_ORG).get_repo(GIT_REPO)
# wanted branch
BRANCH = check_setting_str(CFG, 'General', 'branch', '') BRANCH = check_setting_str(CFG, 'General', 'branch', '')
# git_remote # git_remote