NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 39 40 41 42 43 … 159 Next »
HD and SD broadcasts.

 
  • 0 Vote(s) - 0 Average
HD and SD broadcasts.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,967
Threads: 956
Joined: May 2006
#1
2010-04-05, 08:56 PM
I there a way to set up the EPG so that these two import as different channels (one is HD digital from the HDPVR one is standard SD analog cable)

Code:
<channel id="28458000">
    <display-name>CJOH</display-name>
    <display-name>7</display-name>
    <display-name>7 CJOH</display-name>
    <display-name>CJOH</display-name>
    <display-name>7 CJOH</display-name>
    <display-name>(CJOH) CJOH</display-name>
    <display-name>7 (CJOH) CJOH</display-name>
  </channel>

  <channel id="28458000">
    <display-name>CJOH</display-name>
    <display-name>518</display-name>
    <display-name>518 CJOH</display-name>
    <display-name>CJOH</display-name>
    <display-name>518 CJOH</display-name>
    <display-name>(CJOH) CJOH</display-name>
    <display-name>518 (CJOH) CJOH</display-name>
  </channel>

If not, is anyone using XSLT to do this kind of transform? If so I'd appreciate a copy of your stylesheet.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,967
Threads: 956
Joined: May 2006
#2
2010-04-05, 09:28 PM
I should add that I can fix it with sed

sed s/CJOH/CJOHDT/ hdpvr_temp.xml > hdpvr.xml but I'd like to target the <display-name> markup.

Martin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2010-04-07, 12:47 AM
what xml grabber do you use? in mc2xml i just renumber them...
i think <TVGuideChannelHeaderType>3</TVGuideChannelHeaderType> only affects guide display,not internal numbering..
kinda tricky one without renumbering upon grab, as it has both same channel_id..
usually just import 3rd display name as it has number in it and callsign, making each unique..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,967
Threads: 956
Joined: May 2006
#4
2010-04-07, 01:18 AM
I use whurlston's tools because I have VMC. Because they are in separate xml files the number isn't an issue, however GBPVR thinks CJOH is CJOH no matter what channel is it shown on and so they get merged for viewing/recording. CJOH happens to be a local SD channel that broadcasts in HD on cable. sed is working but I am hoping for a more elegant solution.

Martin
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,625
Threads: 148
Joined: Mar 2006
#5
2010-04-07, 01:29 AM
What is sed changing if not the display name?? I think you lost me again <grin>

I was doing something like you are asking (I think?) with a batch file. That is I wanted "Prime" (analog) & "Prime(D)" (digital) showing separately within the interface, I posted a message (reply I think it may have been) about it in the General forum ages ago, if this is what you are after I can hunt it out for you if you like?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,967
Threads: 956
Joined: May 2006
#6
2010-04-07, 01:44 AM
If GBPVR just matches the first tag I guess I could use /-name>CJOH</-name>CJOHDT</ for more safety

Martin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2010-04-07, 01:57 AM (This post was last modified: 2010-04-07, 02:07 AM by pBS.)
whurlston's tools? hmm,i don't remember any epg grabber he makes..[new?]
mc2xml works on vista too...Smile
usually it's 'renamed' upon grab for me....using the grabber...
are you using SchedulesDirect?

p.s. display_name 1 and 4 are the same...not sure if that will mess it up tho..
i'm pretty sure you have to renumber before import or the second one overwrites first..
so should be renamed/renumbered within grabber..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,967
Threads: 956
Joined: May 2006
#8
2010-04-07, 03:32 AM
whurlston's tool allows me to extract channel 7 to one xml file and channel 518 to another solving one proble, but I think I've worked out the merge with sed afterall as follows

Code:
sed -e "s/-name>CJOH</-name>CJOHDT</" -e "s/-name>MUCH</-name>MUCHDT</" < temp_hdpvr.xml > hdpvr.xml

gives

  <channel id="28458000">
    <display-name>CJOHDT</display-name>
    <display-name>518</display-name>
    <display-name>518 CJOH</display-name>
    <display-name>CJOHDT</display-name>
    <display-name>518 CJOH</display-name>
    <display-name>(CJOH) CJOH</display-name>
    <display-name>518 (CJOH) CJOH</display-name>
  </channel>

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#9
2010-04-07, 04:59 AM
I thought I had an option to rename the channel ids but I'd have to double check that. If not, I could write a little app that will do it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Cable companies providing local HD broadcasts as unencrypted channels dinki 4 2,006 2007-04-23, 07:30 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode