Esempio n. 1
0
def ContextMenu_Movies(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site', '')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Movie Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    if (tfalse(addst("CMI_SearchKissAnime")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.kissanime')):
        contextMenuItems.append(('Search KissAnime', 'XBMC.Container.Update(%s?mode=%s&pageno=1&pagecount=1&title=%s)' % ('plugin://plugin.video.kissanime/', 'Search', nameonly)))
    if (tfalse(addst("CMI_SearchSolarMovieso")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.solarmovie.so')):
        contextMenuItems.append(('Search Solarmovie.so', 'XBMC.Container.Update(%s?mode=%s&section=%s&title=%s)' % ('plugin://plugin.video.solarmovie.so/', 'Search', 'movies', nameonly)))
    if (tfalse(addst("CMI_Search1Channel")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.1channel')):
        contextMenuItems.append(('Search 1Channel', 'XBMC.Container.Update(%s?mode=7000&section=%s&query=%s)' % ('plugin://plugin.video.1channel/', 'movies', nameonly)))
    try:
        WRFC = ps('WhatRFavsCalled')
        LB = DoLabs2LB(labs)
        LB['mode'] = 'cFavoritesAdd'
        P1 = 'XBMC.RunPlugin(%s)'
        LB['subfav'] = ''
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.1.name'), Pars))
        LB['subfav'] = '2'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.2.name'), Pars))
        LB['subfav'] = '3'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.3.name'), Pars))
        LB['subfav'] = '4'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.4.name'), Pars))
        LB['subfav'] = '5'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.5.name'), Pars))
        LB['subfav'] = '6'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.6.name'), Pars))
        LB['subfav'] = '7'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.7.name'), Pars))
    except:
        pass
Esempio n. 2
0
def ContextMenu_Episodes(labs={}):
    contextMenuItems = []
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Episode Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    return contextMenuItems
Esempio n. 3
0
def nURL(url, method='get', form_data={}, headers={}, html='', proxy='', User_Agent='', cookie_file='', load_cookie=False, save_cookie=False):
    if url == '':
        return ''
    dhtml = '' + html
    if len(User_Agent) > 0:
        net.set_user_agent(User_Agent)
    else:
        net.set_user_agent(ps('User-Agent'))
    if len(proxy) > 9:
        net.set_proxy(proxy)
    if (len(cookie_file) > 0) and (load_cookie == True):
        net.set_cookies(cookie_file)
    if   method.lower() == 'get':
        try:
            html = net.http_GET(url, headers=headers).content
        except:
            html = dhtml
    elif method.lower() == 'post':
        try:
            html = net.http_POST(url, form_data=form_data, headers=headers).content
        except:
            html = dhtml
    elif method.lower() == 'head':
        try:
            html = net.http_HEAD(url, headers=headers).content
        except:
            html = dhtml
    if (len(html) > 0) and (len(cookie_file) > 0) and (save_cookie == True):
        net.save_cookies(cookie_file)
    return html
Esempio n. 4
0
def ContextMenu_Episodes(labs={}):
    contextMenuItems = []
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Episode Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    return contextMenuItems
def SectionMenu():
    ###Anime-Centrum###
    #        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animecentrum'}, {'title': cFL('Anime-Centrum', 'blue')}, is_folder=True, fanart=fanartSiteCentrum, img=iconCentrum)
    ###Diff-Anime###
    #        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'diffanime'}, {'title': cFL('Diff-Anime', 'blue')}, is_folder=True, fanart=fanartSite, img=iconDiff)
    ###DramaQueen###
    #        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'DramaQueen'}, {'title': cFL('DramaQueen', 'blue')}, is_folder=True, fanart=fanartDrama, img=iconSite)
    ###Anime-Online###
    _addon.add_directory(
        {"mode": "SubMenu", "site": site, "section": "animeonline"},
        {"title": cFL("Anime-Odcinki", "blue")},
        is_folder=True,
        fanart=fanartAol,
        img=iconOdcinki,
    )
    ###Anime-Shinden###
    #        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animeshinden'}, {'title': cFL('Anime-Shinden', 'blue')}, is_folder=True, fanart=fanartAol, img=iconShniden)
    ###Anime-On###
    #        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animeon'}, {'title': cFL('Anime-On', 'blue')}, is_folder=True, fanart=fanartAol, img=iconAnimeon)
    ###Ulubione###
    _addon.add_directory(
        {"mode": "FavoritesList", "site": site, "section": ""},
        {"title": cFL_(ps("WhatRFavsCalled") + addst("fav.tv.1.name"), ps("cFL_color3"))},
        fanart=fanartIPTV,
        img=iconFavs,
    )
    _addon.add_directory(
        {"mode": "FavoritesList", "site": site, "section": "", "subfav": "2"},
        {"title": cFL_(ps("WhatRFavsCalled") + addst("fav.tv.2.name"), ps("cFL_color3"))},
        fanart=fanartIPTV,
        img=iconFavs,
    )
    _addon.add_directory(
        {"mode": "FavoritesList", "site": site, "section": "", "subfav": "3"},
        {"title": cFL_(ps("WhatRFavsCalled") + addst("fav.tv.3.name"), ps("cFL_color3"))},
        fanart=fanartIPTV,
        img=iconFavs,
    )
    _addon.add_directory(
        {"mode": "FavoritesList", "site": site, "section": "", "subfav": "4"},
        {"title": cFL_(ps("WhatRFavsCalled") + addst("fav.tv.4.name"), ps("cFL_color3"))},
        fanart=fanartIPTV,
        img=iconFavs,
    )
    set_view("list", view_mode=addst("default-view"))
    eod()
Esempio n. 6
0
def nURL(url,
         method='get',
         form_data={},
         headers={},
         html='',
         proxy='',
         User_Agent='',
         cookie_file='',
         load_cookie=False,
         save_cookie=False):
    if url == '':
        return ''
    dhtml = '' + html
    if len(User_Agent) > 0:
        net.set_user_agent(User_Agent)
    else:
        net.set_user_agent(ps('User-Agent'))
    if len(proxy) > 9:
        net.set_proxy(proxy)
    if (len(cookie_file) > 0) and (load_cookie == True):
        net.set_cookies(cookie_file)
    if method.lower() == 'get':
        try:
            html = net.http_GET(url, headers=headers).content
        except:
            html = dhtml
    elif method.lower() == 'post':
        try:
            html = net.http_POST(url, form_data=form_data,
                                 headers=headers).content
        except:
            html = dhtml
    elif method.lower() == 'head':
        try:
            html = net.http_HEAD(url, headers=headers).content
        except:
            html = dhtml
    if (len(html) > 0) and (len(cookie_file) > 0) and (save_cookie == True):
        net.save_cookies(cookie_file)
    return html
Esempio n. 7
0
def cFL(t, c=ps('default_cFL_color')):
    return '[COLOR ' + c + ']' + t + '[/COLOR]'  # For Coloring Text ###
Esempio n. 8
0
def ContextMenu_Series(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site','')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Show Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    if (tfalse(addst("CMI_FindAirDates")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.solarmovie.so')):
        contextMenuItems.append(('Find AirDates', 'XBMC.Container.Update(%s?mode=%s&title=%s)' % ('plugin://plugin.video.solarmovie.so/', 'SearchForAirDates', labs['title'])))
    if (tfalse(addst("CMI_SearchKissAnime")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.kissanime')):
        contextMenuItems.append(('Search KissAnime', 'XBMC.Container.Update(%s?mode=%s&pageno=1&pagecount=1&title=%s)' % ('plugin://plugin.video.kissanime/', 'Search', nameonly)))
    if (tfalse(addst("CMI_SearchSolarMovieso")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.solarmovie.so')):
        contextMenuItems.append(('Search Solarmovie.so', 'XBMC.Container.Update(%s?mode=%s&section=%s&title=%s)' % ('plugin://plugin.video.solarmovie.so/', 'Search', 'tv', nameonly)))
    if (tfalse(addst("CMI_Search1Channel")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.1channel')):
        contextMenuItems.append(('Search 1Channel', 'XBMC.Container.Update(%s?mode=7000&section=%s&query=%s)' % ('plugin://plugin.video.1channel/', 'tv', nameonly)))
    if (tfalse(addst("CMI_SearchMerDBru")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.merdb')):
        contextMenuItems.append(('Search MerDB', 'XBMC.Container.Update(%s?mode=%s&section=%s&url=%s&title=%s)' % ('plugin://plugin.video.merdb/', 'Search', 'tvshows', urllib.quote_plus('http://merdb.ru/tvshow/'), nameonly)))
    if (tfalse(addst("CMI_SearchIceFilms")) == True) and (os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.icefilms')):
        contextMenuItems.append(('Search Icefilms', 'XBMC.Container.Update(%s?mode=555&url=%s&search=%s&nextPage=%s)' % ('plugin://plugin.video.icefilms/', 'http://www.icefilms.info/', labs['title'], '1')))
    try:
        WRFC = ps('WhatRFavsCalled')
        WRFCr = 'Remove: '
        LB = DoLabs2LB(labs)
        McFA = 'cFavoritesAdd'
        McFR = 'cFavoritesRemove'
        LB['mode'] = McFA
        P1 = 'XBMC.RunPlugin(%s)'
        LB['subfav'] = '1'
        if fav__COMMON__check(LB['site'], LB['section'], LB['title'], LB['year'], LB['subfav']) == True:
            LB['mode'] = McFR
            LabelName = WRFCr + WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
        else:
            LB['mode'] = McFA
            LabelName = WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
        LB['subfav'] = ''
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((LabelName, Pars))
        for nn in ['2', '3', '4']:
            LB['subfav'] = nn
            if fav__COMMON__check(LB['site'], LB['section'], LB['title'], LB['year'], LB['subfav']) == True:
                LB['mode'] = McFR
                LabelName = WRFCr + WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
            else:
                LB['mode'] = McFA
            LabelName = WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((LabelName, Pars))
        #LB['mode']=McFA; LB['subfav']='2'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.2.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='3'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.3.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='4'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.4.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='5'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.5.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='7'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.7.name'),Pars))
        if (tfalse(addst("CMI_RefreshMetaData", "true")) == True):
            LB['mode'] = 'refresh_meta'
            LabelName = 'Refresh MetaData'
            LB['imdb_id'] = LB['commonid']
            LB['alt_id'] = 'imdbnum'
            LB['video_type'] = 'tvshow'
            LB['year']
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((LabelName, Pars))
    except:
        pass
    return contextMenuItems
Esempio n. 9
0
# -*- coding: utf-8 -*-

### Imports ###
import re, os, sys, xbmc, urllib, xbmcplugin, xbmcgui, xbmcaddon
from addon.common.addon import Addon  # może trzeba więcej
import weblogingoogle
import StorageServer
from config import ps
from addon.common.net import Net  # może trzeba więcej


__settings__ = xbmcaddon.Addon(id="plugin.video.anime-iptv")
addonPath = __settings__.getAddonInfo('path')
iconFav = xbmcaddon.Addon(id="plugin.video.anime-iptv").getAddonInfo('path') + '/art/favorites.png'
net = Net()
_addon = Addon(ps('_addon_id'), sys.argv)
cache = StorageServer.StorageServer(ps('_addon_id'))
#cache = os.path.join(ps('_addon_id'))
_artIcon = _addon.get_icon()
_artFanart = _addon.get_fanart()


def addst(r, s=''):
    return _addon.get_setting(r)

loginGoogle = addst('username3', '')
passwordGoogle = addst('password3', '')


def iFL(t):
    return '[I]' + t + '[/I]'  # For Italic Text ###
Esempio n. 10
0
# -*- coding: utf-8 -*-

### Imports ###
import re, os, sys, xbmc, urllib, xbmcplugin, xbmcgui, xbmcaddon
from addon.common.addon import Addon  # może trzeba więcej
import weblogingoogle
import StorageServer
from config import ps
from addon.common.net import Net  # może trzeba więcej

__settings__ = xbmcaddon.Addon(id="plugin.video.anime-iptv")
addonPath = __settings__.getAddonInfo('path')
iconFav = xbmcaddon.Addon(
    id="plugin.video.anime-iptv").getAddonInfo('path') + '/art/favorites.png'
net = Net()
_addon = Addon(ps('_addon_id'), sys.argv)
cache = StorageServer.StorageServer(ps('_addon_id'))
#cache = os.path.join(ps('_addon_id'))
_artIcon = _addon.get_icon()
_artFanart = _addon.get_fanart()


def addst(r, s=''):
    return _addon.get_setting(r)


loginGoogle = addst('username3', '')
passwordGoogle = addst('password3', '')


def iFL(t):
Esempio n. 11
0
def ContextMenu_Favorites(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site', '')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    try:
        _subfav = addpr('subfav', '')
    except:
        _subfav = ''
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    try:
        if _subfav == '':
            _sf = '1'
        else:
            _sf = _subfav
        WRFC = ps('WhatRFavsCalled')
        LB = DoLabs2LB(labs)
        LB['mode'] = 'cFavoritesAdd'
        P1 = 'XBMC.RunPlugin(%s)'
        if _sf is not '1':
            LB['subfav'] = ''
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.1.name'), Pars))
        if _sf is not '2':
            LB['subfav'] = '2'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.2.name'), Pars))
        if _sf is not '3':
            LB['subfav'] = '3'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.3.name'), Pars))
        if _sf is not '4':
            LB['subfav'] = '4'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.4.name'), Pars))
#        if _sf is not '5':
#            LB['subfav'] = '5'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.5.name'), Pars))
#        if _sf is not '6':
#            LB['subfav'] = '6'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.6.name'), Pars))
#        if _sf is not '7':
#            LB['subfav'] = '7'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.7.name'), Pars))
        LB['mode'] = 'cFavoritesRemove'
        LB['subfav'] = _subfav
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append(
            ('Remove: ' + WRFC + addst('fav.tv.' + _sf + '.name'), Pars))
    except:
        pass
    return contextMenuItems
Esempio n. 12
0
def cFL_(t, c=ps('default_cFL_color')):
    return '[COLOR ' + c + ']' + t[0:1] + '[/COLOR]' + t[
        1:]  # For Coloring Text (First Letter-Only) ###
Esempio n. 13
0
def ContextMenu_Series(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site', '')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Show Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    if (tfalse(addst("CMI_FindAirDates")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.solarmovie.so')):
        contextMenuItems.append(
            ('Find AirDates', 'XBMC.Container.Update(%s?mode=%s&title=%s)' %
             ('plugin://plugin.video.solarmovie.so/', 'SearchForAirDates',
              labs['title'])))
    if (tfalse(addst("CMI_SearchKissAnime")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.kissanime')):
        contextMenuItems.append((
            'Search KissAnime',
            'XBMC.Container.Update(%s?mode=%s&pageno=1&pagecount=1&title=%s)' %
            ('plugin://plugin.video.kissanime/', 'Search', nameonly)))
    if (tfalse(addst("CMI_SearchSolarMovieso")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.solarmovie.so')):
        contextMenuItems.append(
            ('Search Solarmovie.so',
             'XBMC.Container.Update(%s?mode=%s&section=%s&title=%s)' %
             ('plugin://plugin.video.solarmovie.so/', 'Search', 'tv',
              nameonly)))
    if (tfalse(addst("CMI_Search1Channel")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.1channel')):
        contextMenuItems.append(
            ('Search 1Channel',
             'XBMC.Container.Update(%s?mode=7000&section=%s&query=%s)' %
             ('plugin://plugin.video.1channel/', 'tv', nameonly)))
    if (tfalse(addst("CMI_SearchMerDBru")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.merdb')):
        contextMenuItems.append(
            ('Search MerDB',
             'XBMC.Container.Update(%s?mode=%s&section=%s&url=%s&title=%s)' %
             ('plugin://plugin.video.merdb/', 'Search', 'tvshows',
              urllib.quote_plus('http://merdb.ru/tvshow/'), nameonly)))
    if (tfalse(addst("CMI_SearchIceFilms")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.icefilms')):
        contextMenuItems.append((
            'Search Icefilms',
            'XBMC.Container.Update(%s?mode=555&url=%s&search=%s&nextPage=%s)' %
            ('plugin://plugin.video.icefilms/', 'http://www.icefilms.info/',
             labs['title'], '1')))
    try:
        WRFC = ps('WhatRFavsCalled')
        WRFCr = 'Remove: '
        LB = DoLabs2LB(labs)
        McFA = 'cFavoritesAdd'
        McFR = 'cFavoritesRemove'
        LB['mode'] = McFA
        P1 = 'XBMC.RunPlugin(%s)'
        LB['subfav'] = '1'
        if fav__COMMON__check(LB['site'], LB['section'], LB['title'],
                              LB['year'], LB['subfav']) == True:
            LB['mode'] = McFR
            LabelName = WRFCr + WRFC + addst('fav.tv.' + LB['subfav'] +
                                             '.name')
        else:
            LB['mode'] = McFA
            LabelName = WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
        LB['subfav'] = ''
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((LabelName, Pars))
        for nn in ['2', '3', '4']:
            LB['subfav'] = nn
            if fav__COMMON__check(LB['site'], LB['section'], LB['title'],
                                  LB['year'], LB['subfav']) == True:
                LB['mode'] = McFR
                LabelName = WRFCr + WRFC + addst('fav.tv.' + LB['subfav'] +
                                                 '.name')
            else:
                LB['mode'] = McFA
            LabelName = WRFC + addst('fav.tv.' + LB['subfav'] + '.name')
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((LabelName, Pars))
        #LB['mode']=McFA; LB['subfav']='2'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.2.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='3'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.3.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='4'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.4.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='5'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.5.name'),Pars))
        #LB['mode']=McFA; LB['subfav']='7'; Pars=P1 % _addon.build_plugin_url(LB); contextMenuItems.append((WRFC+addst('fav.tv.7.name'),Pars))
        if (tfalse(addst("CMI_RefreshMetaData", "true")) == True):
            LB['mode'] = 'refresh_meta'
            LabelName = 'Refresh MetaData'
            LB['imdb_id'] = LB['commonid']
            LB['alt_id'] = 'imdbnum'
            LB['video_type'] = 'tvshow'
            LB['year']
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((LabelName, Pars))
    except:
        pass
    return contextMenuItems
Esempio n. 14
0
def cFL(t, c=ps('default_cFL_color')):
    return '[COLOR ' + c + ']' + t + '[/COLOR]'  # For Coloring Text ###
Esempio n. 15
0
def ContextMenu_Movies(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site', '')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Movie Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    if (tfalse(addst("CMI_SearchKissAnime")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.kissanime')):
        contextMenuItems.append((
            'Search KissAnime',
            'XBMC.Container.Update(%s?mode=%s&pageno=1&pagecount=1&title=%s)' %
            ('plugin://plugin.video.kissanime/', 'Search', nameonly)))
    if (tfalse(addst("CMI_SearchSolarMovieso")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.solarmovie.so')):
        contextMenuItems.append(
            ('Search Solarmovie.so',
             'XBMC.Container.Update(%s?mode=%s&section=%s&title=%s)' %
             ('plugin://plugin.video.solarmovie.so/', 'Search', 'movies',
              nameonly)))
    if (tfalse(addst("CMI_Search1Channel")) == True) and (os.path.exists(
            xbmc.translatePath("special://home/addons/") +
            'plugin.video.1channel')):
        contextMenuItems.append(
            ('Search 1Channel',
             'XBMC.Container.Update(%s?mode=7000&section=%s&query=%s)' %
             ('plugin://plugin.video.1channel/', 'movies', nameonly)))
    try:
        WRFC = ps('WhatRFavsCalled')
        LB = DoLabs2LB(labs)
        LB['mode'] = 'cFavoritesAdd'
        P1 = 'XBMC.RunPlugin(%s)'
        LB['subfav'] = ''
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.1.name'), Pars))
        LB['subfav'] = '2'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.2.name'), Pars))
        LB['subfav'] = '3'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.3.name'), Pars))
        LB['subfav'] = '4'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.4.name'), Pars))
        LB['subfav'] = '5'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.5.name'), Pars))
        LB['subfav'] = '6'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.6.name'), Pars))
        LB['subfav'] = '7'
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append((WRFC + addst('fav.movies.7.name'), Pars))
    except:
        pass
Esempio n. 16
0
def ContextMenu_Favorites(labs={}):
    contextMenuItems = []
    nameonly = filename_filter_out_year(labs['title'])
    try:
        site = labs['site']
    except:
        site = addpr('site', '')
    try:
        section = labs['section']
    except:
        section = addpr('section', '')
    try:
        _subfav = addpr('subfav', '')
    except:
        _subfav = ''
    if tfalse(addst("CMI_ShowInfo")) == True:
        contextMenuItems.append(('Info', ps('cMI.showinfo.url')))
    if labs == {}:
        return contextMenuItems
    try:
        if _subfav == '':
            _sf = '1'
        else:
            _sf = _subfav
        WRFC = ps('WhatRFavsCalled')
        LB = DoLabs2LB(labs)
        LB['mode'] = 'cFavoritesAdd'
        P1 = 'XBMC.RunPlugin(%s)'
        if _sf is not '1':
            LB['subfav'] = ''
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.1.name'), Pars))
        if _sf is not '2':
            LB['subfav'] = '2'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.2.name'), Pars))
        if _sf is not '3':
            LB['subfav'] = '3'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.3.name'), Pars))
        if _sf is not '4':
            LB['subfav'] = '4'
            Pars = P1 % _addon.build_plugin_url(LB)
            contextMenuItems.append((WRFC + addst('fav.tv.4.name'), Pars))
#        if _sf is not '5':
#            LB['subfav'] = '5'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.5.name'), Pars))
#        if _sf is not '6':
#            LB['subfav'] = '6'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.6.name'), Pars))
#        if _sf is not '7':
#            LB['subfav'] = '7'
#            Pars = P1 % _addon.build_plugin_url(LB)
#            contextMenuItems.append((WRFC + addst('fav.tv.7.name'), Pars))
        LB['mode'] = 'cFavoritesRemove'
        LB['subfav'] = _subfav
        Pars = P1 % _addon.build_plugin_url(LB)
        contextMenuItems.append(('Remove: ' + WRFC + addst('fav.tv.' + _sf + '.name'), Pars))
    except:
        pass
    return contextMenuItems
Esempio n. 17
0
def cFL_(t, c=ps('default_cFL_color')):
    return '[COLOR ' + c + ']' + t[0:1] + '[/COLOR]' + t[1:]  # For Coloring Text (First Letter-Only) ###
def SectionMenu():
###Anime-Centrum###
        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animecentrum'}, {'title': cFL('Anime-Centrum', 'blue')}, is_folder=True, fanart=fanartSiteCentrum, img=iconCentrum)
###Diff-Anime###
#        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'diffanime'}, {'title': cFL('Diff-Anime', 'blue')}, is_folder=True, fanart=fanartSite, img=iconDiff)
###DramaQueen###
#        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'DramaQueen'}, {'title': cFL('DramaQueen', 'blue')}, is_folder=True, fanart=fanartDrama, img=iconSite)
###Anime-Online###
        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animeonline'}, {'title': cFL('Anime-Odcinki', 'blue')}, is_folder=True, fanart=fanartAol, img=iconOdcinki)
###Anime-Shinden###
        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animeshinden'}, {'title': cFL('Anime-Shinden', 'blue')}, is_folder=True, fanart=fanartAol, img=iconShniden)
###Anime-On###
        _addon.add_directory({'mode': 'SubMenu', 'site': site, 'section': 'animeon'}, {'title': cFL('Anime-On', 'blue')}, is_folder=True, fanart=fanartAol, img=iconAnimeon)
###Ulubione###
        _addon.add_directory({'mode': 'FavoritesList', 'site': site, 'section': ''}, {'title': cFL_(ps('WhatRFavsCalled') + addst('fav.tv.1.name'), ps('cFL_color3'))}, fanart=fanartIPTV, img=iconFavs)
        _addon.add_directory({'mode': 'FavoritesList', 'site': site, 'section': '', 'subfav': '2'}, {'title': cFL_(ps('WhatRFavsCalled') + addst('fav.tv.2.name'), ps('cFL_color3'))}, fanart=fanartIPTV, img=iconFavs)
        _addon.add_directory({'mode': 'FavoritesList', 'site': site, 'section': '', 'subfav': '3'}, {'title': cFL_(ps('WhatRFavsCalled') + addst('fav.tv.3.name'), ps('cFL_color3'))}, fanart=fanartIPTV, img=iconFavs)
        _addon.add_directory({'mode': 'FavoritesList', 'site': site, 'section': '', 'subfav': '4'}, {'title': cFL_(ps('WhatRFavsCalled') + addst('fav.tv.4.name'), ps('cFL_color3'))}, fanart=fanartIPTV, img=iconFavs)
        set_view('list', view_mode=addst('default-view'))
        eod()