Exemplo n.º 1
0
def selectKindOfMedia():
    list_kind_of_media = xbmcgui.Dialog().multiselect("Select kind of Media",
                                                      ["Movies", "TV Series"])
    kind_of_media = []
    if 0 in list_kind_of_media:
        kind_of_media.append("Movies")
    if 1 in list_kind_of_media:
        kind_of_media.append("TV Shows")
    playlist().selectKindOfMedia(kind_of_media)
Exemplo n.º 2
0
def selectLanguages():
    list_sel_lang = xbmcgui.Dialog().multiselect("Select media language",
                                                 ["De", "En", "Fr", "It"])
    languages = []
    if 0 in list_sel_lang:
        languages.append("De")
    if 1 in list_sel_lang:
        languages.append("En")
    if 2 in list_sel_lang:
        languages.append("Fr")
    if 3 in list_sel_lang:
        languages.append("It")
    playlist().selectLanguages(languages)
Exemplo n.º 3
0
def getPlaylist():
    plylst = playlist().getPlaylist()

    return plylst
Exemplo n.º 4
0
def getPlaylistFiltered():
    plylst = playlist().getPlaylistFiltered()

    return plylst
Exemplo n.º 5
0
def filterVODbyLanguage():
    filtering_keywords = playlist().getLanguageFilteringKeywords()
    playlist().filterVODbyKeywords(filtering_keywords)
Exemplo n.º 6
0
def getFilteringKeywords():
    filtering_keywords = playlist().getFilteringKeywords()
    playlist().filterVODbyKeywords(filtering_keywords)
Exemplo n.º 7
0
def filterVODbyKindOfMedia():
    playlist().filterVODbyKindOfMedia()
Exemplo n.º 8
0
def extractVODFromPlaylist():
    extensions = ('.avi', '.mkv')
    items = playlist().extractVODFromPlaylist(extensions)

    return items
Exemplo n.º 9
0
def openLocalPlaylist():
    path = playlist().selectLocalPlaylist()
    items = playlist().readPlaylist(path)

    return items
Exemplo n.º 10
0
def extractVODFromPlaylist(extensions):
    items = playlist().extractVODFromPlaylist(extensions)

    return items
Exemplo n.º 11
0
def createInstance():

    return playlist()