alhaunts wrote: ↑Mon Aug 23, 2021 2:14 pm
Will this fix the missing guide images from SD issue that some of us have been dealing with??
Learned something new yesterday. It appears that when WMC caches artwork, it caches the entire url string of the
redirect to include the query options. Since the redirect we get from SD will supply a new authorization code for each request, WMC will ignore what was already downloaded and download the image again. Because of this, when you are no longer allowed access to the images from SD, there will be no images in WMC.
Also, because of this, I am going to make the cache server default to be enabled.
Good news is the server is light-weight and is running pretty solid. It handles refreshing your token when it detects an image being denied without issue... and is very responsive.
Code: Select all
[8/25/2021 5:03:40 PM] /image/aaee140d5bdc0e5c1314b159862ab862727d659ee268505f0bd3c6b577f09e71.jpg:
{"response":"UNKNOWN_USER","code":5004,"serverID":"20141201.web.1","message":"Download request from unknown account. Post message to http:\/\/forums.schedulesdirect.org\/viewforum.php?f=6","datetime":"2021-08-26T00:03:40Z"}
[8/25/2021 5:03:40 PM] Refreshed token upon receiving an UNKNOWN_USER (5004) error code.
[8/25/2021 5:03:40 PM] New token detected in registry. token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The bad? news is since we are caching all images that have been requested at any time, it does take up some drive space. Rough estimate is 30,000 images will be 1GB. Keep in mind that in order to cache 30,000 images you would have to average 1,000 new images a day, e.g. not previously cached, for 30 days. The images will remain until 30 days (may change) after the last time it was requested from any client. I'm letting mine run to see how it grows over time before this cleanup action starts running.
There is one thing I would like to get resolved with the TCP code in order to release a socket as quickly as possible rather than closing and it and letting it die out naturally after 2 or 4 minutes. It's fine the way it is, but it just bothers me a little and I want to understand how to do it. Once I figure it out, or table it, I'll get this next version released.