You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That you can set if you want to add something to the import exclusion list when deleting an item
Possible Solutions
addImportListExclusion seems to be the parameter to control this setting with the delete query
GET /api/v3/importlistexclusion retrieves the import list exclusion list
DEL /api/v3/importlistexclusion/3927
3927 being the id which you get from the GET request
defdel_series(
self, id_: int, delete_files: bool=False, add_list_exclusion: bool=False
) ->Union[Response, JsonObject, dict[Any, Any]]:
"""Delete the series with the given ID Args: id_ (int): Database ID for series delete_files (bool, optional): If true series folder and files will be deleted. Defaults to False. add_list_exclusion (bool, optional): If true tvdb id will bne added to the import exclusion list. Defaults to False. Returns: dict: Blank dictionary """# File deletion does not workparams= {"deleteFiles": delete_files, "addImportListExclusion": add_list_exclusion}
returnself._delete(f"series/{id_}", self.ver_uri, params=params)
defdel_import_list_exclusion(
self, id_: int
) ->Union[Response, JsonObject, dict[Any, Any]]:
"""Delete the import list exclusion with the given ID Args: id_ (int): Database ID for import list exclusion Returns: dict: Blank dictionary """returnself._delete(f"importlistexclusion/{id_}", self.ver_uri)
defget_import_list_exclusions(
self
) ->Union[JsonArray, JsonObject]:
"""Returns all items on the import list exclusions. Returns: Union[JsonArray, JsonObject]: List of dictionaries with items, or a dictionary with single item """path=f"importlistexclusion"returnself._get(path, self.ver_uri)
Context / Reason
So that if something is deleted it stays deleted and does not get imported again
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Expected feature
That you can set if you want to add something to the import exclusion list when deleting an item
Possible Solutions
addImportListExclusion seems to be the parameter to control this setting with the delete query
GET /api/v3/importlistexclusion retrieves the import list exclusion list
DEL /api/v3/importlistexclusion/3927
3927 being the id which you get from the GET request
Context / Reason
So that if something is deleted it stays deleted and does not get imported again
Code of Conduct
The text was updated successfully, but these errors were encountered: