Kodi Community Forum
Release TheMovieDB - TV Show scraper (XML) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Information Providers (scrapers) (https://forum.kodi.tv/forumdisplay.php?fid=147)
+----- Forum: TV Show Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=305)
+----- Thread: Release TheMovieDB - TV Show scraper (XML) (/showthread.php?tid=200504)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


RE: TheMovieDB - TV Show scraper - Karellen - 2020-11-16

We will need a Debug Log which captures you scraping the show again.


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

@olympia 
@Karellen 

Why the GetEpisodeList returned url show "language=en" while the Searching url gets "language=he"?
Also -> include_image_language "he,en,null" when the returned shows "en,en,null".

From the log:
Code:
00:06:11.577 T:15484   DEBUG: ADDON::CScraper::GetEpisodeList: Searching 'https://api.tmdb.org/3/tv/71912?api_key=6a5be4999abf74eba1f9a8311294c267&language=he&append_to_response=content_ratings,credits,external_ids,images&include_image_language=he,en,null' using The Movie Database scraper (file: 'C:\Users\aUser\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org', content: 'tvshows', version: '3.5.7')
00:06:11.599 T:15484   DEBUG: scraper: GetEpisodeList returned <episodeguide><url cache="tmdb-71912-en-season-1.json" function="GetSeasonEpisodeList">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url></episodeguide>
00:06:11.603 T:15484   DEBUG: scraper: GetSeasonEpisodeList returned <episodeguide><episode><title></title><aired>2019-12-20</aired><epnum>1</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|1</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>2</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|2</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>3</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|3</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>4</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|4</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>5</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|5</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>6</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|6</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>7</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|7</id></episode><episode><title></title><aired>2019-12-20</aired><epnum>8</epnum><season>1</season><url cache="tmdb-71912-en-season-1.json">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;language=en&amp;append_to_response=credits,external_ids,images&amp;include_image_language=en,en,null</url><id>71912|1|8</id></episode></episodeguide>
00:06:11.605 T:6564   DEBUG: ADDON::CScraper::GetVideoDetails: Reading episode 'https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&language=en&append_to_response=credits,external_ids,images&include_image_language=en,en,null' using The Movie Database scraper (file: 'C:\Users\aUser\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org', content: 'tvshows', version: '3.5.7')
00:06:11.609 T:6564   DEBUG: scraper: GetEpisodeDetails returned <details><title>The End's Beginning</title><season>1</season><episode>1</episode><aired>2019-12-20</aired><uniqueid type="tmdb" default="true">1927355</uniqueid><chain function="GetEpisodeExtraDetails">71912|1|1|ParseEpisodeIMDBRatingsById</chain><plot>Hostile townsfolk and a cunning mage greet Geralt in the town of Blaviken. Ciri finds her royal world upended when Nilfgaard sets its sights on Cintra.</plot><director>Alik Sakharov</director><credits>Lauren Schmidt</credits><chain function="GetCast">71912|1|1</chain><chain function="GetEpisodeExtraDetails">71912|1|1|ParseEpisodeExternalIds</chain><chain function="GetEpisodeExtraDetails">71912|1|1|ParseEpisodeArt</chain></details>



RE: TheMovieDB - TV Show scraper - Karellen - 2020-11-17

xml:

2020-11-17 08:47:38.726 T:12200 DEBUG: ADDON::CScraper::GetEpisodeList: Searching 'https://api.tmdb.org/3/tv/71912?api_key=6a5be4999abf74eba1f9a8311294c267&language=he&append_to_response=content_ratings,credits,external_ids,images&
include_image_language=he,en,null' using The Movie Database scraper (file: 'C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org', content: 'tvshows', version: '3.5.7')
2020-11-17 08:47:38.727 T:12200 DEBUG: scraper: GetEpisodeList returned <episodeguide><url cache="tmdb-71912-he-season-1.json" function="GetSeasonEpisodeList">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;
language=he&amp;append_to_response=credits,external_ids,images&amp;include_image_language=he,en,null</url></episodeguide>

@olympia I think this is due to the language code. It needs to be changed to he-IL


@burekas
In your Kodi data folder go to C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org\resources and open your settings.xml file.
On line 4, replace |he| with |he-IL| and save.
In your Userdata folder go to C:\Users\Master\AppData\Roaming\Kodi\userdata\addon_data\metadata.tvshows.themoviedb.org and delete any file in that folder. It most likely is empty anyway.
Now go to your Source, Change to a different scraper and change back. Adjust your settings again and select he-IL for the language.

