NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 324 325 326 327 328 … 433 Next »
adjusting channel blast numbers

adjusting channel blast numbers
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2012-01-19, 04:45 AM (This post was last modified: 2012-01-19, 05:26 AM by pBS.)
i setup new version [working great btw] but when i imported channels for my hdpvr, it just gave them all incremental numbers..Sad
instead of 206 for espn i got 40...so i went and changed the db so channel table has correct channel for 'number' slot..
but it still didn't blast right!! all numbers show up correctly....
but then i noticed it uses the channel_mapping table's 'tuning' xml in <channel> to get number to blast with!! not the one you see..
apparently it's not picking up my channel numbers in the mapping process?

also, how do i alter which channel <display_name>206 ESPN</display_name> from xml it uses?
[my channels show up displaying as '206 ESPN' and i'd like to get rid of numbers and keep just name, maybe why it's not picking them up?]

my question is, is there a sql update that can copy from channel table's number field to channel_mapping's channel_source_number?
i tried with a join statement to the channel table but failed...

UPDATE CHANNEL_MAPPING AS M INNER JOIN CHANNEL AS C on M.CHANNEL_OID = C.OID SET M.CHANNEL_SOURCE_NUMBER = C.NUMBER;
is what i had tried without luck...

trying to make a sql statement so i can redo later...
any help appreciated..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#2
2012-01-19, 05:00 AM
If you can zip and attach the xmltv file, I can check why it didnt get the correct channel number.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2012-01-19, 05:09 AM
it's probably cuz the channel display_name..
my xml maybe too big to attach..trying now..

are there any option of which display_name is used like there used to be? [name, name + number, number alone]

thanx alot as there's no way i could fix manually within hours..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#4
2012-01-19, 05:41 AM
From memory, it always uses the first display-name in an xmltv file for the channel name. If there is any alternative display-name which is only a number, then it use it as the channel number otherwise it just allocates the next number.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2012-01-19, 05:42 AM
another thing, i noticed the data type for 'tuning' field is varchar(50)....yet there's wayyy more than 50 chars in there..??
does it mean 50 per line? probably why my editor is cutting off the data when trying to edit...[being literal]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#6
2012-01-19, 06:00 AM (This post was last modified: 2012-01-19, 03:49 PM by pBS.)
my channels look like: [from mc2xml]

Quote:<channel id="I206.28455954.microsoft.com">
<display-name>206 ESPN</display-name>
<display-name>ESPN</display-name>
<display-name>206</display-name>
<display-name>Sports Satellite</display-name>

or with a -F switch i can get this instead if that would be better:

Quote:<channel id="I206.28455954.microsoft.com">
<display-name>ESPN</display-name>
<display-name>206 ESPN</display-name>
<display-name>206</display-name>
<display-name>Sports Satellite</display-name>
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#7
2012-01-19, 06:02 AM
SQLite only uses the size in it's varchar definition for SQL compatility. It ignores this though, and the varchar fields can be as long as you want, regardless of what it's defined as.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#8
2012-01-19, 06:03 AM
pBS Wrote:or with a -F switch i can get this instead if that would be better:
It doesnt bother me what you use. The app should cope with eithr. First display name will be used for the channel name. A number only display name will be used for the channel number.

I'll test your file in the morning.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2012-01-19, 06:11 AM
it has a number only alternate, but doesn't seem to be using it..
previous version dealt with it fine so must be something new..
will try playing with xml to see if i can get any to stick..

may want to up the varchar limit for that field just for correctness cuz it seems some tools take it literally..i had to up it to 255 to squeeze everything in..
[to head off possible future user issues]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#10
2012-01-20, 09:01 PM
ever get to check why that file won't import channels?
i found that any more than 2 display-name entries seems to stuff it up..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« 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
  IR Server Suite Channel Changer BTJustice 26 28,085 2023-01-11, 08:49 PM
Last Post: Frapo
  Device Update - Channel Mapping chezmorris 10 5,127 2022-07-01, 01:59 PM
Last Post: mvallevand
  IPTV Channel Mapping jrockow 15 8,650 2021-03-07, 09:45 PM
Last Post: jrockow
  channel icon location Brucek2839 2 1,912 2021-03-04, 10:30 PM
Last Post: Brucek2839
  UK channel More4 - tunes but cannot view? prothed 7 3,104 2021-02-17, 02:59 PM
Last Post: Graham
  send channel chanes via winLIRC?? chef Paula 67 15,844 2021-02-11, 07:38 PM
Last Post: mvallevand
  NextPVR hangs when tuning to offline channel? CormacBaptiste 2 2,121 2021-02-03, 01:29 PM
Last Post: Graham
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,850 2020-12-06, 02:15 AM
Last Post: pitbull1969
  xmltv and EPG channel icons HaTaX 5 4,431 2020-10-28, 04:25 AM
Last Post: sub
  TV Guide Initial channel NumberFive 2 1,991 2020-07-28, 06:03 PM
Last Post: NumberFive

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

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

Linear Mode
Threaded Mode