home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Clickfinder and TV-Server
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="edieter" data-source="post: 171115" data-attributes="member: 53609"><p>Hi,</p><p></p><p>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. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> Simply choose "an Sendetermin erinnern" in clickfinder, exit clickfinder and the schedule in tvserver is set.</p><p></p><p>Installation:</p><p>1. Install PHP if not done yet</p><p>2. Set up two ODBC-connections to tvlibrary (tvlibrary) and the clickfinder-libary (tvdaten.mdb).</p><p>3. Adjust the names of the ODBC-connections and put this script into a file called clickfinder.php in the clickfinder directory:</p><p>------------------</p><p><?php</p><p></p><p>$dbtvserver = odbc_connect('tvlibrary' , '', '', SQL_CUR_USE_ODBC);</p><p>$dbcf = odbc_connect('clickfinder', '', '', SQL_CUR_USE_ODBC);</p><p></p><p>$rescf = odbc_exec ($dbcf, "SELECT Sendungen.SenderKennung, Sendungen.Beginn, Sendungen.Ende, Markierungen.Sendung FROM Markierungen INNER JOIN Sendungen ON Markierungen.Pos = Sendungen.Pos;");</p><p>while (odbc_fetch_row($rescf))</p><p>{</p><p> $sender = odbc_result($rescf,"SenderKennung");</p><p> $sendung = odbc_result($rescf,"Sendung");</p><p> $beginn = odbc_result($rescf,"Beginn");</p><p> $ende = odbc_result($rescf,"Ende");</p><p></p><p> echo "$sender - $sendung ($beginn - $ende)";</p><p></p><p> $res_tvs1 = odbc_exec ($dbtvserver,"SELECT idChannel FROM Channel WHERE name = '$sender';");</p><p> if (odbc_fetch_row($res_tvs1))</p><p> {</p><p> $id_sender=odbc_result($res_tvs1,"idChannel");</p><p> $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')");</p><p> }</p><p>}</p><p>$rescf = odbc_exec ($dbcf, "DELETE FROM Markierungen;");</p><p>?></p><p>------------------</p><p></p><p>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</p><p>------------------</p><p>WScript.CreateObject("WScript.Shell").Run "tvghost.exe",0,True</p><p>WScript.CreateObject("WScript.Shell").Run "C:\PHP\php.exe C:\Programme\clickfinder\clickfinder.php",0,True</p><p>WScript.CreateObject("WScript.Shell").Run "taskkill /IM tvtip.exe",0</p><p>------------------</p><p></p><p>That's it, have fun!</p><p></p><p>Regards</p><p>EDieter</p></blockquote><p></p>
[QUOTE="edieter, post: 171115, member: 53609"] 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. :D 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Clickfinder and TV-Server
Contact us
RSS
Top
Bottom