Add TV and movie watchlist download tags
This commit is contained in:
@@ -60,6 +60,7 @@ class HandlerContext:
|
||||
update_all_watchlist_statuses: object
|
||||
update_watchlist_auto_download: object
|
||||
update_watchlist_category: object
|
||||
update_watchlist_media_type: object
|
||||
update_watchlist_status: object
|
||||
upload_watchlist_thumbnail: object
|
||||
watchlist_html: str
|
||||
@@ -544,6 +545,10 @@ class Handler(BaseHTTPRequestHandler):
|
||||
Handler._runtime(self)
|
||||
payload = Handler.require_fields(self, self.body_json(), "show_id")
|
||||
self.json(Handler._context(self).update_watchlist_category(payload["show_id"], payload.get("category")))
|
||||
elif parsed.path == "/api/watchlist/update-media-type":
|
||||
Handler._runtime(self)
|
||||
payload = Handler.require_fields(self, self.body_json(), "show_id")
|
||||
self.json(Handler._context(self).update_watchlist_media_type(payload["show_id"], payload.get("media_type")))
|
||||
elif parsed.path == "/api/watchlist/update-auto-download":
|
||||
Handler._runtime(self)
|
||||
payload = Handler.require_fields(self, self.body_json(), "show_id")
|
||||
|
||||
Reference in New Issue
Block a user