Jump to content

Marking watched unwatched


Angelblue05

Recommended Posts

Angelblue05

@@Luke

 

I'm discovering today that it seems the mark played/unplayed response from the API is incorrect. Any chance of fixing it by making it return 204 when successful instead of the returning a <!doctype html> that holds no content? Really messes up with the expected json response hehe.

Edited by Angelblue05
Link to comment
Share on other sites

i can't reproduce that sorry. no problem found.

 

  1. Access-Control-Allow-Headers:
    Content-Type, Authorization, Range, X-MediaBrowser-Token
  2. Access-Control-Allow-Methods:
    GET, POST, PUT, DELETE, OPTIONS
  3. Access-Control-Allow-Origin:
    *
  4. Content-Encoding:
    deflate
  5. Content-Length:
    124
  6. Content-Type:
    application/json; charset=utf-8
  7. Date:
    Sun, 03 May 2015 15:20:44 GMT
  8. Server:
    Mono-HTTPAPI/1.0
  9. Vary:
    Accept
  10. X-Powered-By:
    ServiceStack/4.00 Win32NT/.NET
  11. X-UA-Compatible:
    IE=Edge
Link to comment
Share on other sites

If you are getting an html doc back are you sure you're not dealing with a web server delivering a "404" page?

Link to comment
Share on other sites

Angelblue05

@@Luke @@ebr

 

Sorry I was away. Here's what is returned to me when I send an api POST and DELETE to played:

"{server}/mediabrowser/Users/{UserId}/PlayedItems/%s" % emby_id
<Response [200]>
<!doctype html>

                                            <html lang="en-us">

                                            <head>

                                            <title>MarkPlayedItem Snapshot of 5/3/2015 10:12:38 PM</title>

                                            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

                                            <style type="text/css">

I would paste the whole thing, but it's too long.... Anyway, this is the response that is returned to me. I don't have this problem with anything else in the API... Should marked as watched unwatched even return a body? It should just respond with the 204 success/no response body code....

Edited by Angelblue05
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...