NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 41 42 43 44 45 … 93 Next »
Export Metadata per recording using SQLite

 
  • 0 Vote(s) - 0 Average
Export Metadata per recording using SQLite
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#1
2007-08-10, 01:08 PM
I'm exploring using my GBPvr recordings in another program. What I would like to do is create a script (batch file?) that would generate an xml formatted file for each recording upon completion of the recording.

What is the best approach for this? I'm guessing that sqlite would be the easiest method? Are there any examples on using sqlite with the GBPvr database. I am very familiar with MySQL so I'm thinking things with sqlite will be very similar.

The items I would like to pull from the database would be the filename, seriesname, subtitle, season, and episode.

Any help getting started is greatly appreciated.
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#2
2007-08-10, 03:50 PM
SQLite is pretty easy to work with. The "server" is only one portable DLL so it is simple to install. Since GB-PVR already uses SQLite you can share the exact same data store.

First thing I would do if I were you is evaluate all the SQLite administration tools. There are a few free ones but I ended up paying for SQLite Maestro, because it supports a graphical query builder. Very similar to Navicat, if you are familiar with that from MySQL.

A good admin tool will let you manipulate the data and compose/test queries from the GUI, then you can build them into your own app. Or just use the admin tool to run the queries (that's how I do most of my DB manipulation these days).

Eventually I'd like to learn enough about PHP to instrument most of what I need (import, title and subtitle editing) from a web page.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#3
2007-08-10, 04:02 PM
It might not help you, but if your file system is NTFS, then an alternate data stream is created containing info about the recoridng. You can view it by doing something like this:

notepad c:\myvideos\somevideoname.mpg:metadata.xml
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2007-08-10, 04:09 PM
here's some stuff...

http://forums.nextpvr.com/showthread.php?t=20995

i don't use the actual import export tool discussed, but I learned a lot about syntax...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#5
2007-08-10, 07:23 PM
GetXML (in my sig) saves an xml file that can be inported after each recording. But subtitle, season, and episode arent in the gbpvr database unless you use a utility that adds them to the visible fields. IE rename recordings, add episode, epg extra, I-xmltv.
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#6
2007-08-10, 07:51 PM
sub Wrote:It might not help you, but if your file system is NTFS, then an alternate data stream is created containing info about the recoridng. You can view it by doing something like this:

notepad c:\myvideos\somevideoname.mpg:metadata.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
  <filename>C:\Media\Recordings\Last Comic Standing\Last Comic Standing_20070801_20002100.mpg</filename>
  <channel>7 KPLC</channel>
  <status>READY</status>
  <startTime>2007-08-01 20:00:00</startTime>
  <endTime>2007-08-01 21:00:00</endTime>
  <title>Last Comic Standing</title>
  <subtitle>Challenge No. 1</subtitle>
  <description>The top 10 comics pair up for the heckle challenge; one comic wins a spot in the Just for Laughs Festival in Montreal.</description>
  <uid>EP5828060055</uid>
</recording>

That's really cool. Is there an easy way to export this data out into a standalone xml file? This is pretty much exactly what I'm looking for! Is the uid something from zap2it?

If I am running the I-xmltv, can you tell me if additional data would be stored in this xml data as well? The more information the better.

Thanks to all for the tips.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 557 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 376 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,017 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,464 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,989 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,971 2019-08-15, 09:34 PM
Last Post: sub
  Import/export recordings via API? whurlston 4 3,814 2019-02-19, 11:48 AM
Last Post: Graham
  Unexpected result when deleting a pending recording scJohn 5 3,769 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,817 2017-03-02, 03:13 PM
Last Post: mvallevand
  Metadata API's mvallevand 7 3,795 2016-11-24, 05:59 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode