Manual image download problem
originally posted in the Kodi forums:
It seems when a custom image file is downloaded, tmm simply adds the whole string after last dot from the URL as file extension of the new image file. It works most of the time, but fails occasionally depending on the type of URL.
With this image downloaded (https://dyn1.heritagestatic.com/lf?set=path%5B4%2F8%2F5%2F7%2F4857870%5D&call=url%5Bfile%3Aproduct.chain%5D), tmm creates a new poster file with file extension of ".chain%5D".
And for this (https://fanart.tv/api/download.php?type=download&image=89098§ion=3) it logs "Illegal char <?> at index 24: Brazil (1985)-poster.php?type=download&image=89098§ion=3"
I have several other cases where the custom image URL contained no conventional image file extension after last dot, and every time tmm downloads and shows the image correctly both in poster selection window and in editor window, but mostly fails while writing the poster file due to the file extension issue.