Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 39
  • 40
  • 41(current)
  • 42
  • 43
  • 47
Release TMDb TV Show scraper (Python - Default Matrix Scraper)
(2023-10-19, 10:33)Fehritale Wrote: Updated my post. Thanks
You didn't enable debug mode which we need for the extra info.
But it seems to affect both Movie and TV Show scrapers. The error for the Movie scraper is TimeoutError, so either you have an internet connection problem, or TMDB is having some issues at the moment.

But if you can enable debug mode in Settings>System>Logging and also enable Verbose Logging in the scraper settings at your Source, then scrape a movie and a tv show, that will give extra info.
If your log is 60MB, it means you did not restart before creating it.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
(2023-10-19, 10:55)Karellen Wrote:
(2023-10-19, 10:33)Fehritale Wrote: Updated my post. Thanks
You didn't enable debug mode which we need for the extra info.
But it seems to affect both Movie and TV Show scrapers. The error for the Movie scraper is TimeoutError, so either you have an internet connection problem, or TMDB is having some issues at the moment.

But if you can enable debug mode in Settings>System>Logging and also enable Verbose Logging in the scraper settings at your Source, then scrape a movie and a tv show, that will give extra info.
If your log is 60MB, it means you did not restart before creating it.
This is the log with the debug logs enabled:
https://paste.kodi.tv/vomuzemipe.kodi

It is again pretty big (~20MB) even after a restart. This is because the add-on dumps the complete JSON of the scraped tv show in there, which is for a series with 7 seasons pretty big. I kept some of the lines, but had to leave out most of them.
Reply
(2023-10-19, 11:47)Fehritale Wrote: This is the log with the debug logs enabled:
https://paste.kodi.tv/vomuzemipe.kodi
Thanks.
Not sure what the problem is with the Season Number. The TMDB doesn't have any issues with season numbering. Your files have the season number in them.
I do note that you have named your files tvr-pll-s04e01-1080p.mkv. The 1080 is confusing the scanner and trying to add S10E08 to each file... Adding multipart episode 1080 [^[-_ex]+([0-9]+(?:(?:[a-i]|\.[1-9])(?![0-9]))?)]
I wonder if that is the cause of the problem. Can you remove the 1080 out of the filename.

Maybe @pkscout will have a better idea.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
(2023-10-19, 12:18)Karellen Wrote:
(2023-10-19, 11:47)Fehritale Wrote: This is the log with the debug logs enabled:
vomuzemipe.kodi (paste)
Thanks.
Not sure what the problem is with the Season Number. The TMDB doesn't have any issues with season numbering. Your files have the season number in them.
I do note that you have named your files tvr-pll-s04e01-1080p.mkv. The 1080 is confusing the scanner and trying to add S10E08 to each file... Adding multipart episode 1080 [^[-_ex]+([0-9]+(?Sad?:[a-i]|\.[1-9])(?![0-9]))?)]
I wonder if that is the cause of the problem. Can you remove the 1080 out of the filename.

Maybe @pkscout will have a better idea.
That did not work. Still the same issue.
Reply
(2023-10-19, 11:47)Fehritale Wrote:
(2023-10-19, 10:55)Karellen Wrote:
(2023-10-19, 10:33)Fehritale Wrote: Updated my post. Thanks
You didn't enable debug mode which we need for the extra info.
But it seems to affect both Movie and TV Show scrapers. The error for the Movie scraper is TimeoutError, so either you have an internet connection problem, or TMDB is having some issues at the moment.

But if you can enable debug mode in Settings>System>Logging and also enable Verbose Logging in the scraper settings at your Source, then scrape a movie and a tv show, that will give extra info.
If your log is 60MB, it means you did not restart before creating it.
This is the log with the debug logs enabled:
https://paste.kodi.tv/vomuzemipe.kodi

It is again pretty big (~20MB) even after a restart. This is because the add-on dumps the complete JSON of the scraped tv show in there, which is for a series with 7 seasons pretty big. I kept some of the lines, but had to leave out most of them.

You can probably turn off the debugging in the scraper. Enabling debug logging for Kodi will add a bunch of scraper related debug logging. The setting in the scraper is just to get the entire JSON result, which is almost never needed.

I’m away from my computer until this weekend. I’ll take a look then. I’ve done absolutely no testing on Omega, but I’m also not aware of any Python, API, or core changes that would break the scraper.
Reply
(2023-10-19, 12:40)Fehritale Wrote:
(2023-10-19, 12:18)Karellen Wrote:
(2023-10-19, 11:47)Fehritale Wrote: This is the log with the debug logs enabled:
vomuzemipe.kodi (paste)
Thanks.
Not sure what the problem is with the Season Number. The TMDB doesn't have any issues with season numbering. Your files have the season number in them.
I do note that you have named your files tvr-pll-s04e01-1080p.mkv. The 1080 is confusing the scanner and trying to add S10E08 to each file... Adding multipart episode 1080 [^[-_ex]+([0-9]+(?Sad?:[a-i]|\.[1-9])(?![0-9]))?)]
I wonder if that is the cause of the problem. Can you remove the 1080 out of the filename.