Does that fix the issue?


RE: TheMovieDB - TV Show scraper - olympia - 2020-11-17

(2020-11-17, 00:57)Karellen Wrote:
xml:

2020-11-17 08:47:38.726 T:12200 DEBUG: ADDON::CScraper::GetEpisodeList: Searching 'https://api.tmdb.org/3/tv/71912?api_key=6a5be4999abf74eba1f9a8311294c267&language=he&append_to_response=content_ratings,credits,external_ids,images&
include_image_language=he,en,null' using The Movie Database scraper (file: 'C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org', content: 'tvshows', version: '3.5.7')
2020-11-17 08:47:38.727 T:12200 DEBUG: scraper: GetEpisodeList returned <episodeguide><url cache="tmdb-71912-he-season-1.json" function="GetSeasonEpisodeList">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;
language=he&amp;append_to_response=credits,external_ids,images&amp;include_image_language=he,en,null</url></episodeguide>

@olympia I think this is due to the language code. It needs to be changed to he-IL


@burekas
In your Kodi data folder go to C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org\resources and open your settings.xml file.
On line 4, replace |he| with |he-IL| and save.
In your Userdata folder go to C:\Users\Master\AppData\Roaming\Kodi\userdata\addon_data\metadata.tvshows.themoviedb.org and delete any file in that folder. It most likely is empty anyway.
Now go to your Source, Change to a different scraper and change back. Adjust your settings again and select he-IL for the language.

Does that fix the issue?

I don't think so. 
If it was that, then it wouldn't work for you and me either. He should rather try a clean install. Cost nothing to try in Windows in portable mode.

...end of course a full debug log might shed some more light, but as I said, it's better to try on a clean install, something seems to be screwed up. I don't believe it is the scraper.


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

(2020-11-17, 00:57)Karellen Wrote:
xml:

2020-11-17 08:47:38.726 T:12200 DEBUG: ADDON::CScraper::GetEpisodeList: Searching 'https://api.tmdb.org/3/tv/71912?api_key=6a5be4999abf74eba1f9a8311294c267&language=he&append_to_response=content_ratings,credits,external_ids,images&
include_image_language=he,en,null' using The Movie Database scraper (file: 'C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org', content: 'tvshows', version: '3.5.7')
2020-11-17 08:47:38.727 T:12200 DEBUG: scraper: GetEpisodeList returned <episodeguide><url cache="tmdb-71912-he-season-1.json" function="GetSeasonEpisodeList">https://api.tmdb.org/3/tv/71912/season/1?api_key=6a5be4999abf74eba1f9a8311294c267&amp;
language=he&amp;append_to_response=credits,external_ids,images&amp;include_image_language=he,en,null</url></episodeguide>

@olympia I think this is due to the language code. It needs to be changed to he-IL


@burekas
In your Kodi data folder go to C:\Users\Master\AppData\Roaming\Kodi\addons\metadata.tvshows.themoviedb.org\resources and open your settings.xml file.
On line 4, replace |he| with |he-IL| and save.
In your Userdata folder go to C:\Users\Master\AppData\Roaming\Kodi\userdata\addon_data\metadata.tvshows.themoviedb.org and delete any file in that folder. It most likely is empty anyway.
Now go to your Source, Change to a different scraper and change back. Adjust your settings again and select he-IL for the language.

Does that fix the issue?

Yes it works Smile

Image


RE: TheMovieDB - TV Show scraper - olympia - 2020-11-17

Can you try to switch back to he now and also do a change scraper cycle and resetting language to he? I would be really surprised if it was not working too.


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

@olympia 

Now we solved the problems I have small requests (If you can)

1) Add the options in Settings for getting also "ClearLogo" and "Landscape" images (I think Fanart.TV as the source is the best option for both)
Currently it seem that it takes only the Poster and the Fanart.

2) And a new option for splitting:
Taking the artwork in selected language (or the original) while the details (text=titles,plot etc) in another selected language.
Is it possible to implement that?

And thanks for your great work.


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

(2020-11-17, 01:38)olympia Wrote: Can you try to switch back to he now and also do a change scraper cycle and resetting language to he? I would be really surprised if it was not working too.
Yes, you're right.

