NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 10 11 12 13 14 … 1231 Next »
Edit channel name when using xmltv as epg source

 
  • 0 Vote(s) - 0 Average
Edit channel name when using xmltv as epg source
Haggis
Offline

Member

Edinburgh, Scotland
Posts: 54
Threads: 13
Joined: Apr 2006
#1
2010-10-17, 04:40 PM
Can't seem to find any solution of how to edit the channel names when xmltv is used as the source.

Its been annoying me for some time now that I have a channel with extra text appended to its name:
Yesterday (Satellite/Cable)

It also screws up the channel logos, as they have to be named the exact same as the channel name, so its a no-go with the / in the name.

I realise that NPVR gets round this by decoupling the xmltv data from the channel names, but is there any solution for PVRX2?
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#2
2010-10-17, 06:10 PM
You could always edit the XML file, running a script post-download (and pre-import) to change the names to what you want.

I've written something that I use myself to do this, but it's in Java, so you'd need a JRE installed if you wanted to use it (and I can't guarantee it'd even work on your source - I use it with the broadcast EPG data saved by DVBGuide).
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#3
2010-10-17, 06:10 PM
Haggis Wrote:Can't seem to find any solution of how to edit the channel names when xmltv is used as the source.

Its been annoying me for some time now that I have a channel with extra text appended to its name:
Yesterday (Satellite/Cable)

It also screws up the channel logos, as they have to be named the exact same as the channel name, so its a no-go with the / in the name.

I realise that NPVR gets round this by decoupling the xmltv data from the channel names, but is there any solution for PVRX2?

What are you using to grab the xml?
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#4
2010-10-17, 08:35 PM
Actually, thinking about it some more, perhaps all you need to do is edit the scan.cache file to give the channel whatever name you want. It doesn't matter what it's called in the xmltv file because you can still do the mapping manually (eg, map BBC1 from scan.cache to BBC One in xmltv).

You also might be able to edit its name directly in the database too.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#5
2010-10-17, 08:41 PM
steeb Wrote:What are you using to grab the xml?

Yes, xmltvgui has a pre-processor that can change names.
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#6
2010-10-17, 08:43 PM
martint123 Wrote:Yes, xmltvgui has a pre-processor that can change names.

Yes, exactly why I was asking that question Wink

Steeb
Haggis
Offline

Member

Edinburgh, Scotland
Posts: 54
Threads: 13
Joined: Apr 2006
#7
2010-10-17, 09:05 PM
steeb Wrote:What are you using to grab the xml?

Im using xmltv from xmltv.org, so would be a wee bit reluctant to go through all the process to change my setup to use Birtles.

Had thought about editing the scan cache, but it already has the proper name, "Yesterday", so its the xmltv file screwing it up. Similar result to editing the name in the database, its possible, think the table's called CHANNEL_NAMES, or whatever, but it gives me a 'im up to no good, and im going to break it' feeling messing with the db.

The editing the xml seems the way to go.....hmmmm
steeb
Offline

Posting Freak

Posts: 2,667
Threads: 183
Joined: Nov 2006
#8
2010-10-17, 09:29 PM
Haggis Wrote:Im using xmltv from xmltv.org, so would be a wee bit reluctant to go through all the process to change my setup to use Birtles.

Had thought about editing the scan cache, but it already has the proper name, "Yesterday", so its the xmltv file screwing it up. Similar result to editing the name in the database, its possible, think the table's called CHANNEL_NAMES, or whatever, but it gives me a 'im up to no good, and im going to break it' feeling messing with the db.

The editing the xml seems the way to go.....hmmmm

Yes can see your hmmmmm, messing with the db often can give heart palpitations!

I have no affiliation with Alan B (Birtles) but would suggest that this would really make life easier. You could try the latest XMLTVGUI anyway without having to change anything with your set up. And anyway the final process would only be to empty EPG and Update EPG to point at a new .xml?

In proper 'man time' not Wife 'man time' you would have XMLTVGUI doing exactly what you wanted within an hour.

Isn't xmltv.org only pulling the same RT data anyway?

Cheers

Steeb
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#9
2010-10-17, 09:32 PM
Haggis Wrote:The editing the xml seems the way to go.....hmmmm

Yeah, it would have to be.

Forget about my earlier mapping advice, it was back-to-front - the names come from the xmltv file, not the cache file. Knew there had to be a reason why I wrote that Java program Big Grin

(Although its main purpose is to remove all the channels I don't want and make things simpler in GBPVR. It just happens to rename the ones I keep while it's at it.)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,918
Threads: 956
Joined: May 2006
#10
2010-10-17, 10:23 PM
I pre-process my XMLTV files using a Win32 version of sed to edit several names to my liking, something like this should do it

Code:
sed -e "s/-name>Yesterday (Satellite\/Cable)</-name>Yesterday</" < input.xml > output.xml

Martin
« 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
  USA Cable Discovery Channel problems with Schedules Direct ram4x4nut 0 3,947 2013-02-21, 05:08 AM
Last Post: ram4x4nut
  Channel 4 HD new tuning string Pob 0 2,607 2012-03-29, 08:59 PM
Last Post: Pob
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,020 2012-02-03, 02:41 AM
Last Post: slowtech
  Composite Channel not being tuned properly seymoria 14 6,828 2012-01-24, 01:56 PM
Last Post: seymoria
  Need help remapping Channel guide and actual channels divinehammer 3 3,765 2012-01-20, 10:43 AM
Last Post: kayleigh
  Composite channel configuration problem. seymoria 6 4,569 2012-01-15, 10:15 PM
Last Post: seymoria
  XMLTV Updates? phillyjim 1 2,677 2011-12-21, 04:46 PM
Last Post: pcostanza
  Live TV Locks Onto Different Channel persim 1 2,308 2011-10-24, 06:33 PM
Last Post: sub
  Recording fails but only on one channel (live viewing still works) dshoup 5 3,498 2011-09-19, 01:15 AM
Last Post: sub
  Channel 4 HD and sat ini DanielP 40 12,428 2011-04-12, 10:42 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