def home():
     g.add_directory_item(g.get_language_string(30000),
                          action='moviesHome',
                          description=g.get_language_string(30397))
     g.add_directory_item(g.get_language_string(30002),
                          action='showsHome',
                          description=g.get_language_string(30398))
     if g.get_setting('trakt.auth'):
         g.add_directory_item(g.get_language_string(30001),
                              action='myMovies',
                              description=g.get_language_string(30399))
     if g.get_setting('trakt.auth'):
         g.add_directory_item(g.get_language_string(30003),
                              action='myShows',
                              description=g.get_language_string(30400))
     if g.debrid_available():
         g.add_directory_item(g.get_language_string(30190),
                              action='myFiles',
                              description=g.get_language_string(30401))
     g.add_directory_item(g.get_language_string(30013),
                          action='searchMenu',
                          description=g.get_language_string(30402))
     g.add_directory_item(g.get_language_string(30028),
                          action='toolsMenu',
                          description=g.get_language_string(30403))
     g.close_directory(g.CONTENT_FOLDER)
Exemple #2
0
 def home():
     g.add_directory_item(g.get_language_string(30000),
                          action='moviesHome',
                          description=g.get_language_string(30364))
     g.add_directory_item(g.get_language_string(30002),
                          action='showsHome',
                          description=g.get_language_string(30365))
     if g.get_setting('trakt.auth'):
         g.add_directory_item(g.get_language_string(30001),
                              action='myMovies',
                              description=g.get_language_string(30366))
     if g.get_setting('trakt.auth'):
         g.add_directory_item(g.get_language_string(30003),
                              action='myShows',
                              description=g.get_language_string(30367))
     if g.debrid_available():
         g.add_directory_item(g.get_language_string(30173),
                              action='myFiles',
                              description=g.get_language_string(30368))
     g.add_directory_item(g.get_language_string(30013),
                          action='searchMenu',
                          description=g.get_language_string(30369))
     g.add_directory_item(g.get_language_string(30027),
                          action='toolsMenu',
                          description=g.get_language_string(30370))
     g.close_directory(g.CONTENT_MENU)
 def tools_menu():
     g.add_directory_item(g.get_language_string(30038),
                          action='providerTools',
                          description=g.get_language_string(30410))
     if g.debrid_available():
         g.add_directory_item(g.get_language_string(30039),
                              action='debridServices',
                              description=g.get_language_string(30411))
     g.add_directory_item(g.get_language_string(30029),
                          action='clearCache',
                          is_folder=False,
                          description=g.get_language_string(30412))
     g.add_directory_item(g.get_language_string(30040),
                          action='clearTorrentCache',
                          is_folder=False,
                          description=g.get_language_string(30413))
     g.add_directory_item(g.get_language_string(30202),
                          action='clearSearchHistory',
                          is_folder=False,
                          description=g.get_language_string(30414))
     g.add_directory_item(g.get_language_string(30041),
                          action='openSettings',
                          is_folder=False,
                          description=g.get_language_string(30415))
     g.add_directory_item(g.get_language_string(30042),
                          action='cleanInstall',
                          is_folder=False,
                          description=g.get_language_string(30416))
     g.add_directory_item(g.get_language_string(30237),
                          action='traktSyncTools',
                          is_folder=True,
                          description=g.get_language_string(30417))
     g.add_directory_item('Download Manager',
                          action='downloadManagerView',
                          is_folder=False,
                          description='View Current Downloads')
     if g.get_bool_setting("skin.testmenu", False):
         g.add_directory_item('Window Tests',
                              action='testWindows',
                              description=g.get_language_string(30418))
     g.close_directory(g.CONTENT_FOLDER)