MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
Thread Tools Display Modes
Old 2005-05-23, 23:57   #1 (permalink)
Anonymous
Guest
 
Posts: n/a


Default YAY: Automate switching the Channel List to external sources

This should save your fingers from some mouse-bound and typing torture and all you need is to tell Notepad to do all the work for you. I've done this twice myself and it works great, but haven't had anyone else try it to confirm it works. The XML guide files don't seem to care what order the <entry> tags are in so I didn't run into any problems.

Warning: If you have edited your channel list in Media Portal configure program, you will need to clear it and re-import it from the tvguide for this to work properly. If you feel queezy about doing this just from my word alone, you can use XML export to backup your current channel list settings (export as channellist_old.xml or something)

1. In Media Portal configure program, import all channels from tvguide
2. export list to an XML file (channelist_clean.xml or something)
3. Open XML file in Notepad
4. Use Find/replace to switch
<entry name="number">
with
<entry name="Exernal Tuner Channel">

That changes all of your internal (TV tuner) channels to external ones without forcing you to re-enter 1000 numbers. But now you need to denote that the incoming source is Svideo or composite. So...

5. You now have two fields marked as "External Tuner Channel" so Use find/replace to switch
<entry name="External Tuner Channel"></entry>
with
<entry name="number">50000</entry>

For some reason, when a chanel is set as an external source the number field is then used NOT for the channel number, but to denote what type of external signal is being used. 50000 denotes S-Video (most of the time) and 50001 denotes composite #1 and so on. You can double check these later.

But wait! You still need to mark all the channels as external! Easy!
6. Use Find/Replace to switch
<entry name="External">no</entry>
with
<entry name="External">yes</entry>

7. Save the file under a new name (channellist_edited.xml or something)
7. In Media Portal configure program, Clear your channel list (don't worry, you exported it as a seperate XML file earlier)
8. In Media Portal configure program, import from XML the file you just made (channellist_edited.xml)

This swip-swap should have flipped all the channel numbers and source settings. If this messed up your list you have your original exported XML channellist that you can reload. This is the process I figured out for myself and it seems to have worked just fine and I can actually see my directv channels now. Let me know if you run into any problems.
  Reply With Quote
Old 2005-09-01, 08:07   #2 (permalink)
spockware
Guest
 
Posts: n/a


Default

Please explain exactly what MP setup screen and button to push to "export to xml". I can find nothing that exports my channels. I've tried "Backup" and this blows saying I have no RecordedTV, etc.

thanks!
  Reply With Quote
Old 2005-09-01, 10:12   #3 (permalink)
Portal Member
 
qawaali's Avatar
 
Join Date: Jul 2005
Location: Sydney
Age: 38
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Send a message via MSN to qawaali Send a message via Skype™ to qawaali
Default

spockware,

Run Configuration.exe either from your Mediaportal directory or a shortcut on your desktop.

Navigate to Televison>Tv Channels.

Press Backup in the bottom right. Select a name for the file and just press 'ok' if any errors pop up. They are typically telling you things such as "you have no files in your recorded TV database etc.' Igonre these they are just for information.

Regards

Pete
qawaali is offline   Reply With Quote
Old 2005-09-01, 14:54   #4 (permalink)
spockware
Guest
 
Posts: n/a


Default

Quote:
Originally Posted by qawaali
spockware,

Run Configuration.exe either from your Mediaportal directory or a shortcut on your desktop.

Navigate to Televison>Tv Channels.

Press Backup in the bottom right. Select a name for the file and just press 'ok' if any errors pop up. They are typically telling you things such as "you have no files in your recorded TV database etc.' Igonre these they are just for information.

Regards

Pete
I have followed this sequence of events many times
I get "ChannelList.xml does not exist. Do you want to create it?"

Click Yes

Pop-up window = "No groups to export"

Click OK

Pop-up window = "There is no Recorded TV data to export"

Click OK

Pop-up window = "There is no Recording TV data to export"

Click OK

Then.... no ChannelList.xml to be found. :x

I guess I will post as a bug rather than continue to ruin this Tips & Tricks tread if it works for others...
  Reply With Quote
Old 2006-04-21, 03:59   #5 (permalink)
Portal User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Default Use an SQL command

You can run the SQL tool:
\Docs\SQLite Database Browser.exe

Open the database:
\database\TVDatabaseV21.db3 (or whatever yours is called)

And run the SQL command:
update channel set iChannelNr = '2500' || iChannelNr , bExternal = 1 , ExternalChannel = iChannelNr

Anyone know how to batch/bulk change the Setting that correlates to:
External Tab -> Input Via Field
and set it to SVHS
mevo is offline   Reply With Quote
Reply

Bookmarks

Tags
automate, channel, external, list, sources, switching, yay

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KNC 1 DVB-C / cannot tune channels lutz General Support 15 2006-10-01 11:04
Technotrend DVB-S no LNB switch Erbsenkopp General Support 0 2006-08-03 09:04
Technotrend Budget 1500 CI no LNB switch Erbsenkopp General Support 0 2006-08-03 08:46
Tuning-problem - FireDTV - Stockholm-Nacka alek01 Installation, configuration support 2 2006-07-10 23:06
Xmltv set big hassle for a newb Anonymous Tips and Tricks 38 2004-12-18 20:09


All times are GMT +1. The time now is 06:02.


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