How is the "year" scraped in tv series??
#1
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
Reply
#2
shows and episodes do not have any 'year' attribute. shows have <premiered> and episodes have <aired>
Reply
#3
This means that the premiered and aired date format dd/mm/yyyy need to be yyyy/mm/dd or something like that?
Reply
#4
we should support both schemes, if not i'll fix that.
Reply
#5
Thanks - I'll appreciate that Big Grin
Reply
#6
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
Reply
#7
so just feed some xml with

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

i'm stupid i need it simple to reproduce Smile
Reply
#8
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/1cc0...it-TV.html

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

http://www.2shared.com/file/8631136/f2ce..._date.html
Reply
#9
exactly what i was fishing for Wink

r23943
Reply
#10
Tnx man Smile
Reply

Logout Mark Read Team Forum Stats Members Help
How is the "year" scraped in tv series??0