示例#1
0
                    paramDict[paramSplits[0]] = paramSplits[1]
    except:
        errorOK()
    return paramDict


__settings__ = xbmcaddon.Addon(id='plugin.video.chb80_gamestar')
rootPath = __settings__.getAddonInfo('path')

displayGamestar = __settings__.getSetting('gamestar') == "true"
displayGamepro = __settings__.getSetting('gamepro') == "true"
displayYoutube = __settings__.getSetting('youtube') == "true"
showSourcename = __settings__.getSetting('show_shortname') == "true"
GamestarPlusUser = __settings__.getSetting('gamestar_plus')

gui = SimpleXbmcGui(showSourcename)

gui.openMenuContext()
params = get_params()
action = params.get("action", "")
cat = int(params.get("cat", 0))
if (cat == 21001):  ##magazine videos, does paging based on external number
    page = int(params.get("page", 0))
else:
    page = int(params.get("page", 1))
userstring = params.get("userstring", "")

if (userstring == ""):
    if (cat == 20001):  ##search
        result = gui.keyboardInput()
        if (result.isConfirmed()):
示例#2
0
        if (len(paramSplits))==2:
          paramDict[paramSplits[0]] = paramSplits[1]
  except:
    errorOK()
  return paramDict

__settings__ = xbmcaddon.Addon(id='plugin.video.chb80_gamestar')
rootPath = __settings__.getAddonInfo('path');

displayGamestar = __settings__.getSetting('gamestar') == "true";
displayGamepro = __settings__.getSetting('gamepro') == "true";
displayYoutube = __settings__.getSetting('youtube') == "true";
showSourcename = __settings__.getSetting('show_shortname') == "true";
GamestarPlusUser = __settings__.getSetting('gamestar_plus');

gui = SimpleXbmcGui(showSourcename);


gui.openMenuContext();
params=get_params()
action=params.get("action", "")
cat=int(params.get("cat", 0))
if(cat == 21001): ##magazine videos, does paging based on external number
  page=int(params.get("page", 0))
else: 
  page=int(params.get("page", 1))
userstring=params.get("userstring", "")

if(userstring == ""):
  if(cat == 20001): ##search
    result = gui.keyboardInput();
示例#3
0
# 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/>. 

import urllib,xbmc,os,xbmcaddon
from simplexbmc import SimpleXbmcGui
from mediathek.factory import MediathekFactory
__plugin__ = "mediathek"

settings = xbmcaddon.Addon(id='plugin.video.mediathek');

gui = SimpleXbmcGui(settings);

def get_params():
  paramDict = {}
  try:
    print "get_params() argv=", sys.argv
    if sys.argv[2]:
      paramPairs=sys.argv[2][1:].split( "&" )
      for paramsPair in paramPairs:
        paramSplits = paramsPair.split('=')
        if (len(paramSplits))==2:
          paramDict[paramSplits[0]] = paramSplits[1]
  except:
    errorOK()
  return paramDict
示例#4
0
            paramSplits = paramsPair.split('=')
            if (len(paramSplits)) == 2:
                paramDict[paramSplits[0]] = paramSplits[1]
    return paramDict


params = get_params()
itemId = params.get("itemId", "1")
DIR_HOME = xbmc.translatePath(__settings__.getAddonInfo("profile"))

if not os.path.exists(DIR_HOME):
    os.mkdir(DIR_HOME)

DIR_CACHE_ROOT = os.path.join(DIR_HOME, 'cache')
if not os.path.exists(DIR_CACHE_ROOT):
    os.mkdir(DIR_CACHE_ROOT)

DIR_CACHE_THUMPS = os.path.join(DIR_CACHE_ROOT, 'thumbs')
if not os.path.exists(DIR_CACHE_THUMPS):
    os.mkdir(DIR_CACHE_THUMPS)

gui = SimpleXbmcGui()
gallery = Gallery3("<your.host/path/to/gal3>", "<an valid secure-token>", gui,
                   DIR_CACHE_ROOT, DIR_CACHE_THUMPS)
gui.openMenuContext()

gallery.displayChildItems(itemId)

gui.closeMenuContext()
#imdbJson = json.loads(results.read().decode('utf-8'))
示例#5
0
# (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/>. 

import urllib,xbmc,os
from simplexbmc import SimpleXbmcGui
from mediathek.factory import MediathekFactory
__plugin__ = "mediathek"

gui = SimpleXbmcGui();

def get_params():
  paramDict = {}
  try:
    print "get_params() argv=", sys.argv
    if sys.argv[2]:
      paramPairs=sys.argv[2][1:].split( "&" )
      for paramsPair in paramPairs:
        paramSplits = paramsPair.split('=')
        if (len(paramSplits))==2:
          paramDict[paramSplits[0]] = paramSplits[1]
  except:
    errorOK()
  return paramDict
示例#6
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/>.

import os
import sys
import urllib
import xbmc
import xbmcaddon
from simplexbmc import SimpleXbmcGui

__plugin__ = "mediathek"

