ginjaninja 573 Posted December 20, 2022 Posted December 20, 2022 i would like to get the tags for an id and post (add/remove) tags for an id. (testing on 4.8.0.21) what endpoints/fields should i use please? /metadataeditor returns not much useful, authenticated with apikey, i presume tags are system specific not user specific?
Cheesegeezer 3102 Posted December 20, 2022 Posted December 20, 2022 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) what endpoints/fields should i use please? /metadataeditor returns not much useful, authenticated with apikey, i presume tags are system specific not user specific? 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 573 Posted December 20, 2022 Author Posted December 20, 2022 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 3102 Posted December 20, 2022 Posted December 20, 2022 1 minute ago, ginjaninja said: thanks, thought i tried field=tags ...i think this has got me over the hump excellent stuff... happy coding
neik 870 Posted December 21, 2022 Posted December 21, 2022 Is it also possible to add tags via API or just to list them?
Luke 40076 Posted December 21, 2022 Posted December 21, 2022 1 hour ago, neik said: Is it also possible to add tags via API or just to list them? Yes it is.
Happy2Play 9441 Posted December 21, 2022 Posted December 21, 2022 3 hours ago, neik said: Is it also possible to add tags via API or just to list them? See here
Killface69 70 Posted November 22, 2024 Posted November 22, 2024 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?
Luke 40076 Posted November 23, 2024 Posted November 23, 2024 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 70 Posted November 23, 2024 Posted November 23, 2024 (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 November 23, 2024 by Killface69
ginjaninja 573 Posted November 24, 2024 Author Posted November 24, 2024 (edited) working for me with fields=tags (on 4.9)...tags definitely present? Edited November 24, 2024 by ginjaninja
Luke 40076 Posted November 24, 2024 Posted November 24, 2024 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 70 Posted November 24, 2024 Posted November 24, 2024 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.
Luke 40076 Posted November 25, 2024 Posted November 25, 2024 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 70 Posted November 25, 2024 Posted November 25, 2024 I must have missed someting before, working now as intended. Thank you! 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now