MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
Thread Tools Display Modes
Old 2008-01-25, 17:52   #21 (permalink)
Portal User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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 !
cico is offline   Reply With Quote
Old 2008-01-25, 18:45   #22 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 113
Thanks: 5
Thanked 20 Times in 15 Posts

Country:


Default

Quote:
Originally Posted by cico View Post
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
NephilimDM is offline   Reply With Quote
Old 2008-01-25, 19:16   #23 (permalink)
Portal User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Nessun file dtd e ricreato file channels.xml ma non funzia ..dà sempre Invalid XML file !

Ciao

cico
cico is offline   Reply With Quote
Old 2008-01-25, 19:45   #24 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 113
Thanks: 5
Thanked 20 Times in 15 Posts

Country:


Default

Quote:
Originally Posted by cico View Post
Nessun file dtd e ricreato file channels.xml ma non funzia ..dà sempre Invalid XML file !

Ciao

cico
Serve il file dtd.

Lo trovi in allegato...

Bye,
Nephilim
Attached Files
File Type: rar xmltv.rar (8.2 KB, 80 views)
NephilimDM is offline   Reply With Quote
This User Say Thank You:
Old 2008-01-25, 23:21   #25 (permalink)
Portal Member
 
Join Date: Jun 2005
Location: Bolzano
Age: 37
Posts: 240
Thanks: 32
Thanked 5 Times in 5 Posts

Country:

My System

Default

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.
__________________
Roby

Download italian myvideos IMDB script yahoo.it
Download italian myvideos IMDB script mymovies.it
Visit my iPod Italian site: http://www.ipoditalia.it

robyf is offline   Reply With Quote
Old 2008-01-26, 12:55   #26 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 113
Thanks: 5
Thanked 20 Times in 15 Posts

Country:


Default

A little bug-fix...

Bye,
Nephilim

Last edited by NephilimDM; 2008-02-10 at 22:48.
NephilimDM is offline   Reply With Quote
Old 2008-01-26, 21:19   #27 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Venice
Age: 41
Posts: 71
Thanks: 7
Thanked 2 Times in 2 Posts

Country:


Default

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.

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.
xavier is online now   Reply With Quote
Old 2008-01-26, 21:41   #28 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 113
Thanks: 5
Thanked 20 Times in 15 Posts

Country:


Default

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
NephilimDM is offline   Reply With Quote
Old 2008-01-27, 09:53   #29 (permalink)
Portal User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by NephilimDM View Post
prova quest'ultima versione con il parametro --addstoptime

Fammi sapere se funziona.

Bye,
Nephilim

Quote:
Originally Posted by robert4ever View Post
Quote:
Originally Posted by NephilimDM View Post
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/inde...howtopic=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 !!!
robert4ever is offline   Reply With Quote
Old 2008-01-28, 15:03   #30 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 113
Thanks: 5
Thanked 20 Times in 15 Posts

Country:


Default

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

Last edited by NephilimDM; 2008-02-10 at 22:49.
NephilimDM is offline   Reply With Quote
Reply

Bookmarks

Tags
epg, grabber, italy, sky

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
Sky EPG Listings? kevin081780 WebEPG 0 2007-09-21 17:28
proble strange with channel sky italy malcom67 pre 1.0 RC1 3 2007-03-26 11:08
SKY EPG xero01uk General Support 2 2006-08-17 23:52
EPG in UK with sky xero01uk WebEPG 4 2006-08-17 23:27
EPG for UK Sky? allanmb Codecs, External Players 1 2006-03-30 00:02


All times are GMT +1. The time now is 08:36.


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