Jump to content

A tool for tagging Emby content


VicMoore
GrimReaper
Message added by GrimReaper,

For Plugin version of the tool, go to:

 

 

Recommended Posts

VicMoore

In your case where the video content is on the Internet, Emby has no control of that content other than at the "channel" level. The channel itself can be tagged but the shows that compose that channel can't be tagged because that content resides in servers outside of Emby's control.  I don't think this will ever change.  Of course, this is just my opinion. Perhaps someone closer to the Emby developers can comment on this.

Vic

Link to comment
Share on other sites

GokuTradeDevil
5 minutes ago, VicMoore said:

In your case where the video content is on the Internet, Emby has no control of that content other than at the "channel" level. The channel itself can be tagged but the shows that compose that channel can't be tagged because that content resides in servers outside of Emby's control.  I don't think this will ever change.  Of course, this is just my opinion. Perhaps someone closer to the Emby developers can comment on this.

Vic

I opened this thread a long time ago and recently Luke confirmed that will implement that in a future update !

https://emby.media/community/index.php?/topic/96481-live-tv-not-classified-programs-and-channels-in-categories/#comment-1118577

Link to comment
Share on other sites

VicMoore

I have great respect for Luke, but I don't think that he will be able to tag content that is outside the Emby environment. He may be able to create a "black list" of names.  This would quickly become un-manageable. My guess is that Luke was referring to Emby content only.

Vic

  • Like 1
Link to comment
Share on other sites

horstepipe
On 2/21/2022 at 10:03 PM, VicMoore said:

Good morning Horstepipe...

I checked my code and the request to the API was correct. So, I posted a request on the API forum asking if the API was working properly. Luke said the API only returns one result. He further said that He would fix the problem in the next Emby release.

Vic

 

this is now working in beta .25!

This is very excellent, thank you a lot again!

 

Now there is only one optional thing I'd like to figure out. If I feed your tool with 20 IMDB ids, it returns e.g. 17, as 3 movies are not available at Emby server. I'd like to know the unavailable movies. I looked at debug console but didn't find some output about that. Do you have some idea on  how to see which movies are not available?

Edited by horstepipe
Link to comment
Share on other sites

VicMoore

I don't know how to do this. I will try and figure it out.

Question: When you say not available do you want the Ids that had no match?

Vic

Edited by VicMoore
Link to comment
Share on other sites

horstepipe
1 hour ago, VicMoore said:

Question: When you say not available do you want the Ids that had no match

that doesn't really matter. ID, title, whatever...

But that is just an optional thing...

 

Link to comment
Share on other sites

horstepipe

Hey

before I'm messing up something, I'd better ask.

With your help I can easily edit 50 movies now. So I select them and want to add a genre to all of them. So I go to Genres, select "Add Genres to Selected Shows", click on "Add" and add the Genre I want. Then I go up and hit "save". Is that correct?

I'm asking because I'm a little scared that the genres which already belonged to the selected movie (here "Action" Crime" and "Thriller") are being added to the rest of the movies, too. I just want the new genre "Action - Modern Mindless Action" to be added to the movies.

 

emby.PNG

Link to comment
Share on other sites

horstepipe

so I tried it out with just two movies. Unfortunately what I expected happened. All genres from movie A are being added to movie B.

How can I just add one genre to multiple movies and keep the other ones intact?

Link to comment
Share on other sites

MangoMC

Is there a way to filter series when there are files with 4K in the filename inside?

I want to tag all my 4k series with 4k but they are in the same library grouped with the other versions

 

Also for movies it would be great :)

Link to comment
Share on other sites

VicMoore

Horstepipe, I will look into this on Monday.  I thought it actually worked the way that you have suggested that it should work.  I can't work on it today, but I will tomorrow.  Thanks for bringing this to my attention.

 

Vic

Link to comment
Share on other sites

Happy2Play
1 minute ago, VicMoore said:

MangoMc, can you explain more fully what you want me to do?

Vic

Sounds like filtering by video type.

From web client filters on Episodes tab.  Have not looked at the query in log.

image.png.9ac8064a0f3def9d08dcdb1a47408254.png

Link to comment
Share on other sites

Happy2Play

@VicMoore looks like "&Is4K=true"

ttp://‌‍‍homeserver‌:8096/emby/Users/{userid}/Items?SortBy=ProductionYear,PremiereDate,SortName&SortOrder=Descending&IncludeItemTypes=Episode&Recursive=true&Fields=BasicSyncInfo,CanDelete,Container,PrimaryImageAspectRatio&ImageTypeLimit=1&EnableImageTypes=Primary,Backdrop,Thumb&StartIndex=0&ParentId=6c2a057148b4d7c20a207c789aba6d07&ExcludeLocationTypes=Virtual&Is4K=true&Limit=1000

 

Edited by Happy2Play
Link to comment
Share on other sites

