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
Support
General Support
Sky Epg Grabber (Italy)
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="xavier" data-source="post: 228701" data-attributes="member: 10592"><p>Hi Nephilim,</p><p></p><p>I have tried your new '--subtitle' switch.</p><p></p><p>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.</p><p></p><p>This would not be a problem at skin level, but it confuses the MP function that assigns the file names to the recordings.</p><p></p><p>This is a common template for TV Series recording:</p><p></p><p><a href="http://img90.imageshack.us/my.php?image=templateqi6.png" target="_blank"><img src="http://img90.imageshack.us/img90/8200/templateqi6.th.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p>With the actual version of your grabber, this fragment of tvguide.xml...</p><p></p><p>[CODE]</p><p> <programme start="20080126210500 +0100" channel="898"></p><p> <title lang="it">Cold Case</title></p><p> <sub-title lang="it">2' Stagione Ep.14 - 'Vittime di guerra'</sub-title></p><p> <desc lang="it">Rush indaga su un omicidio del 1969, in cui il corpo di una giovane venne ritrovata...</desc></p><p> <episode-num system="xmltv_ns">1.13.</episode-num></p><p> <category lang="it">Fiction</category></p><p> <category lang="it">Intrattenimento</category></p><p> </programme></p><p>[/CODE]</p><p></p><p></p><p>...creates this file name after the recording...</p><p></p><p>[CODE]</p><p>Cold Case.1x13.2' Stagione Ep.14 - 'Vittime di guerra'.dvr-ms</p><p>[/CODE]</p><p></p><p></p><p>...while it would be being desirable that it resulted so.</p><p></p><p>[CODE]</p><p>Cold Case.1x13.Vittime di guerra.dvr-ms</p><p>[/CODE]</p><p></p><p></p><p>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.</p><p></p><p>This is a portion of <strong>XMLTVImport.cs</strong> that import the data:</p><p></p><p>[CODE]</p><p> if (nodeEpisodeNum.Attributes.GetNamedItem("system").InnerText == "xmltv_ns")</p><p> {</p><p> strSerEpNum = htmlUtil.ConvertHTMLToAnsi(nodeEpisodeNum.InnerText.Replace(" ", ""));</p><p> int pos = 0;</p><p> int Epos = 0;</p><p> pos = strSerEpNum.IndexOf(".", pos);</p><p> if (pos == 0) //na_dd grabber only gives '..0/2' etc</p><p> {</p><p> Epos = pos;</p><p> pos = strSerEpNum.IndexOf(".", pos + 1);</p><p> strEpisodeNum = strSerEpNum.Substring(Epos + 1, (pos - 1) - Epos);</p><p> strEpisodePart = strSerEpNum.Substring(pos + 1, strSerEpNum.Length - (pos + 1));</p><p> if (strEpisodePart.IndexOf("/", 0) != -1)// danish guide gives: episode-num system="xmltv_ns"> . 113 . </episode-num></p><p> {</p><p> if (strEpisodePart.Substring(2, 1) == "1") strEpisodePart = "";</p><p> else</p><p> {</p><p> int p = 0;</p><p> int t = 0;</p><p> if (Convert.ToInt32(strEpisodePart.Substring(0, 1)) == 0)</p><p> {</p><p> p = Convert.ToInt32(strEpisodePart.Substring(0, 1)) + 1;</p><p> t = Convert.ToInt32(strEpisodePart.Substring(2, 1));</p><p> strEpisodePart = Convert.ToString(p) + "/" + Convert.ToString(t);</p><p> }</p><p> }</p><p> }</p><p> }</p><p> else if (pos > 0)</p><p> {</p><p> strSeriesNum = strSerEpNum.Substring(0, pos);</p><p> Epos = pos;</p><p> pos = strSerEpNum.IndexOf(".", pos + 1);</p><p> strEpisodeNum = strSerEpNum.Substring(Epos + 1, (pos - 1) - Epos);</p><p> strEpisodePart = strSerEpNum.Substring(pos + 1, strSerEpNum.Length - (pos + 1));</p><p> if (strEpisodePart.IndexOf("/", 0) != -1)</p><p> {</p><p> if (strEpisodePart.Substring(2, 1) == "1") strEpisodePart = "";</p><p> else</p><p> {</p><p> int p = 0;</p><p> int t = 0;</p><p> if (Convert.ToInt32(strEpisodePart.Substring(0, 1)) == 0)</p><p> {</p><p> p = Convert.ToInt32(strEpisodePart.Substring(0, 1)) + 1;</p><p> }</p><p> else</p><p> {</p><p> p = Convert.ToInt32(strEpisodePart.Substring(0, 1));</p><p> }</p><p> t = Convert.ToInt32(strEpisodePart.Substring(2, 1));</p><p> strEpisodePart = Convert.ToString(p) + "/" + Convert.ToString(t);</p><p> }</p><p> }</p><p> }</p><p> else</p><p> {</p><p> strSeriesNum = strSerEpNum;</p><p> strEpisodeNum = "";</p><p> strEpisodePart = "";</p><p> }</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p></p><p>If my hypothesis is exact, it is not worth to wait the bug correction, could want us a lot of time. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite6" alt=":cool:" title="Cool :cool:" loading="lazy" data-shortname=":cool:" /> </p><p></p><p>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...</p><p></p><p>A last thing. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> If you think that to cut a part of subtitle creates skin problems, don't worry. From <strong>GUITVGuideBase.cs</strong>, these are all the MP supported tags, inclusive <strong>SeriesNumber</strong>, <strong>EpisodeNumber</strong> and <strong>EpisodeName</strong>:</p><p></p><p>[CODE]</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Title", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Time", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Description", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Genre", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.EpisodeName", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.SeriesNumber", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.EpisodeNumber", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.EpisodePart", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.EpisodeDetail", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Date", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.StarRating", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Classification", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.Duration", string.Empty);</p><p>GUIPropertyManager.SetProperty("#TV.Guide.TimeFromNow", string.Empty);</p><p>[/CODE]</p><p></p><p></p><p>King regards,</p><p>xavier.</p></blockquote><p></p>
[QUOTE="xavier, post: 228701, member: 10592"] 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: [URL=http://img90.imageshack.us/my.php?image=templateqi6.png][IMG]http://img90.imageshack.us/img90/8200/templateqi6.th.png[/IMG][/URL] 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> [/CODE] ...creates this file name after the recording... [CODE] Cold Case.1x13.2' Stagione Ep.14 - 'Vittime di guerra'.dvr-ms [/CODE] ...while it would be being desirable that it resulted so. [CODE] Cold Case.1x13.Vittime di guerra.dvr-ms [/CODE] 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 [B]XMLTVImport.cs[/B] 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 = ""; } } } [/CODE] 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 [B]GUITVGuideBase.cs[/B], these are all the MP supported tags, inclusive [B]SeriesNumber[/B], [B]EpisodeNumber[/B] and [B]EpisodeName[/B]: [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); [/CODE] King regards, xavier. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Sky Epg Grabber (Italy)
Contact us
RSS
Top
Bottom