- August 30, 2006
- 408
- 36
- Home Country
- Afghanistan
Tonight I noticed that an episode wasn't appearing in the system. "Touch (2012)" Season 02, Episode 01.
Episode 02 was there, just no episode 1. So I manually ran an import via MP-TV Series Configuration to see what it would say about it. It found the new episode but failed to retrieve info from thetvdb api. I tried manually browsing to it, and it worked, so I'd assume it was a time-out situation.
I re-ran the import and this time it worked, but then when MP-TV Series Configuration went to one of the next screens (the one that shows progress during all the stages of importing, ie. Local File Parsing, MetaData, Artwork, and Misc), I noticed something odd: It was able to get through all the stages of importing and scanning all my 24,000 episodes / 433 series, but when it gets to the last stage ("Retrieving User Ratings"), it went really slowly.
It took from 9:40 until 10:33 to do this stage (almost an hour). The big delay seems to be with a very frequent timeout when connecting to thetvdb.com:
This occurred every minute or so. It was able to get through perhaps 10 to 15 series, then would have a timeout occur. The timeouts added a few additional seconds, but overall, even if they didn't time out, the act of doing 433 of these web api calls took at least 30 minutes.
Clearly thetvdb.com is overloaded, so there's not much that can be done at the importer side of things, but it got me wondering:
Does the MP-TV Series importer do this scan of all of my tv shows every time it does an import, i.e. every time it detects a new file? I never use user ratings and don't care about them at all, so I'd prefer to disable this stage completely. It also doesn't make a lot of sense to constantly check for user ratings on shows that are old - I'd estimate that out of my 433 series, there are less than 2% that would have updated user ratings anyway. It makes little sense to constantly check the other series for updated data >every time a new file/episode< is imported.
Normally, the importer is happening in the background and I'd never notice this, but if this stage was optional, it would not only reduce the activity at my end, it would reduce the load on thetvdb's servers as well.
Episode 02 was there, just no episode 1. So I manually ran an import via MP-TV Series Configuration to see what it would say about it. It found the new episode but failed to retrieve info from thetvdb api. I tried manually browsing to it, and it worked, so I'd assume it was a time-out situation.
I re-ran the import and this time it worked, but then when MP-TV Series Configuration went to one of the next screens (the one that shows progress during all the stages of importing, ie. Local File Parsing, MetaData, Artwork, and Misc), I noticed something odd: It was able to get through all the stages of importing and scanning all my 24,000 episodes / 433 series, but when it gets to the last stage ("Retrieving User Ratings"), it went really slowly.
It took from 9:40 until 10:33 to do this stage (almost an hour). The big delay seems to be with a very frequent timeout when connecting to thetvdb.com:
Code:
Can't connect to http://thetvdb.com/api/GetRatingsForUser.php?apikey=<blah>&accountid=blah&seriesid=blah : The operation timed out
This occurred every minute or so. It was able to get through perhaps 10 to 15 series, then would have a timeout occur. The timeouts added a few additional seconds, but overall, even if they didn't time out, the act of doing 433 of these web api calls took at least 30 minutes.
Clearly thetvdb.com is overloaded, so there's not much that can be done at the importer side of things, but it got me wondering:
Does the MP-TV Series importer do this scan of all of my tv shows every time it does an import, i.e. every time it detects a new file? I never use user ratings and don't care about them at all, so I'd prefer to disable this stage completely. It also doesn't make a lot of sense to constantly check for user ratings on shows that are old - I'd estimate that out of my 433 series, there are less than 2% that would have updated user ratings anyway. It makes little sense to constantly check the other series for updated data >every time a new file/episode< is imported.
Normally, the importer is happening in the background and I'd never notice this, but if this stage was optional, it would not only reduce the activity at my end, it would reduce the load on thetvdb's servers as well.