示例#1
0
 def run(self):
     xbmc.log(
         '[ plugin.video.venom ]  Library Update Service Starting (Update check every 6hrs)...',
         2)
     control.execute(
         'RunPlugin(plugin://%s)' %
         control.get_plugin_url({'action': 'library_service'})
     )  # library_service contains xbmc.Monitor().waitForAbort() while loop every 6hrs
示例#2
0
        '############################# Venom ############################',
        log_utils.LOGNOTICE)
    log_utils.log(
        '################# CURRENT Venom VERSIONS REPORT ################',
        log_utils.LOGNOTICE)
    log_utils.log(
        '# ERROR GETTING Venom VERSION - Missing Repo of failed Install #',
        log_utils.LOGNOTICE)
    log_utils.log(
        '################################################################',
        log_utils.LOGNOTICE)

traktCredentials = trakt.getTraktCredentialsInfo()
# check on adding while loop here with xbmc.Monitor().abortRequested() vs. inside the service function
control.execute('RunPlugin(plugin://%s)' %
                control.get_plugin_url({'action': 'library_service'}))

if control.setting('general.checkAddonUpdates') == 'true':
    AddonCheckUpdate().run()
    xbmc.log('[ plugin.video.venom ] Addon update check complete',
             xbmc.LOGNOTICE)

if traktCredentials is True:
    SyncTraktWatched().run()
    xbmc.log('[ plugin.video.venom ] Trakt watched status sync complete',
             xbmc.LOGNOTICE)

if control.setting('autoTraktOnStart') == 'true':
    SyncTraktLibrary().run()
    xbmc.log('[ plugin.video.venom ] Trakt Library sync complete',
             xbmc.LOGNOTICE)
示例#3
0
    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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
"""
from resources.lib.modules import log_utils
from resources.lib.modules import control

control.execute('RunPlugin(plugin://%s)' % control.get_plugin_url({'action': 'service'}))

try:
    ModuleVersion = control.addon('script.module.flixnet').getAddonInfo('version')
    AddonVersion = control.addon('plugin.video.flixnet').getAddonInfo('version')
    # RepoVersion = control.addon('repository.jesusboxtv').getAddonInfo('version')

    log_utils.log('######################### flixnet ############################', log_utils.LOGNOTICE)
    log_utils.log('####### CURRENT flixnet VERSIONS REPORT ######################', log_utils.LOGNOTICE)
    log_utils.log('### flixnet PLUGIN VERSION: %s ###' % str(AddonVersion), log_utils.LOGNOTICE)
    log_utils.log('### flixnet SCRIPT VERSION: %s ###' % str(ModuleVersion), log_utils.LOGNOTICE)
    # log_utils.log('### jesus Box TV REPOSITORY VERSION: %s ###' % str(RepoVersion), log_utils.LOGNOTICE)
    log_utils.log('###############################################################', log_utils.LOGNOTICE)
except:
    log_utils.log('######################### flixnet ############################', log_utils.LOGNOTICE)
    log_utils.log('####### CURRENT flixnet VERSIONS REPORT ######################', log_utils.LOGNOTICE)
示例#4
0
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
"""
from resources.lib.modules import log_utils
from resources.lib.modules import control

control.execute('RunPlugin(plugin://%s)' %
                control.get_plugin_url({'action': 'service'}))

try:
    ModuleVersion = control.addon('script.module.incursion').getAddonInfo(
        'version')
    AddonVersion = control.addon('plugin.video.incursion').getAddonInfo(
        'version')
    #RepoVersion = control.addon('repository.colossus').getAddonInfo('version')

    log_utils.log(
        '######################### INCURSION ############################',
        log_utils.LOGNOTICE)
    log_utils.log(
        '####### CURRENT INCURSION VERSIONS REPORT ######################',
        log_utils.LOGNOTICE)
    log_utils.log('### INCURSION PLUGIN VERSION: %s ###' % str(AddonVersion),
示例#5
0
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
"""
from resources.lib.modules import log_utils
from resources.lib.modules import control
import threading

control.execute('RunPlugin(plugin://%s)' % control.get_plugin_url({'action': 'service'}))

def syncTraktLibrary():
    control.execute(
        'RunPlugin(plugin://%s)' % 'plugin.video.exodus/?action=tvshowsToLibrarySilent&url=traktcollection')
    control.execute(
        'RunPlugin(plugin://%s)' % 'plugin.video.exodus/?action=moviesToLibrarySilent&url=traktcollection')

try:
    ModuleVersion = control.addon('script.module.exodus').getAddonInfo('version')
    AddonVersion = control.addon('plugin.video.exodus').getAddonInfo('version')

    log_utils.log('######################### EXODUS ############################', log_utils.LOGNOTICE)
    log_utils.log('####### CURRENT EXODUS VERSIONS REPORT ######################', log_utils.LOGNOTICE)
    log_utils.log('### EXODUS PLUGIN VERSION: %s ###' % str(AddonVersion), log_utils.LOGNOTICE)
    log_utils.log('### EXODUS SCRIPT VERSION: %s ###' % str(ModuleVersion), log_utils.LOGNOTICE)