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 !
Nessun file dtd e ricreato file channels.xml ma non funzia ..dà sempre Invalid XML file !
Ciao
cico
<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>
Cold Case.1x13.2' Stagione Ep.14 - 'Vittime di guerra'.dvr-ms
Cold Case.1x13.Vittime di guerra.dvr-ms
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 = "";
}
}
}
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);
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