I'm not sure how I'm only just finding out about this script now but it looks very useful and I'm trying to get it working. Have I just been unlucky with my timing and there's a tvdb problem?
php:
2018-09-17 14:40:47.593028:Thread-2 : ** iotimeout occurred during web request **
2018-09-17 14:40:47.593316:Thread-2 : preparedl.RECEIVED WEB DATA: 408, Request Timeout,
2018-09-17 14:40:47.593438:Thread-2 : Image not available for download - uncacheable (embedded?), or doesn't exist. Filename [image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f78672%2f291453.jpg/]
2018-09-17 14:40:47.593717:Thread-2 : preparedl.JSON WEB REQUEST: [POST] [{"jsonrpc": "2.0", "params": {"path": "image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f78672%2f291454.jpg/"}, "method": "Files.PrepareDownload", "id": "preparedl"}]
2018-09-17 14:40:47.599682:Thread-1 : ** iotimeout occurred during web request **
2018-09-17 14:40:47.599947:Thread-1 : preparedl.RECEIVED WEB DATA: 408, Request Timeout,
2018-09-17 14:40:47.600066:Thread-1 : Image not available for download - uncacheable (embedded?), or doesn't exist. Filename [image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f78672%2f291452.jpg/]
2018-09-17 14:40:47.600339:Thread-1 : preparedl.JSON WEB REQUEST: [POST] [{"jsonrpc": "2.0", "params": {"path": "image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f78672%2f291455.jpg/"}, "method": "Files.PrepareDownload", "id": "preparedl"}]
2018-09-17 14:40:52.599862:Thread-2 : ** iotimeout occurred during web request **
2018-09-17 14:40:52.600164:Thread-2 : preparedl.RECEIVED WEB DATA: 408, Request Timeout,
2018-09-17 14:40:52.600329:Thread-2 : primeImage.DIRECT WEB REQUEST: [GET], HTTPS=False, [thetvdb.com] [/banners/episodes/78672/291454.jpg]
2018-09-17 14:40:52.606465:Thread-1 : ** iotimeout occurred during web request **
2018-09-17 14:40:52.606730:Thread-1 : preparedl.RECEIVED WEB DATA: 408, Request Timeout,
2018-09-17 14:40:52.606891:Thread-1 : primeImage.DIRECT WEB REQUEST: [GET], HTTPS=False, [thetvdb.com] [/banners/episodes/78672/291455.jpg]
2018-09-17 14:40:57.671067:Thread-2 : primeImage.RECEIVED WEB DATA: 301, Moved Permanently, <raw data>
2018-09-17 14:40:57.671217:Thread-2 : Primed request of: HTTPS=False, Domain [thetvdb.com] with URL [/banners/episodes/78672/291454.jpg], result [301, Moved Permanently]
2018-09-17 14:40:57.671311:Thread-2 : Retrying getDownloadURL(), 3 attempts remaining
2018-09-17 14:40:57.676324:Thread-1 : primeImage.RECEIVED WEB DATA: 301, Moved Permanently, <raw data>
2018-09-17 14:40:57.676474:Thread-1 : Primed request of: HTTPS=False, Domain [thetvdb.com] with URL [/banners/episodes/78672/291455.jpg], result [301, Moved Permanently]
2018-09-17 14:40:57.676550:Thread-1 : Retrying getDownloadURL(), 3 attempts remaining
2018-09-17 14:40:58.172168:Thread-2 : preparedl.JSON WEB REQUEST: [POST] [{"jsonrpc": "2.0", "params": {"path": "image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f78672%2f291454.jpg/"}, "method": "Files.PrepareDownload", "id": "preparedl"}]
This is my Kodi log when that's happening (debug log enabled):
php:
14:53:19.167 T:140383463921408 DEBUG: JSONRPC Server: New connection detected
14:53:19.167 T:140383463921408 INFO: JSONRPC Server: New connection added
14:53:19.386 T:140383463921408 INFO: JSONRPC Server: Disconnection detected
14:53:19.396 T:140383902140160 DEBUG: CWebServer[8080]: request received for /jsonrpc
14:53:19.397 T:140381802981120 DEBUG: Previous line repeats 1 times.
14:53:19.397 T:140381802981120 INFO: easy_acquire - Created session to http://thetvdb.com
14:53:21.519 T:140381794588416 INFO: Previous line repeats 1 times.
14:53:21.519 T:140381794588416 DEBUG: Thread JobWorker 140381794588416 terminating (autodelete)
14:53:24.911 T:140381802981120 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291453.jpg
14:53:24.911 T:140383902140160 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291452.jpg
14:53:24.911 T:140381802981120 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:29.991 T:140383951439616 DEBUG: Previous line repeats 1 times.
14:53:29.991 T:140383951439616 DEBUG: CWebServer[8080]: request received for /jsonrpc
14:53:35.500 T:140381794588416 DEBUG: Previous line repeats 3 times.
14:53:35.500 T:140381794588416 INFO: easy_acquire - Created session to http://thetvdb.com
14:53:35.508 T:140383951439616 INFO: Previous line repeats 1 times.
14:53:35.508 T:140383951439616 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291453.jpg
14:53:35.508 T:140383951439616 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:35.508 T:140383902140160 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291452.jpg
14:53:35.508 T:140383902140160 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:41.007 T:140383136765696 DEBUG: CWebServer[8080]: request received for /jsonrpc
14:53:41.013 T:140383472314112 DEBUG: Previous line repeats 1 times.
14:53:41.013 T:140383472314112 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291452.jpg
14:53:41.013 T:140383472314112 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:41.015 T:140381794588416 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291453.jpg
14:53:41.015 T:140381794588416 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:46.011 T:140382046279424 DEBUG: CWebServer[8080]: request received for /jsonrpc
14:53:46.522 T:140383136765696 DEBUG: Previous line repeats 1 times.
14:53:46.522 T:140383136765696 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291452.jpg
14:53:46.522 T:140383902140160 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291453.jpg
14:53:46.523 T:140383136765696 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:51.527 T:140382046279424 DEBUG: Previous line repeats 1 times.
14:53:51.527 T:140382046279424 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291454.jpg
14:53:51.527 T:140382046279424 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:51.528 T:140381794588416 ERROR: CCurlFile::Exists - Failed: Timeout was reached(28) for http://thetvdb.com/banners/episodes/78672/291455.jpg
14:53:51.528 T:140381794588416 DEBUG: CWebServer [MHD]: Failed to send data in request for `/jsonrpc': Broken pipe
14:53:56.591 T:140381811373824 DEBUG: CWebServer[8080]: request received for /jsonrpc