playcount and lastplayed not updated on scrap
#1
Before I filed a bug on this I wanted to see if anyone else has notice this.

In XBMC 11.0: Eden Beta 2 I have noticed that with both the mysql database and the sqlite database when scraping files that have nfos the playcount and lastplayed do not get entered in the database. Also these are new files not currently entered into the databases. My expectation is that upon adding the new file and getting the information from the local nfo file that lastplayed and playcount would be set from info in the nfo file.



Here is an example nfo

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
<title>Thor</title>
<originaltitle>Thor</originaltitle>
<rating>7.800000</rating>
<epbookmark>0.000000</epbookmark>
<year>2011</year>
<top250>0</top250>
<votes>8</votes>
<outline></outline>
<plot>The epic adventure &quot;Thor&quot; spans the Marvel Universe from present day Earth to the realm of Asgard. At the center of the story is The Mighty Thor, a powerful but arrogant warrior whose reckless actions reignite an ancient war. Thor is cast down to Earth and forced to live among humans as punishment. Once here, Thor learns what it takes to be a true hero when the most dangerous villain of his world sends the darkest forces of Asgard to invade Earth.</plot>
<tagline>Two worlds. One hero.</tagline>
<runtime>114</runtime>
<thumb preview="http://cf1.imgobject.com/posters/d1e/4da53b975e73d60ea9000d1e/thor-mid.jpg">http://cf1.imgobject.com/posters/d1e/4da53b975e73d60ea9000d1e/thor-original.jpg</thumb>
<fanart>
<thumb preview="http://cf1.imgobject.com/backdrops/60a/4d962b4d7b9aa1199400360a/thor-poster.jpg">http://cf1.imgobject.com/backdrops/60a/4d962b4d7b9aa1199400360a/thor-original.jpg</thumb>
</fanart>
<mpaa>Rated PG-13</mpaa>
<playcount>1</playcount>
<lastplayed>2011-08-28 21:58:54</lastplayed>
<id>tt0800369</id>
<genre>Action</genre>
<genre>Adventure</genre>
<genre>Thriller</genre>
<genre>Drama</genre>
<genre>Fantasy</genre>
<country>United States of America</country>
<credits>Ashley Miller</credits>
<credits>Zack Stentz</credits>
<credits>Don Payne</credits>
<director>Kenneth Branagh</director>
<premiered></premiered>
<status></status>
<code></code>
<aired></aired>
<studio>Paramount Pictures</studio>
<trailer>movie-trailer.mov</trailer>
<fileinfo>
<streamdetails>
<video>
<codec>h264</codec>
<aspect>2.352940</aspect>
<width>1280</width>
<height>544</height>
<durationinseconds>6890</durationinseconds>
</video>
<audio>
<codec>dca</codec>
<language>eng</language>
<channels>6</channels>
</audio>
<subtitle>
<language>eng</language>
</subtitle>
</streamdetails>
</fileinfo>
<actor>
<name>Idris Elba</name>
<role>Heimdall</role>
<thumb></thumb>
</actor>
<actor>
<name>Natalie Portman</name>
<role>Jane Foster</role>
<thumb></thumb>
</actor>
<actor>
<name>Jaimie Alexander</name>
<role>Sif</role>
<thumb></thumb>
</actor>
<actor>
<name>Stellan Skarsgård</name>
<role>Erik Selvig</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTg4NDUzOTY0N15BMl5BanBnXkFtZTYwNjYxODE0._V._V1._SY400_SX300_.jpg</thumb>
</actor>
<actor>
<name>Rene Russo</name>
<role>Frigga</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjA2MDI4MDE3MF5BMl5BanBnXkFtZTYwNzI3NjE0._V._V1._SY400_SX300_.jpg</thumb>
</actor>
<actor>
<name>Kat Dennings</name>
<role>Darcy</role>
<thumb></thumb>
</actor>
<actor>
<name>Chris Hemsworth</name>
<role>Thor</role>
<thumb></thumb>
</actor>
<actor>
<name>Tom Hiddleston</name>
<role>Loki</role>
<thumb></thumb>
</actor>
<actor>
<name>Anthony Hopkins</name>
<role>Odin</role>
<thumb></thumb>
</actor>
</movie>
Reply

Logout Mark Read Team Forum Stats Members Help
playcount and lastplayed not updated on scrap0