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

Jungle Jim, it's uses like you and moderators like Happy2Play and GrimReaper that have contributed so much to this tool.

Thank You, Vic

Link to comment
Share on other sites

VicMoore

The latest code is attached below.  Nothing major changed, just a bug fix.

vic

tool_2.1f.zip

Edited by VicMoore
Link to comment
Share on other sites

Eigeplackter

Is it correct, after adding tags that emby is rescanning those files as if they were brand new ?

Tagged to whole NCIS Collection and now emby is quite busy with re-scanning the intros.

Quote

2023-01-08 16:03:53.773 Info App: Best title sequence for /volume1/video/Serien/Navy CIS (2003)/Season 11/Navy CIS - S11E22 - Blue.mkv is 00:00:54.4776119 - 00:01:22.4626865. Confidence: 0,91

 

Other improvement might be to show, if the tool is frozen or still processing the tagging. As this screens makes me wonder sometimes, when I add tags:

 

image.thumb.png.cde81ae072583686b4028b061349b863.png

Link to comment
Share on other sites

VicMoore

Eigeplackter,  you now have a progress bar on bulk saves. The code is below. Test it out. I did just a quick test.

Thanks for pointing this deficiency out, vic

tool_2.1g.zip

Link to comment
Share on other sites

Eigeplackter

Stress test running, but now I know what's happening. Nice job, I really like it:

 

image.png.22dcf8a12cdb80b3353098582732386a.png

 

Would it be possible to refresh the results count ? Not in the bulk job, generally.

When I filter in this special playlist for tag=false, it shows me some entries, but at the top it still displays the unfiltered count.

 

 

Just me thinking about use cases ... start ignoring me, if I pester too much 😉

 

 

 

Link to comment
Share on other sites

Eigeplackter

@VicMoore

Sorry but stress test failed, can the tool run into a timeout ?

Just came back and let script run while I was away, but the bar is still at 22% as it was 2 hrs ago.

I'll let it run over night, just to make sure, but there seems to be a limitating factor somehow.

Link to comment
Share on other sites

VicMoore

OK, I will figure out what is wrong. Could you press F12 to bring up the browser console and see if you see any errors?

Don't worry about === Error  SyntaxError: Unexpected end of JSON input

 

Vic

Link to comment
Share on other sites

Eigeplackter

Stops pretty early as it seems:

 

image.thumb.png.dd8b60a729c1c7add67f493a33299759.png

 

image.thumb.png.adfd2782de097cfcd818cdea0a1e389c.png

And at 22% it stops again, displaying this:

image.thumb.png.5dfb6de1e7034704c5f55577080ab324.png

6 problems:

Quote
    1.  A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

      To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.

      Note that for performance reasons, only the first access to one of the properties is shown.

    2. BETROFFENE RESSOURCEN
      1. 1 Quelle
        1. hls.js@latest:1
      •  
        Weitere Informationen: Verringerung der User-Agent-Strings
  1.  
    5
    Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
    1. Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.

      Resolve this issue by updating the attributes of the cookie:

      • Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
      • Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests.
    2. BETROFFENE RESSOURCEN
      1. 5 Cookies
      •  
        Weitere Informationen: Erläuterungen zu SameSite-Cookies

 

 

Link to comment
Share on other sites

22 hours ago, Eigeplackter said:

@VicMoore

Sorry but stress test failed, can the tool run into a timeout ?

Just came back and let script run while I was away, but the bar is still at 22% as it was 2 hrs ago.

I'll let it run over night, just to make sure, but there seems to be a limitating factor somehow.

Does the stress test tool have anything to do with how you will actually use this app?

Link to comment
Share on other sites

Eigeplackter

Yup, I like add lots of tags kinda regulary.

CBS is „a monster“ but there are more i.e. Walt Disney with nearly 800, Netflix 750, so on and on.

  • Like 1
Link to comment
Share on other sites

VicMoore

WOW Eigeplackter...  I have never encountered these errors before.  I will try to duplicate what's happening by adding a tag to several thousand media items. 

Is it possible that you maxed out your resources on your chrome browser?

Vic

Edited by VicMoore
Link to comment
Share on other sites

VicMoore

I completely revamped the Collection and Playlist code. While in a playlist or Collection you can remove items directly. While in a media folder you can create a new collection or playlist or add selected items to an existing playlist or collection.

Vic

 

tool_2.2.zip

Edited by VicMoore
  • Like 1
Link to comment
Share on other sites

Eigeplackter
7 hours ago, VicMoore said:

