Jump to content

GetSearchResults - Long Time issue - sometimes (often) runs twice


Recommended Posts

mickle026
Posted (edited)

Can I ask why this often gets called twice when the user requests it once?

I have noticed this many times, and in one of my plugins I actually cancel duplicate tasks, but why after all this time (a few years) is this still often getting called twice?

At first I was wondering if it was if the user clicked identfy in the Gui having filled in the Name dialog, before the Provider Ids Text boxes load, but its not.  It still does it even if the user waits for the dialog to fully load.

  • Is it something in Emby, or maybe because results wernt returned fast enough?
  • Is there a timeout before it gets recalled?

I log my plugins and can see this happening, sometimes the second task runs before the first is finished, causing the log to wriite interleaved into the first ones text.

The functionallity still works just fine, but its annoying..as the results can reload or even just blank out (return nothing).

Edited by mickle026
Posted

HI, it doesn't get called twice. As far as how long they take, that will largely be dictated by the response time of the metadata providers.

 

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