Kodi Community Forum
How is the "year" scraped in tv series?? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: How is the "year" scraped in tv series?? (/showthread.php?tid=60078)



How is the "year" scraped in tv series?? - KoTiX - 2009-10-21

Hi all, I'm writing an italian scraper for tv series and looking at all the existing tv scrapers it seems to me that there is not a RegExp that searches the year.
Even if I make a specific RegExp for it, it's not considered by xbmc, so I'd like to know how xbmc find out the year.
Tnx in advance Smile


- spiff - 2009-10-21

shows and episodes do not have any 'year' attribute. shows have <premiered> and episodes have <aired>


- KoTiX - 2009-10-21

This means that the premiered and aired date format dd/mm/yyyy need to be yyyy/mm/dd or something like that?


- spiff - 2009-10-21

we should support both schemes, if not i'll fix that.


- KoTiX - 2009-10-21

Thanks - I'll appreciate that Big Grin


- KoTiX - 2009-10-23

I managed to retrieve the date in the yyyy/mm/dd and now the year is displayed correctly, so it's surely an xbmc bug.
Here is my log now:
Code:
GetDetails returned <details>
<title>Dexter</title>
<genre>Drammatico</genre>
<genre>Poliziesco</genre>
<genre>Thriller</genre>
<plot>Un ematologo della polizia scientifica di Miami è anche un serial killer di criminali che pensa siano sfuggiti alla giustizia.           </plot>
<thumb>http://images.movieplayer.it/2009/08/01/un-nuovo-poster-per-la-stagione-4-di-dexter-125982.jpg</thumb>
<url function="GetPosters">http://www.movieplayer.it/serietv/733/dexter/gallery-e-trailer//manifesti-e-poster/1/</url>
<rating>8.3</rating>
<votes>8.6</votes>
<status>In corso</status>
[b][u]<premiered>2006.10.01</premiered>[/u][/b]
<actor><name>Michael C. Hall</name><role></role><thumb>http://images.movieplayer.it/2008/05/30/michael-c-hall-77744.jpg</thumb></actor>
<actor><name>Julie Benz</name><role></role><thumb>http://images.movieplayer.it/2007/07/12/julie-benz-44518.jpg</thumb></actor>
<actor><name>Jennifer Carpenter</name><role></role><thumb>http://images.movieplayer.it/2003/07/26/jennifer-carpenter-21059.jpg</thumb></actor>
<actor><name>Lauren Vélez</name><role></role><thumb>http://images.movieplayer.it/2009/06/09/lauren-velez-interpreta-la-tenente-maria-laguerta-nella-seconda-stagione-di-dexter-120121.jpg</thumb></actor>
<episodeguide><url>http://www.movieplayer.it/serietv/733/dexter/episodi/</url></episodeguide>
</details>

Tnx in advance if somebody fix it. Wink


- spiff - 2009-10-23

so just feed some xml with

<premiered>10.01.2006</premiered> and it fails?

i'm stupid i need it simple to reproduce Smile


- KoTiX - 2009-10-23

Yes, it fails showing 2009 instead of 2006.

Maybe it's easyer if you try out my scraper with Italian (european??) date format dd/mm/yyy:

http://www.2shared.com/file/8631134/1cc07205/movieplayerit-TV.html

and then this is the same but with (US??) yyyy/mm/dd date format:

http://www.2shared.com/file/8631136/f2ce1329/movieplayerit-TV-US_date.html


- spiff - 2009-10-23

exactly what i was fishing for Wink

r23943


- KoTiX - 2009-10-23

Tnx man Smile