Kodi Community Forum

Full Version: Retrieving HTTP headers/status for non successful requests
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For unsuccessful HTTP requests the DVB Viewer PVRs backend sends status codes according to the standard. e.g. 401 for wrong/missing credentials. 410 for already deleted recording, etc..

Right now it seems impossible to retrieve the HTTP status code/line using GetFilePropertyValue as CFile closes the underlying file implementation on failure. Error responses seems to be treated as failure. Is there a way to workaround this or can we add a new flag to signal that the file should not be closed?