예제 #1
0
 elif 'series' in params:
     xbmcgui.Dialog().ok(
         'Outdated Favourites Link',
         'The Kodi Favourite item being accessed was created with an '
         'earlier version of the iView add-on and is no longer '
         'compatible. Please remove this link and update with a new '
         'one')
 elif 'play' in params:
     play.play(params_str)
 elif 'series_url' in params:
     programs.make_programs_list(params_str)
 elif 'category' in params:
     if params['category'] == 'settings':
         xbmcaddon.Addon().openSettings()
     else:
         series.make_series_list(params_str)
 elif 'action' in params:
     if params['action'] == 'sendreport':
         utils.user_report()
     elif params['action'] == 'update_ia':
         try:
             import drmhelper
             addon = drmhelper.get_addon(drm=False)
             if not drmhelper.is_ia_current(addon, latest=True):
                 if xbmcgui.Dialog().yesno(
                         'Upgrade?',
                     ('Newer version of inputstream.adaptive '
                      'available ({0}) - would you like to '
                      'upgrade to this version?'.format(
                          drmhelper.get_latest_ia_ver()))):
                     drmhelper.get_ia_direct(update=True, drm=False)
예제 #2
0
import sys

import os
import sys

# Add our resources/lib to the python path
try:
    current_dir = os.path.dirname(os.path.abspath(__file__))
except:
    current_dir = os.getcwd()

sys.path.append(os.path.join(current_dir, "resources", "lib"))

import utils, series, programs, play

utils.log('Initialised')

if __name__ == "__main__":
    params_str = sys.argv[2]
    params = utils.get_url(params_str)

    if (len(params) == 0):
        series.make_series_list()
    else:
        if params.has_key("series_id"):
            programs.make_programs_list(params_str)
        elif params.has_key("play"):
            play.play(params_str)
예제 #3
0
import sys

# Add our resources/lib to the python path
try:
   current_dir = os.path.dirname(os.path.abspath(__file__))
except:
   current_dir = os.getcwd()

pypath = os.path.join(current_dir, 'resources', 'lib')
sys.path.append(pypath)

import utils
import series
import programs
import play

# Print our platform/version debugging information
utils.log_xbmc_platform_version()

if __name__ == "__main__" :
    params_str = sys.argv[2]
    params = utils.get_url(params_str)

    if (len(params) == 0):
        series.make_series_list()
    else:
        if params.has_key("series_id"):
            programs.make_programs_list(params_str)
        elif params.has_key("program_id"):
            play.play(params_str)
예제 #4
0
#  You should have received a copy of the GNU General Public License
#  along with this plugin. If not, see <http://www.gnu.org/licenses/>.
#

import os, sys

# Add our resources/lib to the python path
try:
   current_dir = os.path.dirname(os.path.abspath(__file__))
except:
   current_dir = os.getcwd()

sys.path.append(os.path.join(current_dir, 'resources', 'lib'))
import utils, categories, series, programs, play

# Print our platform/version debugging information
utils.log_xbmc_platform_version()

if __name__ == "__main__" :
   params_str = sys.argv[2]
   params = utils.get_url(params_str)

   if (len(params) == 0):
      categories.make_category_list()
   elif params.has_key("play"):
      play.play(params_str)
   elif params.has_key("series"):
      programs.make_programs_list(params_str)
   elif params.has_key("category"):
      series.make_series_list(params_str)
예제 #5
0
if __name__ == "__main__":
    params_str = sys.argv[2]
    params = utils.get_url(params_str)
    utils.log('Running with params: {0}'.format(params))
    if len(params) == 0:
        categories.make_categories_list()
    elif 'action' in params:
        action = params.get('action')
        if action == 'list_categories':
            if params['title'] == 'Live TV':
                live.make_live_list(params_str)
            elif params['title'] == 'Settings':
                xbmcaddon.Addon().openSettings()
            else:
                series.make_series_list(params)
        elif action == 'list_series':
            programs.make_programs_list(params)
        elif action == 'list_programs':
            play.play(params)
        elif action == 'sendreport':
            utils.user_report()
        elif action == 'reinstall_widevine_cdm':
            drmhelper.get_widevinecdm()
        elif action == 'reinstall_ssd_wv':
            drmhelper.get_ssd_wv()
        elif action == 'update_ia':
            addon = drmhelper.get_addon(drm=True)
            if not drmhelper.is_ia_current(addon, latest=True):
                if xbmcgui.Dialog().yesno(
                    'Upgrade?', ('Newer version of inputstream.adaptive '