예제 #1
0
def BGTag(url):
    caturl = utils.getHtml5(url)
    tags = re.compile('{"tag":"(.+?)","videos":(.+?)}', re.DOTALL | re.IGNORECASE).findall(caturl)
    for tag,count in tags:
        videolist = "https://api.beeg.com/api/v6/" + str(addon.getSetting('bgversion')) + "/index/tag/0/pc?tag=" + urllib.quote(tag.encode("utf8").lower())
        name = tag.encode("utf8")
        name = name.title() +' [COLOR deeppink]' + count + '[/COLOR]'
        utils.addDir(name, videolist, 81, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
예제 #2
0
def BGCat(url):
    bgversion = addon.getSetting('bgversion')
    caturl = utils.getHtml5(url)
    tags = re.compile('{"tag":"(.+?)","videos":(.+?)}',
                      re.DOTALL | re.IGNORECASE).findall(caturl)
    for tag, count in tags:
        videolist = "https://beeg.com/api/v6/" + bgversion + "/index/tag/0/pc?tag=" + tag.encode(
            "utf8")
        videolist = videolist.replace(" ", "%20")
        name = replaceunicode(tag)
        name = name.title() + ' [COLOR deeppink]' + count + '[/COLOR]'
        utils.addDir(name, videolist, 81, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
예제 #3
0
def BGCat(url):
	bgversion = addon.getSetting('bgversion')

	caturl = utils.getHtml5(url)

	#tags = re.compile(r'"nonpopular":\[(.*?)\]', re.DOTALL | re.IGNORECASE).findall(caturl)[0]
	#tags = re.compile('"([^"]+)"', re.DOTALL | re.IGNORECASE).findall(tags)
	tags = re.compile('{"tag":"(.+?)","videos":(.+?)}', re.DOTALL | re.IGNORECASE).findall(caturl)	
	#{"tag":"18-21 yo","videos":11126}
	for tag,count in tags:
		videolist = "https://beeg.com/api/v6/"+bgversion+"/index/tag/0/mobile?tag=" + tag.encode("utf8")
		name = tag.encode("utf8")
		name = name.upper() +' [COLOR deeppink]' + count + '[/COLOR]'
		utils.addDir(name, videolist, 81, '')
	xbmcplugin.endOfDirectory(utils.addon_handle)
예제 #4
0
def BGCat(url):
    bgversion = addon.getSetting('bgversion')

    caturl = utils.getHtml5(url)

    #tags = re.compile(r'"nonpopular":\[(.*?)\]', re.DOTALL | re.IGNORECASE).findall(caturl)[0]
    #tags = re.compile('"([^"]+)"', re.DOTALL | re.IGNORECASE).findall(tags)
    tags = re.compile('{"tag":"(.+?)","videos":(.+?)}',
                      re.DOTALL | re.IGNORECASE).findall(caturl)
    #{"tag":"18-21 yo","videos":11126}
    for tag, count in tags:
        videolist = "https://beeg.com/api/v6/" + bgversion + "/index/tag/0/mobile?tag=" + tag.encode(
            "utf8")
        name = tag.encode("utf8")
        name = name.upper() + ' [COLOR deeppink]' + count + '[/COLOR]'
        utils.addDir(name, videolist, 81, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
예제 #5
0
def BGChannels(url):
    bgversion = addon.getSetting('bgversion')
    caturl = utils.getHtml5(url)
    tags = re.compile(
        '"id":(\d+),.+?"channel":"([^"]+)",.+?,"ps_name":"([^"]+)".+?"ps_about":"([^"]*)",.+?"videos":(\d*),"image":(\d+),',
        re.DOTALL | re.IGNORECASE).findall(caturl)
    for id, channel, name, about, count, img in tags:
        if img != '0':
            img = "https://beeg.com/media/channels/" + id + ".png?_=" + bgversion
        else:
            img = "https://beeg.com/img/icons/avatars/channel-512.png"
        videolist = "https://beeg.com/api/v6/" + bgversion + "/index/channel/0/pc?channel=" + channel.encode(
            "utf8")
        videolist = videolist.replace(" ", "%20")
        name = replaceunicode(name)
        name = name.title(
        ) + ' [COLOR deeppink]' + count + '[/COLOR] ... ' + '[COLOR brown]' + about + '[/COLOR]'
        utils.addDir(name, videolist, 81, img)
    xbmcplugin.endOfDirectory(utils.addon_handle)