WOW Eigeplackter...  I have never encountered these errors before.  I will try to duplicate what's happening by adding a tag to several thousand media items. 

Is it possible that you maxed out your resources on your chrome browser?

Vic

I cannot follow you, what do you mean by that and how to check ?

Link to comment
Share on other sites

On 12/20/2021 at 11:34 AM, neik said:

Hi Vic,

just had a look at the swagger API and found the endpoint "/Items/{Id}/PlaybackInfo" within "MediaInfoService" which gives you an json-output like this:

        {
          "Codec": "dts",
          "Language": "eng",
          "TimeBase": "1/1000",
          "DisplayTitle": "English DTS 5.1",
          "DisplayLanguage": "English",
          "IsInterlaced": false,
          "ChannelLayout": "5.1",
          "BitRate": 1536000,
          "Channels": 6,
          "SampleRate": 48000,
          "IsDefault": false,
          "IsForced": false,
          "Profile": "DTS",
          "Type": "Audio",
          "Index": 2,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "AttachmentSize": 0
        },
        {
          "Codec": "DVDSUB",
          "Language": "ger",
          "TimeBase": "1/1000",
          "DisplayTitle": "German (DVDSUB)",
          "DisplayLanguage": "German",
          "IsInterlaced": false,
          "IsDefault": false,
          "IsForced": false,
          "Height": 1080,
          "Width": 1920,
          "Type": "Subtitle",
          "Index": 3,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "AttachmentSize": 0

Maybe helpful for the audio/sub language filter?

 

On 12/29/2021 at 9:47 AM, neik said:

Have you had a look at it?
Have you been able to parse some information out of it to filter on that?

Vic, first of all congratulations to development of the app.
The many users speak for the quality of it.

Is it meanwhile possible filter on subtitle/audio language?
Just had a quick look at the version on post #1 and couldn't find anything but maybe I'm just looking the wrong way.

Link to comment
Share on other sites

VicMoore

Hello Neik...

I use that API often in the tool when I play videos and it could be used to select items based on language. This endpoint would have to be called for each item. I will look into it.

Today I plan to add search for Artists, Albums, and Subtitle Codecs

Vic

  • Like 1
Link to comment
Share on other sites

VicMoore

Good morning Eigeplackter

Sorry for the confusing English.  I believe that the problem you experienced was cause by the browser running out of resources, probably memory.  Try the bulk save again, but with fewer items selected.  I have tried several bulk saves with a hundred or so items selected and everything worked fine.  I will continue looking for a bug.

VIc

Link to comment
Share on other sites

Eigeplackter
1 hour ago, VicMoore said:

Good morning Eigeplackter

Sorry for the confusing English.  I believe that the problem you experienced was cause by the browser running out of resources, probably memory.  Try the bulk save again, but with fewer items selected.  I have tried several bulk saves with a hundred or so items selected and everything worked fine.  I will continue looking for a bug.

VIc

Good morning Vic

I tried Netflix, "just"  655 files_

image.thumb.png.b1542ccce719f8a649b6965ade47dde4.png

And it stoped at like 300-350 files, but definitely no RAM shortage.

image.thumb.png.267c70857704bd0a5100b6e2e32f4c52.png

 

But at least the status bar went through to 100%, even though not sucessfully.

Edited by Eigeplackter
Link to comment
Share on other sites

VicMoore

Hello Eigeplackter

I just tried a bulk edit on 700 movies and it worked OK.  When you bulk edit and it fails, what are you changing?  For example, are you adding tags, locks, or favorites?

Vic

Link to comment
Share on other sites

Eigeplackter

Just tags so far, usually a max of 2 per item.

Nothing else. Oh and I'm doing it via Playlists, maybe that's helpful.

Link to comment
Share on other sites

VicMoore
9 minutes ago, Eigeplackter said:

Just tags so far, usually a max of 2 per item.

Nothing else. Oh and I'm doing it via Playlists, maybe that's helpful.

What does it mean "doing it via Playlists?"

Vic

Link to comment
Share on other sites

Eigeplackter

In the tool I don‘t enter movies, tvshows or collections. I go to playlists and choose one, as items are grouped there already for the desired tag.

 

 

Link to comment
Share on other sites

VicMoore

Try bulk adding tags to movies to see if that works.  I will try using playlists.  By the way, I changed all of the playlist code in the latest code.

Vic

Link to comment
Share on other sites

VicMoore

I just bulk edited a playlist with 700 movies and added a new tag to each. It worked OK.

Vic

 

I am using the attached code.

tool_2.2.zip

Edited by VicMoore
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...