Angelblue05 4131 Posted May 3, 2015 Posted May 3, 2015 (edited) @@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 May 3, 2015 by Angelblue05
Luke 40073 Posted May 3, 2015 Posted May 3, 2015 i can't reproduce that sorry. no problem found. Access-Control-Allow-Headers: Content-Type, Authorization, Range, X-MediaBrowser-Token Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS Access-Control-Allow-Origin: * Content-Encoding: deflate Content-Length: 124 Content-Type: application/json; charset=utf-8 Date: Sun, 03 May 2015 15:20:44 GMT Server: Mono-HTTPAPI/1.0 Vary: Accept X-Powered-By: ServiceStack/4.00 Win32NT/.NET X-UA-Compatible: IE=Edge
ebr 15664 Posted May 3, 2015 Posted May 3, 2015 If you are getting an html doc back are you sure you're not dealing with a web server delivering a "404" page?
Angelblue05 4131 Posted May 3, 2015 Author Posted May 3, 2015 (edited) @@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 May 3, 2015 by Angelblue05
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now