Jump to content

[Server API] ItemsService return multi-version in 4.2.0.40


xkvnn
Go to solution Solved by Luke,

Recommended Posts

With version 4.2.0.40, ItemsService always returns items with multi-version.

http://localhost:8096/emby/Items?Limit=10&Recursive=true&SearchTerm=The%20Avengers&Fields=Path&IncludeItemTypes=Movie
{
    "Items": [
        {
            "Name": "The Avengers",
            "Id": "321985",
            "Path": "D:\\Movies\\A\\Avengers Collection\\The Avengers (2012)\\The Avengers (2012) - 1080p - TheAvengers2012ViE1080pBluRayDTSx264-EbP_HDAT.mkv",
            "RunTimeTicks": 85749022720,
            "IsFolder": false,
            "Type": "Movie",
            "ImageTags": {
                "Primary": "7aab3f714195abb9aee1511bbd93d1d5",
                "Logo": "65fe446401d108a3e8e824e560bdea75",
                "Thumb": "c112df82085a266d79fc50b2f553e94b"
            },
            "BackdropImageTags": [],
            "MediaType": "Video"
        },
        {
            "Name": "The Avengers",
            "Id": "382345",
            "Path": "D:\\Movies\\A\\Avengers Collection\\The Avengers (2012)\\The Avengers (2012) - 4k - The.Avengers.2012.UHD.BluRay.2160p.TrueHD.Atmos.7.1.HEVC.REMUX-FraMeSToR.mkv",
            "RunTimeTicks": 85757460000,
            "IsFolder": false,
            "Type": "Movie",
            "ImageTags": {
                "Primary": "46744fb9ce3f35b3bbea5fc38d6cbcb1",
                "Logo": "4b93cdb5b97021b1b4b978436e4f5e9e",
                "Thumb": "f4fd02008e1fc08e36e69b232c2b5b76"
            },
            "BackdropImageTags": [
                "55ab0283bf8f13edaa2f4aa344c7c1ca"
            ],
            "MediaType": "Video"
        }
    ],
    "TotalRecordCount": 0
}

I also checked API for Web UI, and them return correctly with a single item.

http://localhost:8096/emby/Users/userId/Items?searchTerm=The%20Avengers&IncludeItemTypes=Movie&Recursive=true
{
    "Items": [
        {
            "Name": "The Avengers",
            "Id": "321985",
            "RunTimeTicks": 85749022720,
            "IsFolder": false,
            "Type": "Movie",
            "UserData": {
                "PlaybackPositionTicks": 0,
                "PlayCount": 1,
                "IsFavorite": false,
                "LastPlayedDate": "2019-02-20T17:45:36.0000000+00:00",
                "Played": true
            },
            "ImageTags": {
                "Primary": "7aab3f714195abb9aee1511bbd93d1d5",
                "Logo": "65fe446401d108a3e8e824e560bdea75",
                "Thumb": "c112df82085a266d79fc50b2f553e94b"
            },
            "BackdropImageTags": [],
            "MediaType": "Video"
        }
    ],
    "TotalRecordCount": 1
}

I want API for the server return items without multi-version, like Web UI. Does it have an option to disable, or this is a bug?

Link to comment
Share on other sites

We can try to support this for user-less queries in the future. It's just hard to make changes to that without affecting other things.

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...