Sky Epg Grabber (Italy) (4 Viewers)

cico

New Member
March 12, 2007
3
0
ciao Nephilim .. ho provato il nuovo programma ma non funziona .. quando si lancia importa guida tv in MP dà errore .. file non valido non trovato ?!
Sono tornato alla versione precedente e funzionava !
 

Nephilim

Extension Developer
February 8, 2007
805
499
Home Country
Italy Italy
ciao Nephilim .. ho provato il nuovo programma ma non funziona .. quando si lancia importa guida tv in MP dà errore .. file non valido non trovato ?!
Sono tornato alla versione precedente e funzionava !

Hai il file xmltv.dtd nella stessa cartella della guida?

Bye,
Nephilim
 

robyf

Retired Team Member
  • Premium Supporter
  • June 20, 2005
    1,076
    278
    52
    Bolzano
    Home Country
    Italy Italy
    Thanks I currently use xmltv -slow but this tools seems to be interesting, I'm going to try it as soon as possible and let you know.
     

    xavier

    MP Donator
  • Premium Supporter
  • December 12, 2004
    121
    17
    Venice
    Home Country
    Italy Italy
    Hi Nephilim,

    I have tried your new '--subtitle' switch.

    The value of the season number and of the episode number of series TV is now loaded in the MP database, but is not eliminated the text that precedes the episode title.

    This would not be a problem at skin level, but it confuses the MP function that assigns the file names to the recordings.

    This is a common template for TV Series recording:



    With the actual version of your grabber, this fragment of tvguide.xml...

    Code:
      <programme start="20080126210500 +0100" channel="898">
        <title lang="it">Cold Case</title>
        <sub-title lang="it">2' Stagione Ep.14 - 'Vittime di guerra'</sub-title>
        <desc lang="it">Rush indaga su un omicidio del 1969, in cui il corpo di una giovane venne ritrovata...</desc>
        <episode-num system="xmltv_ns">1.13.</episode-num>
        <category lang="it">Fiction</category>
        <category lang="it">Intrattenimento</category>
      </programme>


    ...creates this file name after the recording...

    Code:
    Cold Case.1x13.2' Stagione Ep.14 - 'Vittime di guerra'.dvr-ms


    ...while it would be being desirable that it resulted so.

    Code:
    Cold Case.1x13.Vittime di guerra.dvr-ms


    You can notice as the season number and the episode number is wrong. IMHO, I think about a MP bug that the fact doesn't consider that the file TVGuide.xml has a base 0 numeration.

    This is a portion of XMLTVImport.cs that import the data:

    Code:
      if (nodeEpisodeNum.Attributes.GetNamedItem("system").InnerText == "xmltv_ns")
        {
          strSerEpNum = htmlUtil.ConvertHTMLToAnsi(nodeEpisodeNum.InnerText.Replace(" ", ""));
          int pos = 0;
          int Epos = 0;
          pos = strSerEpNum.IndexOf(".", pos);
          if (pos == 0) //na_dd grabber only gives '..0/2' etc
            {
            Epos = pos;
            pos = strSerEpNum.IndexOf(".", pos + 1);
            strEpisodeNum = strSerEpNum.Substring(Epos + 1, (pos - 1) - Epos);
            strEpisodePart = strSerEpNum.Substring(pos + 1, strSerEpNum.Length - (pos + 1));
            if (strEpisodePart.IndexOf("/", 0) != -1)// danish guide gives: episode-num system="xmltv_ns"> . 113 . </episode-num>
            {
              if (strEpisodePart.Substring(2, 1) == "1") strEpisodePart = "";
              else
                {
                int p = 0;
                int t = 0;
                if (Convert.ToInt32(strEpisodePart.Substring(0, 1)) == 0)
                  {
                  p = Convert.ToInt32(strEpisodePart.Substring(0, 1)) + 1;
                  t = Convert.ToInt32(strEpisodePart.Substring(2, 1));
                  strEpisodePart = Convert.ToString(p) + "/" + Convert.ToString(t);
                  }
                }
              }
            }
            else if (pos > 0)
            {
              strSeriesNum = strSerEpNum.Substring(0, pos);
              Epos = pos;
              pos = strSerEpNum.IndexOf(".", pos + 1);
              strEpisodeNum = strSerEpNum.Substring(Epos + 1, (pos - 1) - Epos);
              strEpisodePart = strSerEpNum.Substring(pos + 1, strSerEpNum.Length - (pos + 1));
              if (strEpisodePart.IndexOf("/", 0) != -1)
              {
                if (strEpisodePart.Substring(2, 1) == "1") strEpisodePart = "";
                else
                  {
                  int p = 0;
                  int t = 0;
                  if (Convert.ToInt32(strEpisodePart.Substring(0, 1)) == 0)
                    {
                    p = Convert.ToInt32(strEpisodePart.Substring(0, 1)) + 1;
                    }
                  else
                    {
                    p = Convert.ToInt32(strEpisodePart.Substring(0, 1));
                    }
                  t = Convert.ToInt32(strEpisodePart.Substring(2, 1));
                  strEpisodePart = Convert.ToString(p) + "/" + Convert.ToString(t);
                }
              }
            }
            else
              {
              strSeriesNum = strSerEpNum;
              strEpisodeNum = "";
              strEpisodePart = "";
              }
            }
          }


    If my hypothesis is exact, it is not worth to wait the bug correction, could want us a lot of time. :cool:

    Considering that your grabber starts to be used by many other softwares (MCE, DVBViewer, ect.) rather of hard-code solution, would suggest to add a further switch ( --base1 ?) to correct the numeration. But this is only my modest opinion...

    A last thing. :) If you think that to cut a part of subtitle creates skin problems, don't worry. From GUITVGuideBase.cs, these are all the MP supported tags, inclusive SeriesNumber, EpisodeNumber and EpisodeName:

    Code:
    GUIPropertyManager.SetProperty("#TV.Guide.Title", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Time", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Description", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Genre", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.EpisodeName", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.SeriesNumber", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.EpisodeNumber", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.EpisodePart", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.EpisodeDetail", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Date", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.StarRating", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Classification", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.Duration", string.Empty);
    GUIPropertyManager.SetProperty("#TV.Guide.TimeFromNow", string.Empty);


    King regards,
    xavier.
     

    Nephilim

    Extension Developer
    February 8, 2007
    805
    499
    Home Country
    Italy Italy
    Hi xavier,

    thank you for the feedback.

    About the episode and season number (as you recognized) it's a MP bug, because XMLTV guide is 0 based.
    Add a --base1 switch is easy. I'll do it soon.
    About to strip the subtitle... I'll try... ;)

    Bye,
    Nephilim
     

    robert4ever

    New Member
    January 22, 2008
    2
    0
    Home Country
    Italy Italy
    prova quest'ultima versione con il parametro --addstoptime

    Fammi sapere se funziona.

    Bye,
    Nephilim

    Thank you all...

    A new version is on the way. (Sub-title and episode management... ;) )

    Stay tuned...

    Bye,
    Nephilim

    Ciao , complimenti per il tuo grabber ;

    volevo chiederti se era possibile una implementazione per far in modo che il file xml di output si possa importare in DvbViewer ;

    Ti elenco quì un esempio della epg esportata da DvbViewer :
    -------------------
    <?xml version="1.0" encoding="iso-8859-1"?>
    <EPG CreatedOn="2008-01-25 00.31.39">
    <Channel Name="RAI1" ServiceID="3401" TransportID="5200" Typ="TV">
    <Event>
    <Start>2008-01-25 00.25.00</Start>
    <Duration>01.35</Duration>
    <Titel>Porta a porta</Titel>
    <Short/>
    <Long/>
    </Event>
    <Event>
    <Start>2008-01-25 02.00.00</Start>
    <Duration>00.35</Duration>
    <Titel>Tg1 Notte</Titel>
    <Short>Tg1 Le Idee - Che tempo fa</Short>
    <Long>Tg1 Le Idee - Che tempo fa</Long>
    </Event>
    </Channel>
    -------------------------

    ti preciso che utilizzando il plugin AutoImportXMLTV (http://www.dvbviewer.info/forum/index.php?showtopic=20539) vengo riconosciuti i canali , viene fatto anche l'associazione ma dove la fase di importazione (che termina senza errori) non vi è alcuna traccia dell'epg in DvbViewer.


    Ti ringrazio in anticipo


    Grazie 1000 Nephilim, sei un grande , ora funziona alla PERFEZIONE con DvbViewer utilizzando il parametro --addstoptime !!!
     

    Nephilim

    Extension Developer
    February 8, 2007
    805
    499
    Home Country
    Italy Italy
    New version.

    - Added the "--base1" switch for episodes base 1 numeration
    - Strip subtitle when "--extrainfo" is set
    - Better download management
    - Litte bug-fix

    Please, let me know.

    Bye,
    Nephilim
     

    Users who are viewing this thread

    Top Bottom