NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 32 33 34 35 36 … 93 Next »
API in stead of "import recordings XML functionality"

 
  • 0 Vote(s) - 0 Average
API in stead of "import recordings XML functionality"
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#1
2008-05-01, 07:42 PM
Hi,

I was wondering if there's an API available to add videos to the recordings list? I found message http://forums.nextpvr.com/showthread.php...+recording, but maybe there's been a change since that.

Chris
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#2
2008-05-01, 07:44 PM
Sorry, nothings changed on that front. There is no API for importing recordings.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2008-05-01, 10:36 PM
why not just use sqlite to inject it into the db?
i use a batch file to send individual shows + info from 1 gbpvr machine to another..
just figured out how to preserve special chars in dos so it works even with foreign chars...Big Grin
if you have the info you'd like to include already, it shouldn't be too hard to adjust for adding with that info instead of looking it up in the local epg...

http://forums.nextpvr.com/showthread.php...t=sendshow

but i have some mods i did to it just recently to account for special chars like '&' etc. so i have to upload that one here soon...[the one on there works fine, just chokes on some chars]
let me know if you'd like it to try out..
do you have info you'd like to include already? [title,etc] or would you like to input at add time?
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#4
2008-05-02, 07:40 AM
pBS Wrote:why not just use sqlite to inject it into the db?
That's another option. I haven't decided yet, but I won't be doing it with .bat files, since I'm already executing code from another application. It's not hard to add the videos from this app to the recordings database directly, but using the xml import might be the cleanest option. Thanks for your input!

Chris
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2008-05-02, 08:33 AM
what about just running pvrxr -import for reading in a recording-dump.xml file - and you populate the recording-dump.xml file with whatever you want
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#6
2008-05-02, 08:34 AM
sorry pvrx2 -import
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#7
2008-05-02, 11:26 AM
That's exactly what I'm programming at this moment and it works great! I'd prefer an API, but this is a good alternative.
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#8
2008-05-02, 03:59 PM
sub,

Any chance on the pvrx2 -import, that we can supply an optional filename. This way we could override and import something other than recording-dump.xml.

Maybe something like:

pvrx2 -import[:filename]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#9
2008-05-02, 04:59 PM
JavaWiz Wrote:sub,

Any chance on the pvrx2 -import, that we can supply an optional filename. This way we could override and import something other than recording-dump.xml.

Maybe something like:

pvrx2 -import[:filename]
OK, I've added this for the next release.
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#10
2008-05-02, 06:00 PM (This post was last modified: 2008-05-03, 07:53 AM by Sheik Yerbouti.)
sub Wrote:OK, I've added this for the next release.
That's great. One other thing: when I execute the -import with pvrx2, I get "recording-dump.xml not found" but I do not get this with gbpvr.exe. Pvrx2 -import does work when you execute it from the gbpvr directory (by first going there in the cmd.exe). Maybe you can look into that as well. For now, I'll just use gbpvr.exe.

Of course when you add the file option, the problem disappears by itself Smile

Chris

[EDIT] I was missing the WorkingDirectory in my coding. Adding it solved my problem [/EDIT]
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  m3u Import mvallevand 3 2,515 2019-04-05, 02:21 AM
Last Post: sub
  Import/export recordings via API? whurlston 4 3,769 2019-02-19, 11:48 AM
Last Post: Graham
  Conflict recordings scJohn 1 2,574 2018-03-23, 07:43 PM
Last Post: sub
  API / web call for setting recordings Pbathuk 2 3,278 2018-01-13, 05:17 AM
Last Post: Pbathuk
  API access to artwork and deleting recordings cncb 29 15,425 2016-11-06, 02:20 AM
Last Post: mvallevand
  How to move recordings without them getting deleted from db drmargarit 4 3,865 2015-09-27, 05:33 PM
Last Post: sub
  Best approach to creating recurring recordings from c# drmargarit 0 2,600 2015-09-27, 01:32 AM
Last Post: drmargarit
  Changing the recording priority on recurring recordings cbgifford 4 3,755 2014-08-17, 03:13 PM
Last Post: Kiwi
  How does NextPVR group recordings for XBMC? spinnaker 2 2,272 2013-11-21, 01:33 AM
Last Post: spinnaker
  Web API call for Ready recordings? bgowland 2 1,867 2013-11-03, 12:43 AM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode