2014-09-28 10:30:07 +10:00
|
|
|
'''
|
|
|
|
|
@license : Gnu General Public License - see LICENSE.TXT
|
|
|
|
|
|
2014-09-28 20:24:56 +10:00
|
|
|
This is free software: you can redistribute it and/or modify
|
2014-09-28 10:30:07 +10:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
2014-09-28 20:24:56 +10:00
|
|
|
This is distributed in the hope that it will be useful,
|
2014-09-28 10:30:07 +10:00
|
|
|
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
|
2014-09-28 20:24:56 +10:00
|
|
|
along with software. If not, see <http://www.gnu.org/licenses/>.
|
2014-09-28 10:30:07 +10:00
|
|
|
|
|
|
|
|
Thanks to Hippojay for the PleXBMC plugin this is derived from
|
2014-09-28 20:24:56 +10:00
|
|
|
This software is derived form the XBMB3C addon
|
|
|
|
|
|
2014-09-28 10:30:07 +10:00
|
|
|
'''
|
|
|
|
|
|
2014-10-28 16:16:41 +11:00
|
|
|
import os
|
2017-03-09 19:41:53 +11:00
|
|
|
import logging
|
2014-10-28 16:16:41 +11:00
|
|
|
|
2014-09-28 10:30:07 +10:00
|
|
|
import xbmcplugin
|
|
|
|
|
import xbmcgui
|
|
|
|
|
import xbmcaddon
|
|
|
|
|
|
2017-03-09 19:41:53 +11:00
|
|
|
addonSettings = xbmcaddon.Addon(id='plugin.video.embycon')
|
|
|
|
|
addonPath = addonSettings.getAddonInfo('path')
|
|
|
|
|
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( addonPath, 'resources', 'lib' ) )
|
2014-09-28 10:30:07 +10:00
|
|
|
sys.path.append(BASE_RESOURCE_PATH)
|
|
|
|
|
|
2017-03-09 19:41:53 +11:00
|
|
|
import loghandler
|
|
|
|
|
import functions
|
2014-09-28 10:30:07 +10:00
|
|
|
|
2017-03-09 19:41:53 +11:00
|
|
|
log_level = addonSettings.getSetting('logLevel')
|
|
|
|
|
loghandler.config(int(log_level))
|
|
|
|
|
log = logging.getLogger("EmbyCon.default")
|
|
|
|
|
|
|
|
|
|
log.info("About to enter mainEntryPoint()")
|
|
|
|
|
|
|
|
|
|
functions.mainEntryPoint()
|
2014-10-02 16:02:50 +10:00
|
|
|
|
2014-09-28 10:30:07 +10:00
|
|
|
#clear done and exit.
|
2014-10-30 14:29:19 +11:00
|
|
|
#sys.modules.clear()
|
2014-10-02 16:02:50 +10:00
|
|
|
|
|
|
|
|
|