Jump to content

How to Manage Tags


ginjaninja

Recommended Posts

ginjaninja

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

 

Link to comment
Share on other sites

Cheesegeezer
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
}

 

Link to comment
Share on other sites

ginjaninja
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

Link to comment
Share on other sites

Cheesegeezer
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 

Link to comment
Share on other sites

Happy2Play
3 hours ago, neik said:

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

See here

 

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