TV Server Plugin: TvWishList (2 Viewers)

huha

Extension Developer
January 3, 2008
890
556
Home Country
Germany Germany
If the PC is off at the scheduled time it will start the search after it is turned on. You can use the power scheduler plugin or the windows task scheduler to wake up your pc at the times you want to run EPG search.
 

JiRo

MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    My work allowed me to give back to MediaPortal. 1.2.0 is perfect and so have time to return to plugins. I was impatient and created an unofficial TVWishList skin files for Black Glass (will place them in the Mod section of the Black Glass skin ASAP). Now I can test TVWishList on my productive system.

    As I wrote earlier, there are still problems with multiseat configuration (same as described elliottmc). I set the debug logging, but the situation is even worse (apparently according to Heisenberg's uncertainty principle :)). As can be seen, data processing from the server takes a very long time. If the time longer than about 10 seconds, comes event loss of communication with TV server. If set debug logging, processing takes data from the server about 20 seconds. See attached log.

    I chose a few important events:

    Time 20:08:01 TVWishList plugin Start

    09/20/2011 20:08:01.765200 [Debug] [MPMain (1)]: Window: TvWishList.TvWishListMP_GUI init

    Loss of communication with the server 20:08:11

    09/20/2011 20:08:11.442200 [Info.] [-TvClient TvHome: Heartbeat thread transmitter (17)]: TVHome: OnRemotingDisconnected

    End of data processing at about 20:08:20

    09/20/2011 20:08:19.815200 [Debug] [MPMain (1)]: [TVWishListMP] UpdateListItems message number found: SubItemCount = 0

    Restoring communication with the server 20:08:20

    09/20/2011 20:08:20.588200 [Info.] [(21)]: TVHome: OnRemotingConnected, recovered from a Disconnection

    If I change logging to Error, mostly everything is faster. Start and end plugin fits to about 8-9 seconds, mostly without losing communication with the server.

    JiRo
     

    Attachments

    • MediaPortal.zip
      62.9 KB

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Home Country
    Germany Germany
    elliottmc,
    as i see that you are in the test group i am asking you for help to get in contact with an experienced programmer who understands the Tvserver database in detail.
    I have reused a very nice and simple code piece from the Ipimp source code to make the connection to the Tvserver database as listed below. i suspect that this is conflicting with the Tv plugin in Mediaportal for a multiseat configuration. I am also not closing the connection after leaving the plugin (I do not know how). Is there a better way to do this? I need a connection to the Tvserver database to use the
    TvBusinessLayer layer = new TvBusinessLayer();
    Setting setting;
    in my plugin. Any help here would be very much appreciated. I do not know any other MP plugin, which is using the Tvserver database. If someone knows a source code here, please post.

    Update: I believe i found the bug. I did open the connection although it was open already. I changed the following line

    Source Code:
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Web;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Collections.Generic;

    using TvDatabase;
    using Gentle.Framework;
    using TvControl;
    using MediaPortal.GUI.Library;

    namespace TvWishList
    {
    public class ServiceInterface : System.Web.Services.WebService
    {
    private static bool isDBConnected = false;
    public string gentleConfig;
    public string connStr;

    public bool ConnectToDatabase()
    {
    //if (isDBConnected) bug!!!
    if (RemoteControl.IsConnected)
    return true;

    string provider = "";
    RemoteControl.HostName = Environment.MachineName;
    try
    {
    RemoteControl.Instance.GetDatabaseConnectionString(out connStr, out provider);
    Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr);
    }
    catch (Exception)
    {
    return false;
    }
    isDBConnected = true;
    return true;
    }
    }
    }
     

    Nonciazzecco

    MP Donator
  • Premium Supporter
  • June 3, 2010
    43
    10
    Milano
    Home Country
    Italy Italy
    If the PC is off at the scheduled time it will start the search after it is turned on. You can use the power scheduler plugin or the windows task scheduler to wake up your pc at the times you want to run EPG search.
    Ok thank you,
    an idea could be to keep track and show the last time the query have run.

    Another question. It is normal that after the installation all the default emails are empty?

    A request. I love the plugin but the EPG data I can grab in Italy are not very detailed and this limit a lot the usage of the plugin with the standard parameters. I am forced to use a lot the expression type query. Why do not add a tab in the plugin where you can test each query without programming the tv-service? Now if I want to make test i have to delete each time the scheduling done in the previous test.

    Great job!
     

    D3ltoroxp

    MP Donator
  • Premium Supporter
  • June 1, 2008
    3,272
    212
    Home Country
    Germany Germany
    AW: TV Server Plugin: TvWishList

    Hello huha,

    i have a problem. i will search for "Das Supertalent" in the options i have (Wdh.) to skip this Series and few other settings shown on the screenshoot. You see the Result on the screenshoot. I will only the series how comes on 20:15 and only the newest not wdh. What have I done wrong ?
     

    JiRo

    MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    Hi huha,

    yes I know, now you have other problems to solve, but I have an idea for minor improvements.

    Keep Until item should contain the date (or Always) by which to keep a recorded episode. Because do not know when it will episode broadcasted, it is difficult to determine this date.

    Would be better to include into items Keep Until the number of days and by searching in the EPG based on the actual date of broadcasting calculate the end date? Or better have a choice:

    Always ... end date=31.12.9000
    yyyy-mm-dd ... end date=dd.mm.yyyy
    xd ... end date=<broadcast date>+x days

    JiRo.
     

    D3ltoroxp

    MP Donator
  • Premium Supporter
  • June 1, 2008
    3,272
    212
    Home Country
    Germany Germany
    AW: TV Server Plugin: TvWishList

    Hello huha,

    i have a problem. i will search for "Das Supertalent" in the options i have (Wdh.) to skip this Series and few other settings shown on the screenshoot. You see the Result on the screenshoot. I will only the series how comes on 20:15 and only the newest not wdh. What have I done wrong ?

    Can anybody help me ?
     

    JiRo

    MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    Today I put skin files on the forum Black Glass Community Mods for TVWishList plugin.

    It is not a final solution, it will leave the author of Black Glass skin - Tgx. It is designed for the impatient and for those who want to test TVWishList plugin on their productive systems with the Black Glass skin.

    JiRo.
     
    O

    OL_1973

    Guest
    AW: TV Server Plugin: TvWishList

    ... I will only the series how comes on 20:15 and only the newest not wdh...

    Can anybody help me ?

    Hi D3ltoroxp, there is a column in TVWishList called "Exclude". In this column take your "(Wdh.)". This is the same way I did sort out repeated episodes.

    Hope it helps.
     

    Users who are viewing this thread

    Top Bottom