NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 6 7 8 9 10 … 93 Next »
Merge xmltv data with xslt

 
  • 0 Vote(s) - 0 Average
Merge xmltv data with xslt
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#1
2013-11-26, 06:19 PM
I have managed to persuade WebGrab Plus ( http://webgrabplus.com/ ) to scrape show descriptions from the UK Radio Times website. These show descriptions are more comprehensive than the descriptions obtained by the xmltv grabber used by most in the UK ( http://www.birtles.org.uk/xmltv/ ). But ... all the other fields in the WebGrab xmltv are fairly poor.

What I would like to do is merge the data from the two xmltv files ... using everything from the Birtles xmltv except <desc> and use the <desc> from the WebGrab xmltv.

The only way that I have found that might do the job is XSLT ... but the syntax is beyond me. I use the sweet msxml file from PBS ( http://forums.nextpvr.com/showthread.php...transforms ) and was hoping that PBS or someone might help me along.

The (edited) Birtles xmlltv looks like ...
Code:
<programme start="20131126210000 +0000" stop="20131126220000 +0000" channel="UK_RT_104">
          <title lang="en">Last Tango in Halifax</title>
          <sub-title>S2E2/6</sub-title>
          <desc>Alan and Celia have tied the knot at last ...
           </desc>

The (edited) WebGrab xmltv looks like ...

Code:
<programme start="20131126210000 +0000" stop="20131126220000 +0000" channel="BBC1">
    <title lang="en">Last Tango in Halifax</title>
    <desc lang="en">Alan and Celia have tied the knot at last ...
    <\desc>

My hope is that it will be possible to match on <programme start= stop= > and <title> <\title>.

Thank you for any suggestions.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2013-11-29, 06:30 AM
i have no idea how to merge two files together...the syntax really escapes me, i had a heck of a time doing the epg enhancer, and had a helping start from someone else..
for any specific needs i just googled xslt and the problem and tried to make sense of it..
i'm not sure it even can replace text in one file based off another...mine all work on a single file..
lots of ways to edit xml in programming..from .vbs to c# and they may be slower but probably easier to implement/get help on..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#3
2013-11-29, 02:39 PM
pBS Wrote:...the syntax really escapes me, i had a heck of a time ...
Ditto. I believe that XSLT is the work of the devil. A lot of trial and error got me close to a result ... but I have no clue why any particular collection of xslt commands gives any particular result. I see defeat before me. Your enhancer is the work of a genius.

I may be able to work up the enthusiasm to have a go at it with .vbs. Thanks.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#4
2014-01-02, 04:50 AM
I used to have a C# class for reading/writing xmltv files. I'm sure I can dig it out if it's something you could use.
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#5
2014-01-02, 12:45 PM
whurlston Wrote:I used to have a C# class for reading/writing xmltv files.
I stumbled into a result that works (kinda) with xslt ... and immediately lost interest in spending more time on it. Thanks for the offer.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,357 2018-10-23, 07:24 AM
Last Post: almightyj
  XMLTV Channel Number Option gdogg371 12 6,601 2018-07-18, 04:32 PM
Last Post: sub
  Getting more than 24 hours of Guide Data scJohn 4 3,555 2018-05-16, 04:20 AM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,861 2014-11-14, 02:05 AM
Last Post: Benoire
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,028 2013-03-24, 08:03 PM
Last Post: imilne
  help wtih xslt transforms pBS 13 8,802 2012-10-08, 04:12 AM
Last Post: pBS
  Get NextPVR data directory from outside a plugin McBainUK 3 2,213 2012-02-11, 05:42 PM
Last Post: mvallevand
  Extracting data from XML files ACTCMS 4 2,311 2012-01-24, 12:16 AM
Last Post: sub
  C# code to get data directory? McBainUK 2 2,758 2011-09-19, 07:57 PM
Last Post: McBainUK
  Data binding imilne 2 1,958 2011-07-20, 08:57 AM
Last Post: imilne

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

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

Linear Mode
Threaded Mode