def load_modules(): """ Import the system modules """ from htpc.root import Root htpc.ROOT = Root() from htpc.settings import Settings htpc.ROOT.settings = Settings() from htpc.log import Log htpc.ROOT.log = Log() from htpc.updater import Updater htpc.ROOT.update = Updater() from modules.xbmc import Xbmc htpc.ROOT.xbmc = Xbmc() from modules.sabnzbd import Sabnzbd htpc.ROOT.sabnzbd = Sabnzbd() from modules.couchpotato import Couchpotato htpc.ROOT.couchpotato = Couchpotato() from modules.sickbeard import Sickbeard htpc.ROOT.sickbeard = Sickbeard() from modules.transmission import Transmission htpc.ROOT.transmission = Transmission() from modules.deluge import Deluge htpc.ROOT.deluge = Deluge() from modules.squeezebox import Squeezebox htpc.ROOT.squeezebox = Squeezebox() from modules.search import Search htpc.ROOT.search = Search() from modules.utorrent import UTorrent htpc.ROOT.utorrent = UTorrent() from modules.nzbget import NZBGet htpc.ROOT.nzbget = NZBGet() from modules.qbittorrent import qbittorrent htpc.ROOT.qbittorrent = qbittorrent() from modules.stats import Stats htpc.ROOT.stats = Stats()
def load_modules(): """ Import the system modules """ from htpc.root import Root htpc.ROOT = Root() from htpc.settings import Settings htpc.ROOT.settings = Settings() from htpc.log import Log htpc.ROOT.log = Log() from htpc.updater import Updater htpc.ROOT.update = Updater() # Import all modules. from modules.kodi import Kodi htpc.ROOT.kodi = Kodi() from modules.sabnzbd import Sabnzbd htpc.ROOT.sabnzbd = Sabnzbd() from modules.couchpotato import Couchpotato htpc.ROOT.couchpotato = Couchpotato() from modules.sickbeard import Sickbeard htpc.ROOT.sickbeard = Sickbeard() from modules.transmission import Transmission htpc.ROOT.transmission = Transmission() from modules.deluge import Deluge htpc.ROOT.deluge = Deluge() from modules.squeezebox import Squeezebox htpc.ROOT.squeezebox = Squeezebox() from modules.newznab import Newznab htpc.ROOT.newznab = Newznab() from modules.utorrent import UTorrent htpc.ROOT.utorrent = UTorrent() from modules.nzbget import NZBGet htpc.ROOT.nzbget = NZBGet() from modules.qbittorrent import Qbittorrent htpc.ROOT.qbittorrent = Qbittorrent() from modules.stats import Stats htpc.ROOT.stats = Stats() # Commented out since it broken # Its left here incase someone wants to fix it #from modules.tvheadend import TVHeadend #htpc.ROOT.tvheadend = TVHeadend() from modules.torrentsearch import Torrentsearch htpc.ROOT.torrentsearch = Torrentsearch() from modules.plex import Plex htpc.ROOT.plex = Plex() from modules.users import Users htpc.ROOT.users = Users() from modules.sonarr import Sonarr htpc.ROOT.sonarr = Sonarr() from modules.sickrage import Sickrage htpc.ROOT.sickrage = Sickrage() from modules.samsungtv import Samsungtv htpc.ROOT.samsungtv = Samsungtv() from modules.vnstat import Vnstat htpc.ROOT.vnstat = Vnstat() from modules.headphones import Headphones htpc.ROOT.headphones = Headphones() from modules.mylar import Mylar htpc.ROOT.mylar = Mylar()