Skip to content

Commit

Permalink
fix sonarr v4 show add
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Dec 7, 2022
1 parent d651d91 commit 33c31ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.4.1
8 changes: 4 additions & 4 deletions arrapi/apis/radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def delete_movie(
def add_multiple_movies(self, ids: List[Union[int, str, Movie, Tuple[Union[int, str, Movie], str]]],
root_folder: Union[str, int, RootFolder],
quality_profile: Union[str, int, QualityProfile],
monitor: Union[bool, str] = True,
monitor: bool = True,
search: bool = True,
minimum_availability: str = "announced",
tags: Optional[List[Union[str, int, Tag]]] = None,
Expand All @@ -262,7 +262,7 @@ def add_multiple_movies(self, ids: List[Union[int, str, Movie, Tuple[Union[int,
ids (List[Union[int, str, Movie, Tuple[Union[int, str, Movie], str]]]): List of TMDB IDs, IMDb IDs, or Movie lookups to add.
root_folder (Union[str, int, RootFolder]): Root Folder for the Movies.
quality_profile (Union[str, int, QualityProfile]): Quality Profile for the Movies.
monitor (Union[bool, str]): Monitor the Movies. Valid V4 Options are movieOnly, movieAndCollection, none.
monitor (bool): Monitor the Movies.
search (bool): Search for the Movies after adding.
minimum_availability (str): Minimum Availability for the Movies. Valid options are announced, inCinemas, released, or preDB.
tags (Optional[List[Union[str, int, Tag]]]): Tags to be added to the Movies.
Expand Down Expand Up @@ -316,7 +316,7 @@ def edit_multiple_movies(self, ids: List[Union[int, str, Movie]],
root_folder: Optional[Union[str, int, RootFolder]] = None,
move_files: bool = False,
quality_profile: Optional[Union[str, int, QualityProfile]] = None,
monitored: Optional[Union[bool, str]] = None,
monitored: Optional[bool] = None,
minimum_availability: Optional[str] = None,
tags: Optional[List[Union[str, int, Tag]]] = None,
apply_tags: str = "add",
Expand All @@ -329,7 +329,7 @@ def edit_multiple_movies(self, ids: List[Union[int, str, Movie]],
root_folder (Union[str, int, RootFolder]): Root Folder to change the Movie to.
move_files (bool): When changing the root folder do you want to move the files to the new path.
quality_profile (Optional[Union[str, int, QualityProfile]]): Quality Profile to change the Movie to.
monitored (Optional[Union[bool, str]]): Monitor the Movie. Valid V4 Options are movieOnly, movieAndCollection, none.
monitored (Optional[bool]): Monitor the Movie.
minimum_availability (Optional[str]): Minimum Availability to change the Movie to. Valid options are announced, inCinemas, released, or preDB.
tags (Optional[List[Union[str, int, Tag]]]): Tags to be added, replaced, or removed from the Movie.
apply_tags (str): How you want to edit the Tags. Valid options are add, replace, or remove.
Expand Down
3 changes: 2 additions & 1 deletion arrapi/objs/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ def _get_add_data(self, options, path=None):
self._data["rootFolderPath"] = options["root_folder"]
self._data["monitored"] = options["monitored"]
self._data["qualityProfileId" if self._raw.new_codebase else "profileId"] = options["quality_profile"]
self._data["languageProfileId"] = options["language_profile"]
if "language_profile" in options:
self._data["languageProfileId"] = options["language_profile"]
self._data["seriesType"] = options["series_type"]
self._data["seasonFolder"] = options["season_folder"]
self._data["addOptions"] = {
Expand Down

0 comments on commit 33c31ec

Please sign in to comment.