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:
parent
50dd3a531d
commit
5e8cdbfb9a
@ -54,6 +54,7 @@ import locale
|
||||
import datetime
|
||||
import threading
|
||||
import getopt
|
||||
import github
|
||||
|
||||
import sickbeard
|
||||
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.SIGTERM, sickbeard.sig_handler)
|
||||
|
||||
|
||||
class SickRage(object):
|
||||
def __init__(self):
|
||||
# system event callback for shutdown/restart
|
||||
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
|
||||
self.runAsDaemon = False
|
||||
self.CREATEPID = False
|
||||
|
@ -26,8 +26,6 @@ import re
|
||||
import sys
|
||||
import os.path
|
||||
|
||||
import github
|
||||
|
||||
from threading import Lock
|
||||
|
||||
from sickbeard import providers, metadata, config, webserveInit
|
||||
@ -541,10 +539,6 @@ def initialize(consoleLogging=True):
|
||||
CheckSection(CFG, 'Pushbullet')
|
||||
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', '')
|
||||
|
||||
# git_remote
|
||||
|
Loading…
Reference in New Issue
Block a user