Skip to content

Commit

Permalink
Merge pull request #2 from vaparr/updaterequest
Browse files Browse the repository at this point in the history
add update_request service
  • Loading branch information
vaparr authored Jan 4, 2021
2 parents 813a1d3 + bb72a03 commit 99e5fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyoverseerr/pyoverseerr.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def request_movie(self, movie_id):
print(data)
request(lambda: self._request_connection(path="request", post_data=data))

def update_request(self, request_id, status):
"""Status = pending/approve/decline/available"""
request(lambda: self._request_connection(path=f"request/{request_id}/{status}"))

def request_tv(self, tv_id, request_all=False, request_latest=False, request_first=False):

tv_data = self._request_connection(f"tv/{tv_id}").json()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="pyoverseerr",
version="0.1.14",
version="0.1.15",
url="https://github.com/vaparr/pyoverseerr",
author="Vaparr",
author_email="Vaparr@vaparr.org",
Expand Down

0 comments on commit 99e5fcb

Please sign in to comment.