2018-01-25, 14:25
Hello I am a kodi user from Greece. So I try to download the episode plots in greek if possible. If the site has a plot in greek then the scraper downolads the correct plot for this episode. If there is no greek plot for that particular episode then the GetEpisodeDetails functions swaps the episode no and the season no. So instead of downloading for example the episode 6 of season 1 it downloads the episode 1 of season 6. I messed around a bit with your code and found that you must change the line 208 of your code from:
I also include the log output that GetEpisodeDetails returns
I don't know if this works in all cases, but for now it works for me. Please try to solve the problem because in the next upgrade my shows will show garbage again.
Thank you
to:xml:<RegExp input="$INFO[language]" output="<url function="ParseFallbackTMDBPlot" cache="tmdb-$$6-en-episode-s$$10e$$11.json">http://api.themoviedb.org/3/tv/$$6/season/$$11/episode/$$10?api_key=key&amp;language=en</url>" dest="8">
xml:<RegExp input="$INFO[language]" output="<url function="ParseFallbackTMDBPlot" cache="tmdb-$$6-en-episode-s$$10e$$11.json">http://api.themoviedb.org/3/tv/$$6/season/$$10/episode/$$11?api_key=key;amp;language=en</url>" dest="8">
I also include the log output that GetEpisodeDetails returns
scraper: GetEpisodeDetails returned
<details>
<title>Episode 6</title>
<season>1</season>
<episode>6</episode>
<aired>2009-04-13</aired>
<uniqueid type="tmdb" default="true">64814</uniqueid>
<ratings>
<rating name="tmdb" default="true">
<value>5.0,</value>
<votes>1</votes>
</rating>
</ratings>
<url function="ParseFallbackTMDBPlot" cache="tmdb-1419-en-episode-s1e6.json">http://api.themoviedb.org/3/tv/1419/season/6/episode/1?api_key=key&language=en</url>
<chain function="GetCast">1419|1|6</chain>
<chain function="GetEpisodeArt">1419|1|6</chain>
</details>
I don't know if this works in all cases, but for now it works for me. Please try to solve the problem because in the next upgrade my shows will show garbage again.
Thank you