VicMoore

I should be able to do that. Thanks Happy2Play.  I will get it done tomorrow.

Vic

Edited by VicMoore
Link to comment
Share on other sites

Happy2Play
3 minutes ago, VicMoore said:

I should be able to do that. Thanks Happy2Play.  I will get it done tomorrow.

Vic

May want to add all the filters as you already have isHD.

Link to comment
Share on other sites

VicMoore

Do you mean all possible filters that are allowed by the API?  That should be possible with only a little effort. 

Vic

Link to comment
Share on other sites

Happy2Play
Just now, VicMoore said:

Do you mean all possible filters that are allowed by the API?  That should be possible with only a little effort. 

Vic

I was just thinking for these types (HD, 4K, SD, 3D).  But may want to wait for additional requests.

Link to comment
Share on other sites

VicMoore

OK, I will do as you say. I am working on it now as I watch TV 🙂  I always appreciate your suggestions and clarifications. Thank you.

Vic

Link to comment
Share on other sites

VicMoore

Horstepipe...  You are right. All of the tags will be copied to all of the selected items. I think what you want is to copy only the added tags across the selected items. Is this true. I think it's a good idea. 

Vic

  • Agree 1
Link to comment
Share on other sites

Happy2Play
25 minutes ago, VicMoore said:

Hello Happy2Play...

I can't find an Is4K or IsSD in the API.  Is this correct?

Vic

Doesn't look like it is actually in the api but adding the query does work in my tests.  Only tested "Is4K", looks like parentid is required.

Example from a specific library.

C:\Windows\System32\curl.exe -X GET "http://localhost:8097/emby/Users/{userid}/Items?Recursive=true&ParentId={parentid}&Is4K=true&api_key={apikey}"  -d ""
Spoiler

{
"Items": [
{
"Name": "Murder on the Orient Express",
"ServerId": "2277016ffccf46fcb2f25cc9e3930701",
"Id": "1714502",
"RunTimeTicks": 674240000,
"IsFolder": false,
"Type": "Movie",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ImageTags": {
"Primary": "01c642bea5f0e07a4acec9f9bd4de045",
"Art": "18c2b020bdabcacd32f027dce5b3af8e",
"Banner": "8d4a037db494e988fc20a074294d5e81",
"Disc": "e929c41b6bd2f569c1065a8b24b63ae2",
"Logo": "2f4f6f69a7f087d81b04ea7ca88b1dee",
"Thumb": "26e4a42128ae1b1b4a64a9bd2e556a0d"
},
"BackdropImageTags": [
"69f4b144fb9c6b2bc455b041208726ce",
"2c95e48200fa59bc54f5a26a5d51c98d",
"d9b67cfec0887aa6ba1b78adad646eea",
"462d970b90f5d9aaa38a6a02a418663a",
"0a5683c812a9413fd4953fc6e39bdeb6",
"da511606ff5464559169b330af4f746e",
"7dea386aff9f438d13cfb559e8033c5e",
"967d2563cc6ac1c5088bae621154a82e"
],
"MediaType": "Video"
},
{
"Name": "The One and Only Ivan",
"ServerId": "2277016ffccf46fcb2f25cc9e3930701",
"Id": "1714520",
"RunTimeTicks": 57144640000,
"IsFolder": false,
"Type": "Movie",
"UserData": {
"PlaybackPositionTicks": 0,
"PlayCount": 0,
"IsFavorite": false,
"Played": false
},
"ImageTags": {
"Primary": "cdace550c67ba2ecffe4d500f621bb66",
"Art": "76cdb2fd80ca7db2653659711df56c8c",
"Banner": "ce51015601f92dd3cc43a7fa714ea834",
"Disc": "0026ca8a15a44b4a16cb74f329001e01",
"Logo": "4ee85035933f4f84ffdc5bbaf4f4eeca",
"Thumb": "131d2be2177412311f92d411f90f785c"
},
"BackdropImageTags": [
"4fcf80743fb11b25180edb519955e7e1",
"c13cff2ea8145be37e952c8c47437c5b",
"094f63a155b585345a32c4bdb869c678",
"aa3dae2b02d105581caa792557583f86",
"371f6bf5924b0a3346a550a03146b074",
"3a90da982f37daddf892157ae768c2cc",
"698be4c560bb9b908cb8f798e3f457e1",
"4c2671f8e2a7f6df80f9eee67b8ed6d9"
],
"MediaType": "Video"
}
],
"TotalRecordCount": 2
}

 

Link to comment
Share on other sites

Happy2Play

Testing "IsSD=true" appears to return more than just Video as I got People also but refining with MediaType=Video fixed that.  Users will just have to refine their queries in some conditions.

Link to comment
Share on other sites

VicMoore

Well, that didn't work.  I tried VideoTypes=hd and VideoTypes=4k   Neither worked.

Vic

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