MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » General Talk


General Talk Talk about the MediaPortal TV-Server

Reply
 
Thread Tools Display Modes
Old 2007-08-12, 18:34   #1 (permalink)
Portal Member
 
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post


Smile Clickfinder and TV-Server

Hi,

If you like clickfinder, a German tv-guide, and use the tvserver of mp, these two scripts might be interesting for you. They allow direct programming of recordings out of clickfinder. Simply choose "an Sendetermin erinnern" in clickfinder, exit clickfinder and the schedule in tvserver is set.

Installation:
1. Install PHP if not done yet
2. Set up two ODBC-connections to tvlibrary (tvlibrary) and the clickfinder-libary (tvdaten.mdb).
3. Adjust the names of the ODBC-connections and put this script into a file called clickfinder.php in the clickfinder directory:
------------------
<?php

$dbtvserver = odbc_connect('tvlibrary' , '', '', SQL_CUR_USE_ODBC);
$dbcf = odbc_connect('clickfinder', '', '', SQL_CUR_USE_ODBC);

$rescf = odbc_exec ($dbcf, "SELECT Sendungen.SenderKennung, Sendungen.Beginn, Sendungen.Ende, Markierungen.Sendung FROM Markierungen INNER JOIN Sendungen ON Markierungen.Pos = Sendungen.Pos;");
while (odbc_fetch_row($rescf))
{
$sender = odbc_result($rescf,"SenderKennung");
$sendung = odbc_result($rescf,"Sendung");
$beginn = odbc_result($rescf,"Beginn");
$ende = odbc_result($rescf,"Ende");

echo "$sender - $sendung ($beginn - $ende)";

$res_tvs1 = odbc_exec ($dbtvserver,"SELECT idChannel FROM Channel WHERE name = '$sender';");
if (odbc_fetch_row($res_tvs1))
{
$id_sender=odbc_result($res_tvs1,"idChannel");
$res=odbc_exec($dbtvserver,"INSERT INTO schedule VALUES(NULL, '$id_sender', '0', '$sendung', '$beginn', '$ende', '5', '0', ' ', '0', '0', '2000-01-01', '1', '5', '2000-01-01', '-1')");
}
}
$rescf = odbc_exec ($dbcf, "DELETE FROM Markierungen;");
?>
------------------

4. Put this script into a file called clickfinder.vba in the clickfinder directory, adjust the path settings and start clickfinder by calling this script
------------------
WScript.CreateObject("WScript.Shell").Run "tvghost.exe",0,True
WScript.CreateObject("WScript.Shell").Run "C:\PHP\php.exe C:\Programme\clickfinder\clickfinder.php",0,True
WScript.CreateObject("WScript.Shell").Run "taskkill /IM tvtip.exe",0
------------------

That's it, have fun!

Regards
EDieter
edieter is offline   Reply With Quote
Reply

Bookmarks

Tags
clickfinder, tvserver

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Clickfinder direct import!!!! how to use merci1983 TV Movie - Clickfinder 49 2007-09-06 13:08
Clickfinder Plugin doesn't find my Clickfinder Installation AndreasE TV Movie - Clickfinder 2 2007-08-28 14:26
Import Clickfinder in TV-Server bob.george Media Portal - Support 0 2007-04-24 19:52
Clickfinder don't work after testing tv-server rgies General Support 1 2007-02-11 18:45
New TV Server Plugin: TV Movie Clickfinder EPG Import mPod General Talk 2 2006-10-25 22:02


All times are GMT +1. The time now is 00:12.


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
Advertisement System V2.6 By   Branden