AppleTV 2 (black) Nightly (07-28) Newly added movies don't show up in Rently Added

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Jester Offline
XBMC for iOS* forums Moderator
Posts: 977
Joined: Oct 2008
Reputation: 10
Post: #1
Platform: Apple TV2
Version of iOS: 4.3
Build: xbmc-20120728-15a507f-master-atv2.deb

With the latest nightlies running, when I add a movie (last example Bridget Jones Diary (2001) (don't ask GF request) it scans into the database fine, shows up in my movie list, but does not show up as one of the thumbnails on the recently added Movies screen, and does not show up if you go to the Recently Added sub-menu list.

TV Shows, don't have this problem, seems to works fine.

Also I've noticed the few movies that are on the recently added list (when going via the sub-menu) are ordered wrong (not alphabetically) and also miss the just added movie there

did I miss a bug report and/or is this still working in progress ?

Thanks

P.S.
Yes I can post logs if needed, but I didn't see the point as the movie is added to the database fine

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
(This post was last modified: 2012-07-29 15:40 by Jester.)
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 977
Joined: Oct 2008
Reputation: 10
Post: #2
While looking into this, I came across this:

FUTURE FRODO FEATURE:

<dateadded>2</dateadded> <!-- 0 results in using the current datetime when adding a video;
1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
2 results in using the newer datetime of the file's mtime and ctime -->
</videolibrary>

So two things, 1, could this have something to do with my bug above ?

and 2, why are we making mtime/ctime the default for Frodo,??
from my point of view, clearly the dateadded should be the actual date/time when you are adding the file to the database, not the last time the file was edited (either the file or the chmod etc.) as that can be last year.
Yeah I know I can change it using the above setting, fine, but I currently don't see the logic in having something default which will create a "dataadded" database entry with possibly the wrong date/time.

It could be that my understanding of date added is wrong, but somebody enlighten me then Smile

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #3
I'd like to have a look at that, where did you grab that info from Jester?

I'm at work all night, but I'll have a look at recently added tomorrow if I get a chance. Most likely just a database change that needs updating in the recently added script.
find quote
Martijn Offline
Team-XBMC
Posts: 7,787
Joined: Jul 2011
Reputation: 115
Location: Dawn of time
Post: #4
http://forum.xbmc.org/showthread.php?tid=127343

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 977
Joined: Oct 2008
Reputation: 10
Post: #5
(2012-07-29 12:27)Cranial Wrote:  I'd like to have a look at that, where did you grab that info from Jester?

I'm at work all night, but I'll have a look at recently added tomorrow if I get a chance. Most likely just a database change that needs updating in the recently added script.

Info here:
http://wiki.xbmc.org/index.php?title=Adv...library.3E

But I don't want this thread to become a dateadded discussion, rather look at the issue of new movies not showing up Wink

So, I read through some stuff (thanks Martijn) is seems there is either logic missing or a bug .

if you create a new folder (so today's date/time) and put a new movie (new is relative, it's not in your database, but can be a movie from say 2001) in the folder, with a mtime/ctime of say 2009 it will not show up in recently added, which is wrong as it is recently added (just now, today) but the due to mtime/ctime is will not show up, so it's missing a check to see if the file is in the database, if not/new then it needs to be added to the recently added list which it currently isn't doing

Also montellese statement he made here and copied below explains why it works fine for tv shows:

Quote:It didn't make it into Eden but it will be available in the next release by default: ea3835e1c14f530b15cb. Thse changes use the video files modification date (or in case of tvshows the directories creation date) and stores that into a field named dateAdded in the database. That field is then used for sorting by Date Added and for things like Recently Added etc.

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
(This post was last modified: 2012-07-29 15:37 by Jester.)
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #6
(2012-07-29 15:24)Jester Wrote:  Info here:
http://wiki.xbmc.org/index.php?title=Adv...library.3E

But I don't want this thread to become a dateadded discussion, rather look at the issue of new movies not showing up Wink

So, I read through some stuff (thanks Martijn) is seems there is either logic missing or a bug .

if you create a new folder (so today's date/time) and put a new movie (new is relative, it's not in your database, but can be a movie from say 2001) in the folder, with a mtime/ctime of say 2009 it will not show up in recently added, which is wrong as it is recently added (just now, today) but the due to mtime/ctime is will not show up, so it's missing a check to see if the file is in the database, if not/new then it needs to be added to the recently added list which it currently isn't doing

Also montellese statement he made here and copied below explains why it works fine for tv shows:

Quote:It didn't make it into Eden but it will be available in the next release by default: ea3835e1c14f530b15cb. Thse changes use the video files modification date (or in case of tvshows the directories creation date) and stores that into a field named dateAdded in the database. That field is then used for sorting by Date Added and for things like Recently Added etc.

Thanks for the info Jester, I'll check it out.


As for the TV working... as stated by Memphiz here

Quote:You can't use the folder date. We (devs) already discussed this on IRC. Whenever something in a folder changes the date of the folder gets altered. So just exporting your metadata into the movie folder would change the order they would appear in "recently added".

So, yes, the TV works, when you first add it, but I believe if you export your library and re-add, this will change the folder 'dates' to the time of export, so in the current method of re-adding to the library your recently added list will only be in order of import, you lose the order you previously had. If you use folder dates, you'd have a recently added list populated in the order that the library was exported.

I know this isn't an answer to the problem at hand, but I thought i'd add the info as it at least gives a direction to head away from in search of the answer. It's late here, I do hope this makes some sense....
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 977
Joined: Oct 2008
Reputation: 10
Post: #7
@ Memphiz,

should I trac ticket this one?

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,904
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #8
what exactly?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 977
Joined: Oct 2008
Reputation: 10
Post: #9
(2012-07-31 22:08)Memphiz Wrote:  what exactly?

The issue of new added movies not showing up in recently added (due to the fact that the ctime/mtime can be older when you first add it and thats probably why it doesn't show up) so an extra check is needed to see if the movie it's scanning is already in the database or not and then add it to recently added list.

@memphiz

maybe a bit more clear then the post above.

(2012-07-29 15:24)Jester Wrote:  So, I read through some stuff (thanks Martijn) is seems there is either logic missing or a bug .

if you create a new folder (so today's date/time) and put a new movie (new is relative, it's not in your database, but can be a movie from say 2001) in the folder, with a mtime/ctime of say 2009 it will not show up in recently added, which is wrong as it is recently added (just now, today) but the due to mtime/ctime is will not show up, so it's missing a check to see if the file is in the database, if not/new then it needs to be added to the recently added list which it currently isn't doing

Also montellese statement he made here and copied below explains why it works fine for tv shows:

Quote:It didn't make it into Eden but it will be available in the next release by default: ea3835e1c14f530b15cb. Thse changes use the video files modification date (or in case of tvshows the directories creation date) and stores that into a field named dateAdded in the database. That field is then used for sorting by Date Added and for things like Recently Added etc.

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
(This post was last modified: 2012-08-01 08:29 by Jester.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,904
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #10
You should bring this to the developmentthread of this feature so that Montellese (who did work on that) has a chance to give hints. Imho it exactly does what all the users who made this feature happen demanded.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Post Reply