コード例 #1
0
 def remove(self, videoid):
     """Remove an item from the Kodi library"""
     if ui.ask_for_confirmation(common.get_local_string(30030),
                                common.get_local_string(30124)):
         library.execute_library_tasks(videoid, [library.remove_item],
                                       common.get_local_string(30030))
         common.container_refresh(use_delay=True)
コード例 #2
0
 def update(self, videoid):
     """Update an item in the Kodi library"""
     library.execute_library_tasks(videoid, library.update_item,
                                   common.get_local_string(30061))
     common.refresh_container()
コード例 #3
0
 def export(self, videoid):
     """Export an item to the Kodi library"""
     library.execute_library_tasks(videoid, library.export_item,
                                   common.get_local_string(30018))