INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Very slow Getting movie & TV info  (Read 1413 times)

lboregard

  • Recent member
  • *
  • Posts: 45
Very slow Getting movie & TV info
« on: September 04, 2017, 02:38:07 pm »

Since upgrading to v23, getting movie & tv info for tv shows is extremely slow, it takes 2/3 minutes per episode.

Was any throttling added ?

How can I troubleshoot this ?
Logged

lboregard

  • Recent member
  • *
  • Posts: 45
Re: Very slow Getting movie & TV info
« Reply #1 on: September 04, 2017, 02:58:17 pm »

I checked the log and I'm getting these kind of errors

Code: [Select]
1847672: 7740: Reader: CWinINetReader::DownloadFromHTTPURL: HttpSendRequest error: 12019
1847672: 7740: Reader: CWinINetReader::DownloadFromHTTPURL: Failed (header status code: -1)
1847672: 7740: Reader: CWinINetReader::DownloadFromHTTPURL: Finish (20032 ms)
1847672: 7740: Reader: CWinINetReader::Thread: Finish (20032 ms)
1847672: 9856: Reader: CWinINetReader::Open: ConnectToURL failed, m_bConnectError=true, URL=https://api.thetvdb.com/series/70533/episodes
1847672: 9856: Reader: CWinINetReader::Close: Start
1847672: 9856: Reader: CWinINetReader::Close: Finish (0 ms)
1847672: 9856: Reader: CWinINetReader::Open: Finish (20032 ms)
1847672: 9856: Import: CTheTVDB::GetEpisodeInformation: Finish (20032 ms)

but when I access via a browser I get

Code: [Select]
{
  "Error": "Not authorized"
}

which means I can reach the url.

You're on v1 or v2 of the thetvdb api ?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Very slow Getting movie & TV info
« Reply #2 on: September 04, 2017, 03:16:17 pm »

I haven't imported a TV Show episode in several weeks.  Might be as long as 8 weeks.  So I just cleared the info from some existing episodes and did Get Movie and TV Info.

I can confirm that it is very slow.  Doing it on single episodes frequently requires a retry.  On multiples, it seems to mostly get everything, but not always. 

Brian.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Very slow Getting movie & TV info
« Reply #3 on: September 04, 2017, 04:43:48 pm »

It appears the TheTVDB API is just very slow right now. Even opening their documentation page loads incredibly slowly. Nothing we can really do about external services being slow.
It was fine last week, I still used it then.

MC23 uses the v2 API since v1 is going to be shutdown in a few weeks, and the v2 API is inherently a bit slower then v1 since it requires a few more individual requests, however individual requests are taking way long, so thats not directly related.
If you do a batch lookup of multiple eps in one series, MC will also cache a few of the series-wide information and save a bit of requests then.
Logged
~ nevcairiel
~ Author of LAV Filters

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Very slow Getting movie & TV info
« Reply #4 on: September 04, 2017, 04:49:35 pm »

...and I just tried it again and it seems fairly normal again.  Weird-E-O.

Regarding the API type, I'm assuming MC uses version 2, as version 1 will no longer work after October.

Brian.
Logged
Pages: [1]   Go Up