INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: lboregard on September 04, 2017, 02:38:07 pm

Title: Very slow Getting movie & TV info
Post by: lboregard 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 ?
Title: Re: Very slow Getting movie & TV info
Post by: lboregard 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 ?
Title: Re: Very slow Getting movie & TV info
Post by: blgentry 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.
Title: Re: Very slow Getting movie & TV info
Post by: Hendrik 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.
Title: Re: Very slow Getting movie & TV info
Post by: blgentry 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.