I switch back to "he" in the settings.
First, I scrap it back in "en", titles are in English.
Second, I scrap it again in "he" selected, titles are ok and in Hebrew.
Very strange.
But the changing for "he-IL" fixed that, or that the operation of deleting the "settings.xml" in the userdata is what made the change. I don't know.


Another question:
Why I get the prefix of the episode title as: "1x01. <name>"
Instead of "01. <name>"
EDIT: It seems that it shows it as "1x01." when there is only one season.
When there is more then one entering to the season shows it as "01."
Probably a skin issue.


TheMovieDB - TV Show scraper - olympia - 2020-11-17

Cool so no need to add he-IL. Surely adding it was not not cure to the problem. Probably resetting to he or doing a switch between he and en and back would have been enough. I don't have a clue how it got broken.

And by the way, the scraper is already scraping all art from fanart.tv, but you need to enable extra art in advancedsettings.xml


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

(2020-11-17, 01:50)olympia Wrote: Cool so no need to add he-IL. Surely adding it was not not cure to the problem. Probably resetting to he or doing a switch between he and en and back would have been enough. I don't have a clue how it got broken.

And by the way, the scraper is already scraping all art from fanart.tv, but you need to enable extra art in advancedsettings.xml
No, the switching to "en" and back wasn't the solution, I already did that before.
As I said, the changing to "he-IL" or reseting manually the settings in the Addon folder and Userdata made the change.

Regarding the artwork:
The "Get Extra-Artwork from Fanart.TV" is already enabled, I checked that.
It takes only the poster and fanart, the logo is gone and the landscape takes the fanart.
(I also test it with "en" selected, so it's not a language issue)


RE: TheMovieDB - TV Show scraper - olympia - 2020-11-17

(2020-11-17, 01:45)burekas Wrote: EDIT: It seems that it shows it as "1x01." when there is only one season.
When there is more then one entering to the season shows it as "01."
Probably a skin issue.

There is a setting to don't flatten TV Shows if only 1 season is available.


RE: TheMovieDB - TV Show scraper - olympia - 2020-11-17

(2020-11-17, 01:59)burekas Wrote: Regarding the artwork:
The "Get Extra-Artwork from Fanart.TV" is already enabled, I checked that.

OK, could you please cost the content of your advancedsettings.xml?


RE: TheMovieDB - TV Show scraper - burekas - 2020-11-17

(2020-11-17, 08:22)olympia Wrote:
(2020-11-17, 01:59)burekas Wrote: Regarding the artwork:
The "Get Extra-Artwork from Fanart.TV" is already enabled, I checked that.

OK, could you please cost the content of your advancedsettings.xml?
xml:
<advancedsettings>
    <network>
        <buffermode>1</buffermode>
        <readfactor>4</readfactor>
        <memorysize>419430400</memorysize>
    </network>
    <video>
        <usetimeseeking>true</usetimeseeking>
        <timeseekforwardbig>600</timeseekforwardbig>
        <timeseekbackwardbig>-600</timeseekbackwardbig>
        <percentseekforward>2</percentseekforward>
        <percentseekbackward>-2</percentseekbackward>
        <percentseekforwardbig>10</percentseekforwardbig>
        <percentseekbackwardbig>-10</percentseekbackwardbig>
    </video>
</advancedsettings>



RE: TheMovieDB - TV Show scraper - Karellen - 2020-11-17

(2020-11-17, 11:26)burekas Wrote: <network>
<buffermode>1</buffermode>
<readfactor>4</readfactor>
<memorysize>419430400</memorysize>
</network>
Wrong... https://kodi.wiki/view/Advancedsettings.xml#cache


RE: TheMovieDB - TV Show scraper - Capslock - 2020-11-17

(2020-11-16, 22:13)olympia Wrote: @burekas @Capslock @Hebotsuki try v3.5.7 please (I am not supporting when it is going to be available and how to update questions).
@olympia it is much better with v3.5.7 but there is still episodes (some are found some not) from TV Shows which are not retrieved (my primary language for descriptions is French) :
For example :
- Peaky Blinders (https://www.themoviedb.org/tv/60574-peaky-blinders)
- I know this much is true (https://www.themoviedb.org/tv/88166-i-know-this-much-is-true)

What can I provide to help you ?