Jump to content

Incorrect Total Record Count listing?


chessdragon136

Recommended Posts

chessdragon136

Hi All,

 

I am filtering on PlayCount & DatePlayed for Audio items using the below url

 

192.168.1.111:8096/mediabrowser/Users/4b4c128121aa642086bb225659a7d471/Items?format=json&SortBy=DatePlayed&SortOrder=Descending&IncludeItemTypes=Audio&Limit=10&Recursive=true&Filters=IsPlayed&api_key=6bc5322a69c243df90f7a90532a7533b

 

The URL works and returns 10 items, but the total record count lists 24 (and my json object thinks there are 24 objects as well)

 

Am I missing something? 

 

Json of URL: 

 

{"Items":[{"Name":"She's Got Issues","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"0edd35179d4baad3fa5cba2b94c52405","RunTimeTicks":2285770000,"PlayAccess":"Full","ProductionYear":1998,"IndexNumber":7,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":4,"IsFavorite":false,"LastPlayedDate":"2015-03-28T18:59:12.0066989Z","Played":true,"Key":"29f284c1-4ab9-5ca9-2ca8-717ff75424d40001 - 0007 - "},"Artists":["The Offspring"],"ArtistItems":[{"Name":"The Offspring","Id":"2aaffbf6c72705df4d7f1f4f3d61bf3b"}],"Album":"Americana","AlbumId":"29f284c14ab95ca92ca8717ff75424d4","AlbumPrimaryImageTag":"a40d9718e2ac03f661274cc35b05177e","AlbumArtist":"The Offspring","AlbumArtists":[{"Name":"The Offspring","Id":"2aaffbf6c72705df4d7f1f4f3d61bf3b"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"Don't Tell Me","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"98722ae8068e18312e6f7433f4614351","RunTimeTicks":2041030000,"PlayAccess":"Full","ProductionYear":2004,"IndexNumber":3,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":1,"IsFavorite":false,"LastPlayedDate":"2015-03-22T18:29:27.4033049Z","Played":true,"Key":"078c5138-c34d-02de-2a09-9b4cedd81e080001 - 0003 - "},"Artists":["Avril Lavigne"],"ArtistItems":[{"Name":"Avril Lavigne","Id":"4eb7332aeae9c215d198dfad6060a44b"}],"Album":"Under My Skin","AlbumId":"078c5138c34d02de2a099b4cedd81e08","AlbumPrimaryImageTag":"c0f2e4a44e8350d84bd32ddbea63ccde","AlbumArtist":"Avril Lavigne","AlbumArtists":[{"Name":"Avril Lavigne","Id":"4eb7332aeae9c215d198dfad6060a44b"}],"SupportsPlaylists":true,"ImageTags":{"Primary":"7d5143d1b041f049cb7d561999298064"},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"All We Know","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"d43cd895d5d176d6623578004e68582f","RunTimeTicks":1940960000,"PlayAccess":"Full","ProductionYear":2005,"IndexNumber":1,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":1,"IsFavorite":false,"LastPlayedDate":"2015-03-22T18:28:16.8568281Z","Played":true,"Key":"593f5eea-1ec7-b164-b37e-607cee04870b0001 - 0001 - "},"Artists":["Paramore"],"ArtistItems":[{"Name":"Paramore","Id":"1c48b103f369dbc7c10408abb8211f4f"}],"Album":"All We Know Is Falling","AlbumId":"593f5eea1ec7b164b37e607cee04870b","AlbumPrimaryImageTag":"a3b2fda24a4bc2e3397ab1f40dcf0611","AlbumArtist":"Paramore","AlbumArtists":[{"Name":"Paramore","Id":"1c48b103f369dbc7c10408abb8211f4f"}],"SupportsPlaylists":true,"ImageTags":{"Primary":"91c3dcbb238f2c8ff6d398ee3fea8474"},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"Rhythm N Flow","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"58ec05bf0c8a76cc509a6b258e8e7cad","RunTimeTicks":1883430000,"PlayAccess":"Full","ProductionYear":2010,"IndexNumber":8,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":1,"IsFavorite":false,"LastPlayedDate":"2015-02-10T18:25:20.4628307Z","Played":true,"Key":"9e9c9067-6751-ee8b-32ee-a0b7718afdf10001 - 0008 - "},"Artists":["Aggro Santos"],"ArtistItems":[{"Name":"Aggro Santos","Id":"1a8b0ba60a8e4bf91b29787611976a96"}],"Album":"Massive R&B: Spring 2010","AlbumId":"9e9c90676751ee8b32eea0b7718afdf1","AlbumPrimaryImageTag":"947c629399def6da9c04badf8fb20d44","AlbumArtist":"Various Artists","AlbumArtists":[{"Name":"Various Artists","Id":"af2b40bf1f59af6e2005d38797c54d07"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"For a Pessimist I'm Pretty Optimistic","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"aba0c1e0f5f9f0eec6bcb99d72189e25","PremiereDate":"2007-06-11T23:00:00.0000000Z","RunTimeTicks":2283360000,"PlayAccess":"Full","ProductionYear":2007,"IndexNumber":1,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":6,"IsFavorite":false,"LastPlayedDate":"2015-02-04T14:56:23.5741741Z","Played":true,"Key":"6c4a8105-f33e-30d1-407a-abc03e0fd6c50001 - 0001 - "},"Artists":["Paramore"],"ArtistItems":[{"Name":"Paramore","Id":"1c48b103f369dbc7c10408abb8211f4f"}],"Album":"Riot!","AlbumId":"6c4a8105f33e30d1407aabc03e0fd6c5","AlbumPrimaryImageTag":"ab4b94d854d173b0bbf471398353b08c","AlbumArtist":"Paramore","AlbumArtists":[{"Name":"Paramore","Id":"1c48b103f369dbc7c10408abb8211f4f"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"Dear Agony","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"6753eb407f88ab1ea78028a6802aa434","RunTimeTicks":2582730000,"PlayAccess":"Full","ProductionYear":2009,"IndexNumber":9,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":6,"IsFavorite":false,"LastPlayedDate":"2015-01-29T17:10:00.6620355Z","Played":true,"Key":"46cc91fe-c43f-3b7f-2527-a6e80dc841c20001 - 0009 - "},"Artists":["Breaking Benjamin"],"ArtistItems":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"Album":"Dear Agony","AlbumId":"46cc91fec43f3b7f2527a6e80dc841c2","AlbumPrimaryImageTag":"d18744af3d9a1e3278c1013432dbf514","AlbumArtist":"Breaking Benjamin","AlbumArtists":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"SupportsPlaylists":true,"ImageTags":{"Primary":"3227c8460433dcf172fa416fb06a8519"},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"Into the Nothing","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"0943aff3dfed0f52ff437336e22055d0","RunTimeTicks":2239480000,"PlayAccess":"Full","ProductionYear":2009,"IndexNumber":10,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":1,"IsFavorite":false,"LastPlayedDate":"2015-01-29T14:59:07.5735949Z","Played":true,"Key":"46cc91fe-c43f-3b7f-2527-a6e80dc841c20001 - 0010 - "},"Artists":["Breaking Benjamin"],"ArtistItems":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"Album":"Dear Agony","AlbumId":"46cc91fec43f3b7f2527a6e80dc841c2","AlbumPrimaryImageTag":"d18744af3d9a1e3278c1013432dbf514","AlbumArtist":"Breaking Benjamin","AlbumArtists":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"SupportsPlaylists":true,"ImageTags":{"Primary":"9ced7274e60b030a627ae55455213320"},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"The Diary of Jane","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"061f1f7bd82bf494c5387268027bbc90","RunTimeTicks":1987920000,"PlayAccess":"Full","ProductionYear":2006,"IndexNumber":2,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":4,"IsFavorite":false,"LastPlayedDate":"2015-01-29T14:53:59.7794422Z","Played":true,"Key":"d680048a-8c08-aca9-d66a-cc70eb9d03c30001 - 0002 - "},"Artists":["Breaking Benjamin"],"ArtistItems":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"Album":"Phobia","AlbumId":"d680048a8c08aca9d66acc70eb9d03c3","AlbumPrimaryImageTag":"1074dcd3e17c2e8d865f8ed65aca86e8","AlbumArtist":"Breaking Benjamin","AlbumArtists":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"Intro","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"9810b6047c3e6d998a06d808ccb151fa","RunTimeTicks":734560000,"PlayAccess":"Full","ProductionYear":2006,"IndexNumber":1,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":3,"IsFavorite":false,"LastPlayedDate":"2015-01-29T14:52:42.1467902Z","Played":true,"Key":"d680048a-8c08-aca9-d66a-cc70eb9d03c30001 - 0001 - "},"Artists":["Breaking Benjamin"],"ArtistItems":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"Album":"Phobia","AlbumId":"d680048a8c08aca9d66acc70eb9d03c3","AlbumPrimaryImageTag":"1074dcd3e17c2e8d865f8ed65aca86e8","AlbumArtist":"Breaking Benjamin","AlbumArtists":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"},{"Name":"You","ServerId":"c9b3b23109d530b3cd4834c1c4e6db83","Id":"5892f1c2f7fd363921b157a04d0c083b","RunTimeTicks":2019000000,"PlayAccess":"Full","ProductionYear":2006,"IndexNumber":4,"ParentIndexNumber":1,"IsFolder":false,"Type":"Audio","UserData":{"PlaybackPositionTicks":0,"PlayCount":1,"IsFavorite":false,"LastPlayedDate":"2015-01-29T11:40:55.4834295Z","Played":true,"Key":"d680048a-8c08-aca9-d66a-cc70eb9d03c30001 - 0004 - "},"Artists":["Breaking Benjamin"],"ArtistItems":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"Album":"Phobia","AlbumId":"d680048a8c08aca9d66acc70eb9d03c3","AlbumPrimaryImageTag":"1074dcd3e17c2e8d865f8ed65aca86e8","AlbumArtist":"Breaking Benjamin","AlbumArtists":[{"Name":"Breaking Benjamin","Id":"b7aa065d42e60e85cfbc6b37dedd5b2a"}],"SupportsPlaylists":true,"ImageTags":{},"BackdropImageTags":[],"LocationType":"FileSystem","MediaType":"Audio"}],"TotalRecordCount":24}

Edited by chessdragon136
Link to comment
Share on other sites

what exactly is the issue? the total of 24 says there are 14 more records you can query for in addition to the 10 you got back

Link to comment
Share on other sites

chessdragon136

My own idiocy - Sorry.

 

A while back i implemented a paged loading effect so only X items would load on large datasets - however, when combining with a limit which is smaller than the total record count it fails, reporting my json object size incorrectly as the total record count and not the item count.I had thought that the server was creating false entries. 

 

I think im going to sleep.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...