def remove_silent(self, videoid): """Silently remove an item from the Kodi library (without GUI feedback). This will ignore the setting for syncing my list and Kodi library and do no sync, if not explicitly asked to.""" library.execute_library_tasks_silently( videoid, [library.remove_item], sync_mylist=self.params.get('sync_mylist', False))
def export_silent(self, videoid): """Silently export an item to the Kodi library (without GUI feedback). This will ignore the setting for syncing my list and Kodi library and do no sync, if not explicitly asked to.""" # pylint: disable=broad-except library.execute_library_tasks_silently( videoid, library.export_item, self.params.get('sync_mylist', False))
def export_silent(self, videoid): """Silently export an item to the Kodi library (without GUI feedback). This will ignore the setting for syncing my list and Kodi library and do no sync, if not explicitly asked to. Will only ask for NFO export based on user settings""" # pylint: disable=broad-except nfo_settings = nfo.NFOSettings() nfo_settings.show_export_dialog(videoid.mediatype, common.get_local_string(30191)) library.execute_library_tasks_silently(videoid, [library.export_item], nfo_settings=nfo_settings)