Example #1
0
import sys
import help_fns

from help_fns_xbmc import help_fns_xbmc
from sites.kkiste import kkiste

kk = kkiste.KKiste(help_fns_xbmc(int(sys.argv[1])))
kk.handleParameter(help_fns.parameters_string_to_dict(sys.argv[2]))
Example #2
0
		videoDir = xbmcaddon.Addon(id="plugin.video.serien").getSetting("downloadDir")

		commands = []
		commands.append(("runterladen", "XBMC.RunScript(" + scriptPath + "," +
						" http://www.burning-seri.es/" + parameters['url'] + ", " + 
						parameters['hoster'] + ", " +
						videoDir + parameters['displayName'] + ")"))
		li.addContextMenuItems(commands, True)
		
	url = sys.argv[0] + '?' + urllib.urlencode(parameters)
	return xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=url, listitem=li, isFolder=True)
	
def getCurrentPath():
	return os.path.dirname(os.path.realpath(__file__))

params = help_fns.parameters_string_to_dict(sys.argv[2])
url = urllib.unquote(str(params.get("url", "")))
siteType = urllib.unquote(str(params.get("type", "")))
hoster = urllib.unquote(str(params.get("hoster", "")))
displayName = urllib.unquote(str(params.get("displayName", "")))
img = urllib.unquote(str(params.get("img", "")))

if not sys.argv[2]:
	showContent(Anfangsbuchstaben())
else:
	url = urlHost + url

	if siteType == "hoster":
		newObject = Hoster()
		newObject.init(url, hoster, displayName, img)
		showVideo(newObject)
Example #3
0
    def showContent(self, argv, siteObject):
        thisPlugin = int(argv[1])
        params = help_fns.parameters_string_to_dict(argv[2])

        siteObject.handleParameter(params, thisPlugin)