settings = xbmcaddon.Addon(id='plugin.video.mediathek')

gui = SimpleXbmcGui(settings)

DIR_HOME = xbmc.translatePath(settings.getAddonInfo("profile"))
if not os.path.exists(DIR_HOME):
    os.mkdir(DIR_HOME)

gui.renderMenu()
示例#7
0
        paramSplits = paramsPair.split('=')
        if (len(paramSplits))==2:
          paramDict[paramSplits[0]] = paramSplits[1]
  except IndexError:
    errorOK()
  return paramDict


params=get_params()
path=params.get("path", "")
action=params.get("action","")

__settings__ = xbmcaddon.Addon(id='plugin.audio.podcatcher')
__language__ = __settings__.getLocalizedString

gui = SimpleXbmcGui(path);

DIR_HOME = xbmc.translatePath(__settings__.getAddonInfo("profile"))
if not os.path.exists(DIR_HOME):
  os.mkdir(DIR_HOME);

DIR_ARCHIVES = os.path.join(DIR_HOME, 'archives')
if not os.path.exists(DIR_ARCHIVES):
  os.mkdir(DIR_ARCHIVES);
ArchiveFile.setArchivePath(DIR_ARCHIVES);


PATH_FILE_OPML = __settings__.getSetting("opmlFile")
if (PATH_FILE_OPML == ""):
  PATH_FILE_OPML = os.path.join(DIR_HOME,"opml.xml");
if not os.path.exists(PATH_FILE_OPML):
示例#8
0
  try:
    print "get_params() argv=", sys.argv
    if sys.argv[2]:
      paramPairs=sys.argv[2][1:].split( "&" )
      for paramsPair in paramPairs:
	paramSplits = paramsPair.split('=')
	if (len(paramSplits))==2:
	  paramDict[paramSplits[0]] = paramSplits[1]
  except (ValueError,IndexError):
    errorOK()
  return paramDict

__settings__ = xbmcaddon.Addon(id='plugin.video.gamestar')
rootPath = __settings__.getAddonInfo('path');

gui = SimpleXbmcGui(" ");

displayGamestar = __settings__.getSetting('gamestar') == "true";
displayGamepro = __settings__.getSetting('gamepro') == "true";
displayYoutube = __settings__.getSetting('youtube') == "true";
displayYoutube = __settings__.getSetting('show_shortname') == "true";


gui.openMenuContext();
params=get_params()
action=params.get("action", "")
cat=int(params.get("cat", 0))
gui.log("action: "+action);
gui.log("cat: %s"%cat);

if(action == "list"):
            paramSplits = paramsPair.split("=")
            if (len(paramSplits)) == 2:
                paramDict[paramSplits[0]] = paramSplits[1]
    return paramDict


params = get_params()
itemId = params.get("itemId", "1")
DIR_HOME = xbmc.translatePath(__settings__.getAddonInfo("profile"))

if not os.path.exists(DIR_HOME):
    os.mkdir(DIR_HOME)

DIR_CACHE_ROOT = os.path.join(DIR_HOME, "cache")
if not os.path.exists(DIR_CACHE_ROOT):
    os.mkdir(DIR_CACHE_ROOT)

DIR_CACHE_THUMPS = os.path.join(DIR_CACHE_ROOT, "thumbs")
if not os.path.exists(DIR_CACHE_THUMPS):
    os.mkdir(DIR_CACHE_THUMPS)

gui = SimpleXbmcGui()
gallery = Gallery3("<your.host/path/to/gal3>", "<an valid secure-token>", gui, DIR_CACHE_ROOT, DIR_CACHE_THUMPS)
gui.openMenuContext()


gallery.displayChildItems(itemId)

gui.closeMenuContext()
# imdbJson = json.loads(results.read().decode('utf-8'))
示例#10
0
                paramSplits = paramsPair.split('=')
                if (len(paramSplits)) == 2:
                    paramDict[paramSplits[0]] = paramSplits[1]
    except IndexError:
        errorOK()
    return paramDict


params = get_params()
path = params.get("path", "")
action = params.get("action", "")

__settings__ = xbmcaddon.Addon(id='plugin.audio.podcatcher')
__language__ = __settings__.getLocalizedString

gui = SimpleXbmcGui(path)

DIR_HOME = xbmc.translatePath(__settings__.getAddonInfo("profile"))
if not os.path.exists(DIR_HOME):
    os.mkdir(DIR_HOME)

DIR_ARCHIVES = os.path.join(DIR_HOME, 'archives')
if not os.path.exists(DIR_ARCHIVES):
    os.mkdir(DIR_ARCHIVES)
ArchiveFile.setArchivePath(DIR_ARCHIVES)

PATH_FILE_OPML = __settings__.getSetting("opmlFile")
if (PATH_FILE_OPML == ""):
    PATH_FILE_OPML = os.path.join(DIR_HOME, "opml.xml")
if not os.path.exists(PATH_FILE_OPML):
    gui.errorOK(__language__(30040), __language__(30041))