MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2008-01-31, 05:39   #31 (permalink)
Portal Member
 
Join Date: Nov 2007
Posts: 100
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

I'm using MySQL. What is the MediaPortal database name?

use <database_name>;
show tables;
...

Ok, I figured it out. Using MySQL client:
use TVLibrary;
UPDATE TuningDetail SET channelNumber = serviceId;

This does the trick, but my channels are still not sorted by SID in MediaPortal. Still sorted by name which sucks. I may end up exporting to XML, writing some Perl to change the sorting and importing back the XML.

Last edited by damaster; 2008-01-31 at 06:03. Reason: Automerged Doublepost
damaster is offline   Reply With Quote
Old 2008-02-03, 13:19   #32 (permalink)
Portal Member
 
hansdegit's Avatar
 
Join Date: May 2005
Location: Schagen, The Netherlands
Age: 36
Posts: 194
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

update channel set sortorder = (select min(serviceid) from tuningdetail where tuningdetail.name = channel.name)

That should do the trick.
__________________

If it ain't broken, DO try to fix it
hansdegit is offline   Reply With Quote
Old 2008-02-03, 20:21   #33 (permalink)
Portal Member
 
Join Date: Nov 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Or go into the mapping section on the TV server config, where the right side window is labelled channel number. Simply click the column header to sort channels by that column.
x4mer is offline   Reply With Quote
Old 2008-02-06, 14:00   #34 (permalink)
Portal Member
 
Join Date: Nov 2007
Posts: 100
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Yup, the easiest solution is as x4mer suggests, but only works the first time you do a channel scan. If you do a channel scan, sort by name, and then close the TV Server configuration, the channels are already sorted in the DB, and then requires SQL to fix. But, if you do a channel scan, then right-click on all the scanned channels and select "Add SID to front of channel name", then sort by name (which will actually sort by SID since you added SID to the channel names), and then close the TV Server configuration, everything will be sorted correctly.

However, you still need to run some SQL to set the channelNumber column to serviceId in order to be able to punch in channel numbers on your remote and jump to the appropriate channel number as per NA SIDs.
damaster is offline   Reply With Quote
Old 2008-02-19, 03:08   #35 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default

ok, I've the tried the suggested sql commands
use TVLibrary;
UPDATE TuningDetail SET channelNumber = serviceId;

I can also confirm that in setuptv.exe->TV Channels-> edit that each channel now has the serviceid and channel being the same.

Yet in MP, when I key in the channel number it still doesnt correlate... The sort is correct now using the TVMapping->channel right click method.

Other options to try in order to get this to work with a remote?
Thx
lar1r is offline   Reply With Quote
Old 2008-02-19, 03:22   #36 (permalink)
Portal Member
 
Join Date: Nov 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

The code to get channel change working from fullscreen TV was never added to SVN as far as I know. If you call up the guide, & then enter the channel number, it will jump in the guide to that channel for selection.

As you're entering the channel number, the first time slot header (eg. 7:00pm) will get overwritten with the channel number you're entering.


Icepick put together the code to get channel entry working in fullscreen TV as well (see post 26 & 28 of this thread). The code was just never picked up by a dev for SVN inclusion.
x4mer is offline   Reply With Quote
Old 2008-02-19, 03:34   #37 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default

It works now - I had to go to MP Config->MY TV and uncheck the box that mentioned channel sorting for NON US
lar1r is offline   Reply With Quote
Old 2008-03-10, 23:02   #38 (permalink)
Portal Member
 
Join Date: Jan 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

Sorry for the n00b question but can anyone give me the heads up on how to set MP 0.2.3.0 (Not with TV Server) to change channel by channel number in full screen please.

My life would be complete if only I could get MP to change channel by channel numbers!

Thanks
__________________
DVB-C card Technotrend C1500 budget with BDA 10.4.4.17
Windows XP Pro SP2
Epox 4G4AE Motherboard
Intel P4 2.4Ghz
Intel 845G Chipset
ATI Radeon HD 2400 Pro (AGP)
1GB RAM
rede96 is offline   Reply With Quote
Old 2008-04-01, 01:35   #39 (permalink)
Portal Member
 
Join Date: Dec 2007
Posts: 154
Thanks: 4
Thanked 1 Time in 1 Post

Country:

My System

Default

Channel changing by number is fine by deselecting the default checkbox in the config. However, what are you guys doing about the zero button? When I press the zero button it goes to the last viewed channel. Was hoping to decouple this feature from the zero button and use a different button but can`t seem to.
stoked is offline   Reply With Quote
Old 2008-04-04, 06:03   #40 (permalink)
Portal Member
 
Join Date: Mar 2007
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post

Country:


Default

Quote:
Originally Posted by rede96 View Post
Sorry for the n00b question but can anyone give me the heads up on how to set MP 0.2.3.0 (Not with TV Server) to change channel by channel number in full screen please.

My life would be complete if only I could get MP to change channel by channel numbers!

Thanks
hi rede96

i've written a epg grabber for oztivo for non tvserver users just recently and i am adding this new feature (eg, your STB channel number will be the MP channel number). So far the program i wrote is specific to oztivo users (australia), but i doubt it'd take much effect to expand it to other services (i see you are in the UK?). Have you got a link for your epg data source? I'll take a look if you want.
50chickens is offline   Reply With Quote
Reply

Bookmarks

Tags
change, channel, channelnumber, code, sid

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use SID as channel number when scanning your Sats. ASiDiE Improvement Suggestions 8 2008-01-30 01:00
Changing channel by Sid not channelid Nox71 pre 1.0 RC1 1 2007-05-02 08:09
twinhan dvb-t signal 0, code change lar282 The old Bugreport Forum 3 2006-03-10 11:41
Change Channel using F7/F8 Changes Group, not channel Anonymous General Support 2 2005-11-04 16:30
TV Channel code all over the place Anonymous General Development (no feature request here!) 4 2004-12-13 10:05


All times are GMT +1. The time now is 13:30.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress