Jump to content

Searching for items based on a path


Recommended Posts

Posted

Hi,

I'm on 4.10.0.20 (docker, linux) and i always used /emby/Items?Recursive=true&api_key=<apikey>&Fields=Path&Path=<encodeURIComponent(movie folder)> to find the movie within this particular folder. Now this isn't working anymore. Only using the full movie path works, so with the movie file included. Is this intentional? Or did something change ?

Thanks 

Posted

HI, what makes you think it isn't working?

But having said that I don't think we've ever tested this from the api. This has always been more for internal use. obviously you need to supply an exact match for the folder based on how it is setup in emby library setup.

fvboegeld
Posted (edited)

Well.. 

When using the API swagger site with the following tv show parameters :

  • Recursive : true
  • Path : /media/tv/Magnum P.I/Season 1

I get the following response

{
  "Items": [
    {
      "Name": "Season 1",
      "ServerId": "<redacted>",
      "Id": "14347",
      "IndexNumber": 1,
      "IsFolder": true,
      "Type": "Season",
      "ParentLogoItemId": "1762",
      "ParentBackdropItemId": "1762",
      "ParentBackdropImageTags": [
        "bfea3603d15c7b22cec7b3169514a80d_638832047166162440",
        "ee666978cd2943638b0b34f318575c53_638881761922356646"
      ],
      "SeriesName": "Magnum P.I.",
      "SeriesId": "1762",
      "SeriesPrimaryImageTag": "ab120df05d5455567639a47a9482968c_638834038680845685",
      "ImageTags": {
        "Primary": "9157bbf92f067ac0e421d56c43292be5_638832047160334594"
      },
      "BackdropImageTags": [],
      "ParentLogoImageTag": "6b4e5d2f1caedbb97cfdfbde43f28227_638832047166162409",
      "ParentThumbItemId": "1762",
      "ParentThumbImageTag": "7d2278ac1068555d02bb50ebe894f923_638832047166163687"
    }
  ],
  "TotalRecordCount": 1
}

Which is correct and working.

 

 

For movies this used to work with for example the following parameters

  • Recursive : true
  • Path : /media/movies/Queen Rock Montreal & Live Aid (2007)

But now I receive the following response

{
  "Items": [],
  "TotalRecordCount": 0
}

Which is incorrect as the folder does exist and has files in it and matched in Emby

Before it would return the movie(s) details mapped to this folder.

This was working until some time ago. I'm using this in an automation script to refresh Emby based on the path and not on the full path+filename.)

I could always do the mapping on tmdb or imdb identifier but this was an easier way to do this.

Thanks

Edited by fvboegeld

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