Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: Tropical_Frien…
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (40 sloc) 1.636 kb
# Copyright 2011 Stephen Denham, Joachim Basmaison, Cyril Leclerc
#
# This file is part of xbmc-qobuz.
#
# xbmc-qobuz is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# xbmc-qobuz is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with xbmc-qobuz. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import xbmcaddon
import xbmc
pluginId = 'plugin.audio.qobuz'
__addon__ = xbmcaddon.Addon(id=pluginId)
__addonversion__ = __addon__.getAddonInfo('version')
__addonid__ = __addon__.getAddonInfo('id')
__cwd__ = __addon__.getAddonInfo('path')
dbg = True
addonDir = __addon__.getAddonInfo('path')
libDir = xbmc.translatePath(os.path.join(addonDir, 'resources', 'lib'))
qobuzDir = xbmc.translatePath(os.path.join(libDir, 'qobuz'))
sys.path.append(libDir)
sys.path.append(qobuzDir)
from exception import QobuzXbmcError
from bootstrap import QobuzBootstrap
from debug import warn
boot = QobuzBootstrap(__addon__, int(sys.argv[1]))
try:
boot.bootstrap_app()
boot.dispatch()
except QobuzXbmcError as e:
warn('['+pluginId+']', "Exception while running plugin")
Jump to Line
Something went wrong with that request. Please try again.