2021-01-27, 10:28
While on the subject, another thing that might help you especially with TV Shows, is the URL pattern.
You can use GTIs as I do, to diversify TV Shows instead of using titles. Two separate TV shows might be available for the same show, but for different regions, and if you don't treat them differently you're gonna overwrite or mix the seasons together.
Also, be mindful of the fact that at the moment you're getting the data only from PrimeVideo.com, so it might not work in Germany, Japan, UK & USA.
Code:
URL: plugin://plugin.video.amazon-test/<region>/<commands>
Command: browse/<path>/<GTIs>
GTIs: <TV Show GTI>/<Season GTI>/<Episode GTI>
You can use GTIs as I do, to diversify TV Shows instead of using titles. Two separate TV shows might be available for the same show, but for different regions, and if you don't treat them differently you're gonna overwrite or mix the seasons together.
Also, be mindful of the fact that at the moment you're getting the data only from PrimeVideo.com, so it might not work in Germany, Japan, UK & USA.