Maybe @pkscout will have a better idea.
That did not work. Still the same issue.
I had a second to look.  I would need to see another log with the files properly named.  The Kodi file name parser is sending a season 0 request for the series in question, and there is no season 0, so it craps out.  I technically could trap for that, but all it would do is fail silently instead of throwing an error.
Reply
I'm having the exact same error today Kodi 20.2, TMDb TV Show scrapper 1.6.5. Same KeyError: 'season_number'

Code:
2023-10-19 17:41:42.309 T:5691    error <general>: [metadata.tvshows.themoviedb.org.python (1.6.5)]: **** End diagnostic info ****
2023-10-19 17:41:42.323 T:5691    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'KeyError'>
                                                   Error Contents: 'season_number'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py", line 32, in <module>
                                                       router(sys.argv[2][1:])
                                                     File "/storage/.kodi/addons/metadata.tvshows.themoviedb.org.python/libs/actions.py", line 229, in router
                                                       get_details(params['url'])
                                                     File "/storage/.kodi/addons/metadata.tvshows.themoviedb.org.python/libs/actions.py", line 101, in get_details
                                                       show_info = tmdb.load_show_info(show_id)
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/metadata.tvshows.themoviedb.org.python/libs/tmdb.py", line 203, in load_show_info
                                                       show_info = load_fanarttv_art(show_info)
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/metadata.tvshows.themoviedb.org.python/libs/tmdb.py", line 354, in load_fanarttv_art
                                                       season_num = show_info['seasons'][s]['season_number']
                                                                    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                                                   KeyError: 'season_number'
                                                   -->End of Python script error report<--

Full log:- https://pastebin.com/RMukgZq4
Reply
Something's not right, updating my library threw out an error and Kodi died.
Reply
(2023-10-19, 10:19)Fehritale Wrote: After I updated today to Kodi Omega Beta 1, I have problems with the addon. With version Alpha3 everything worked fine.
The problem seems to be in the Python script called by the addon to scrape.

Extraction of the kodi log:
https://paste.kodi.tv/koveyivore.kodi
@rmrector

Line 610 of the above log. Is there an issue with the movie scraper also?
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
(2023-10-19, 20:51)Karellen Wrote:
(2023-10-19, 10:19)Fehritale Wrote: After I updated today to Kodi Omega Beta 1, I have problems with the addon. With version Alpha3 everything worked fine.
The problem seems to be in the Python script called by the addon to scrape.

Extraction of the kodi log:
koveyivore.kodi (paste)
@rmrector

Line 610 of the above log. Is there an issue with the movie scraper also?

Nope, as you've noted "The read operation timed out" is a network issue.
Reply
(2023-10-20, 01:43)rmrector Wrote: Nope, as you've noted "The read operation timed out" is a network issue.
Great. Thanks @rmrector
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
I just ran a library scan on my dev machine running 20.2.  No problems.  My living room Kodi instance has also added episodes for shows over the last few days without issue.  I also just deleted a show from my dev machine library and then scrapped again.  It worked fine.  Basically, I'm not able to duplicate this issue.  The only thing I can figure is that there have been intermittent issues with the TV side of the API at themoviedb.org.
Reply
@pkscout Yep, just got in from work and tried a scan and it's working fine now. Must of been an API issue yesterday.
Reply
I'm using the update version of this scraper, the python version, but I've noticed that since I changed scraper, I can no longer retrieve the information about the duration of TV series episodes.

I wonder if this updated Python scraper doesn't recover the duration of individual episodes, or if it does and so it's just my problem.
(I tested this function on several devices, in none it manages to recover the duration of the episodes, if I change scraper and use tvdb v.4 (tvdb.com) it easily recovers the duration of the episodes).

When I add a TV series in the video library, in the episodes in $INFO[ListItem.Duration] you never see how long a single episode lasts.

Has anyone else noticed the same problem?


I hope someone will help me...
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi stable release | Skin Estuary (by phil65)
I like editing skins ❤
Reply
(2023-11-21, 12:57)Andrea1998 Wrote: I wonder if this updated Python scraper doesn't recover the duration of individual episodes, or if it does and so it's just my problem.
I can't say I have noticed that. Looking at the most recent tv show I have added to my own library and the runtimes are displayed for episodes.
IIRC, the runtimes come from the stream details of the episode file.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
  • 1
  • 39
  • 40
  • 41(current)
  • 42
  • 43
  • 47

Logout Mark Read Team Forum Stats Members Help
TMDb TV Show scraper (Python - Default Matrix Scraper)0