NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 7 8 9 10 11 … 47 Next »
NEWA Web Services

 
  • 0 Vote(s) - 0 Average
NEWA Web Services
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#21
2013-08-29, 09:28 AM
Want to play with something, where is teh class file that is used when making the live call. I'd like to try changing to Content-Length to Content-length.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,191
Threads: 958
Joined: May 2006
#22
2013-08-29, 05:15 PM
Only NEWA source is available. The server-side XBMC and http interfaces from sub are closed source but I expect you could make that change with a binary editor.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#23
2013-08-29, 05:46 PM
Yeah, unfortunately that stuff all in the core application so the source isn't available.

If you're running the current pre-release, I can provide a patch for you to see if it helps. It is already using the "Content-Length" though, which is the standard header name for HTTP.

Code:
// send HTTP response header                    
                    string responseHeader = "HTTP/1.1 200 OK\r\n" +
                                            "Server: NextPVR\r\n" +
                                            "Connection: Close\r\n" +
                                            "Content-Length: " + contentLength + "\r\n" +
                                            "Content-Type: video/MP2T\r\n\r\n";
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#24
2013-08-29, 06:47 PM
Yes nextpvr is using Content-Length. I'm trying to find out if plex is after that or if its a case varian of that Content-length for example

I tried the transcode and was getting the same problem. And I can't call the local file with plex either. Kinda painful.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#25
2013-08-29, 11:34 PM
psycik Wrote:Yes nextpvr is using Content-Length. I'm trying to find out if plex is after that or if its a case varian of that Content-length for example
If Plex isn't using case-insensitive matching on header fields then it's broken. HTTP header fields are case-insensitive.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#26
2013-08-29, 11:42 PM
bgowland Wrote:If Plex isn't using case-insensitive matching on header fields then it's broken. HTTP header fields are case-insensitive.

thats my uneducated guess. All I know is plex is reporting invalid content length - but also I seems to be going the wrong place. I've got someone looking at it there as well.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#27
2013-08-30, 01:57 AM
So I've had some success finally:
http://forums.plexapp.com/index.php/topi...ntry454849

Is there an equivalent call to the http://<ip>:8866/live&recording=<oid> for live tv, ie activating a tuner? Its not supposed ot work but I may as well give it a try.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#28
2013-08-30, 01:59 AM
Oh and martin, I may need to pick your brains regarding dealing with the web services for listing recordings....my python is pretty limited.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#29
2013-08-30, 02:38 AM
psycik Wrote:Is there an equivalent call to the http://<ip>:8866/live&recording=<oid> for live tv, ie activating a tuner?
Yes, http://<server>:8866/live?channel=2
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,191
Threads: 958
Joined: May 2006
#30
2013-08-30, 02:38 AM
The python source in x-newa should show you everything you need. The raw interface is easier and I'm moving some calls to it

Code:
import xml.etree.ElementTree as ET
        import datetime
        url = "http://ip:8866/services?method=recording.list&filter=Ready&sid=xnewa"
        import urllib2
        request = urllib2.Request(url, headers={"Accept" : "application/xml"})
        u = urllib2.urlopen(request)
        tree = ET.parse(u)
        root = tree.getroot()
        for recording in root.find('recordings'):
            print recording.find('id').text
            print recording.find('epg_event_oid').text
            print recording.find('name').text.encode('utf-8')
            print recording.find('status').text.encode('utf-8')
            print datetime.datetime.fromtimestamp(float(recording.find('start_time_ticks').text))

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Broken X-NEWA Info Link on NextPVR.com cweseloh 4 2,841 2020-05-02, 01:02 AM
Last Post: cweseloh
  gbpvr.com still somewhere in the NEWA code? jksmurf 0 2,127 2019-02-26, 01:29 AM
Last Post: jksmurf
  NEWA scheduled recording update ability broken in 4.2.2 snagglewest 0 2,078 2018-07-11, 12:12 AM
Last Post: snagglewest
  Where does NEWA read the Show name from in the NEWA Web App? jksmurf 3 3,223 2018-07-03, 03:26 AM
Last Post: jksmurf
  Newa snaitaz 8 4,769 2018-05-17, 09:30 PM
Last Post: sub
  NEWA Auto-Search Command Line Interface (CLI) UncleJohnsBand 40 38,465 2018-05-09, 12:50 AM
Last Post: jksmurf
  NEWA modern "NEW" page missing urls??? snagglewest 3 3,514 2017-12-03, 12:48 AM
Last Post: snagglewest
  Difference between NPVR and NEWA recordings lists Bobins 4 5,211 2017-09-27, 10:16 PM
Last Post: Bobins
  Legacy NEWA stu2j 4 4,579 2017-07-19, 12:21 AM
Last Post: stu2j
  Open classic EPG in NEWA very slow Peter Ingham 11 6,999 2017-04-21, 12:35 AM
Last Post: Peter Ingham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode