Jump to content

Recommended Posts

ginjaninja
Posted

i would like to get the tags for an id and post (add/remove) tags for an id. (testing on 4.8.0.21)

image.png.e975bfd4808e433b4a8ea5934da6811b.png

what endpoints/fields should i use please?

/metadataeditor returns not much useful, authenticated with apikey, i presume tags are system specific not user specific?

image.thumb.png.b5e40ebdda3e951f2a9b4d59c85a70a3.png

 

Cheesegeezer
Posted
16 minutes ago, ginjaninja said:

i would like to get the tags for an id and post (add/remove) tags for an id. (testing on 4.8.0.21)

image.png.e975bfd4808e433b4a8ea5934da6811b.png

what endpoints/fields should i use please?

/metadataeditor returns not much useful, authenticated with apikey, i presume tags are system specific not user specific?

image.thumb.png.b5e40ebdda3e951f2a9b4d59c85a70a3.png

 

Hi fella, unfortunately i use the C# interfaces.  but they are item specific and not user specific.

let me see if i have any endpoints 

 

This works

http://localhost:8096/emby/Items?Fields=Tags&Ids=12000&api_key={AuthToken}

 

returns

{
  "Items": [
    {
      "Name": "Avengers: Infinity War",
      "ServerId": "f7aa59c6fe9448d0a15d7dfb977ba6c6",
      "Id": "12000",
      "RunTimeTicks": 4428666670,
      "IsFolder": false,
      "Type": "Movie",
      "TagItems": [
        {
          "Name": "Avengers",
          "Id": 37881
        },
        {
          "Name": "MCU",
          "Id": 37882
        }
      ],
      "ImageTags": {
        "Primary": "01b7def2d68f25292394ee3251e4d7cd",
        "Logo": "ad7c9611e943846d0193bb6d8c7d1146",
        "Thumb": "3025177bd27cac67ec1bb85937002b0d",
        "Art": "79c924093688bf290bc6d644e8be0c32",
        "Banner": "6f80e94636303e95f87a789b23473076",
        "Disc": "3e772dbe10ad24ddc9e04e01b5c934a4"
      },
      "BackdropImageTags": [
        "0a867961b3b56c09dbc3a76d8b5e23f8",
        "15afaf6ce4faa3b96ffa66703544b5d2",
        "181fc241b7e72f5454442a2489b8c7dc"
      ],
      "MediaType": "Video"
    }
  ],
  "TotalRecordCount": 1
}

 

ginjaninja
Posted
5 minutes ago, Cheesegeezer said:

Hi fella, unfortunately i use the C# interfaces.  but they are item specific and not user specific.

let me see if i have any endpoints 

 

This works

http://localhost:8096/emby/Items?Fields=Tags&Ids=12000&api_key={AuthToken}

 

returns

{
  "Items": [
    {
      "Name": "Avengers: Infinity War",
      "ServerId": "f7aa59c6fe9448d0a15d7dfb977ba6c6",
      "Id": "12000",
      "RunTimeTicks": 4428666670,
      "IsFolder": false,
      "Type": "Movie",
      "TagItems": [
        {
          "Name": "Avengers",
          "Id": 37881
        },
        {
          "Name": "MCU",
          "Id": 37882
        }
      ],
      "ImageTags": {
        "Primary": "01b7def2d68f25292394ee3251e4d7cd",
        "Logo": "ad7c9611e943846d0193bb6d8c7d1146",
        "Thumb": "3025177bd27cac67ec1bb85937002b0d",
        "Art": "79c924093688bf290bc6d644e8be0c32",
        "Banner": "6f80e94636303e95f87a789b23473076",
        "Disc": "3e772dbe10ad24ddc9e04e01b5c934a4"
      },
      "BackdropImageTags": [
        "0a867961b3b56c09dbc3a76d8b5e23f8",
        "15afaf6ce4faa3b96ffa66703544b5d2",
        "181fc241b7e72f5454442a2489b8c7dc"
      ],
      "MediaType": "Video"
    }
  ],
  "TotalRecordCount": 1
}

 

thanks, thought i tried field=tags ...i think this has got me over the hump

Cheesegeezer
Posted
1 minute ago, ginjaninja said:

thanks, thought i tried field=tags ...i think this has got me over the hump

excellent stuff... happy coding :D 

Posted

Is it also possible to add tags via API or just to list them?

Posted
1 hour ago, neik said:

Is it also possible to add tags via API or just to list them?

Yes it is.

Happy2Play
Posted
3 hours ago, neik said:

Is it also possible to add tags via API or just to list them?

See here

 

  • 1 year later...
Killface69
Posted

I'm sorry, but I have to hijack this post.

I want to work with tags on boxsets and added some tags in the web interface.
I've added the 'Tags' to the request, but my output looks like this, with always empty TagItems:

{'Items': [{'Name': '- Academy Awards: Best Actress -', 'ServerId': '37de8e11ee0748bea8d2080a13984949', 'Id': '1763467', 'IsFolder': True, 'Type': 'BoxSet', 'TagItems': [], 'ImageTags': {'Primary': '79d37961cb2311c4dcda0abf906fdd78'}, 'BackdropImageTags': []}], 'TotalRecordCount': 1}

Am I missing somthing? Do I need to be on 4.9.0.0?

Posted
22 hours ago, Killface69 said:

I'm sorry, but I have to hijack this post.

I want to work with tags on boxsets and added some tags in the web interface.
I've added the 'Tags' to the request, but my output looks like this, with always empty TagItems:

{'Items': [{'Name': '- Academy Awards: Best Actress -', 'ServerId': '37de8e11ee0748bea8d2080a13984949', 'Id': '1763467', 'IsFolder': True, 'Type': 'BoxSet', 'TagItems': [], 'ImageTags': {'Primary': '79d37961cb2311c4dcda0abf906fdd78'}, 'BackdropImageTags': []}], 'TotalRecordCount': 1}

Am I missing somthing? Do I need to be on 4.9.0.0?

What exactly have you done?

Killface69
Posted (edited)
30 minutes ago, Luke said:

What exactly have you done?

Nothing special. I was using the Swagger API on collections and only got empty TagItem lists.

Edited by Killface69
ginjaninja
Posted (edited)

working for me with fields=tags (on 4.9)...tags definitely present?

 

image.thumb.png.62361841dd0b44c8d2c5645b4d7edbc0.png

image.thumb.png.ff37f73e3db8566a871ad50d32fd9896.png

Edited by ginjaninja
Posted
18 hours ago, Killface69 said:

Nothing special. I was using the Swagger API on collections and only got empty TagItem lists.

Using it how?

Killface69
Posted

I was using a Python script and the API.

I‘ve sent a request to the API for a collection item, but the TagItems appeared empty, as posted.

I might try again later at a later time, thank you.

Posted
7 hours ago, Killface69 said:

I was using a Python script and the API.

I‘ve sent a request to the API for a collection item, but the TagItems appeared empty, as posted.

I might try again later at a later time, thank you.

Did you do what ginjaninja suggested?

Killface69
Posted

I must have missed someting before, working now as intended.

Thank you!

 

  • Thanks 1

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