xbmc / metadata.tvshows.themoviedb.org.python

themoviedb.org TV Show scraper in Python for Kodi 18 (Leia) or later.
GNU General Public License v3.0
19 stars 26 forks source link

No information found if TV Series folder is in the title sort format ("Title, The") #67

Closed ksl1989 closed 2 years ago

ksl1989 commented 2 years ago

Kodi version: 19.3

If the folder name has the article at the end, after a comma, no result is found even though the series exists in TMDB. Debug log:

metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:09:50.578 T:5010     INFO <general>: initializing python engine.
2022-01-13 03:09:51.017 T:5008     INFO <general>: Python interpreter stopped
2022-01-13 03:09:52.438 T:5010     INFO <general>: CPythonInvoker(27, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:09:52.439 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/Chestnut Man, The/', it won't be added to the library.
2022-01-13 03:09:52.921 T:5010     INFO <general>: Python interpreter stopped
2022-01-13 03:09:55.353 T:5011     INFO <general>: initializing python engine.
2022-01-13 03:09:56.958 T:5011     INFO <general>: CPythonInvoker(28, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:09:56.961 T:5012     INFO <general>: initializing python engine.
2022-01-13 03:09:57.402 T:5011     INFO <general>: Python interpreter stopped
2022-01-13 03:09:58.795 T:5012     INFO <general>: CPythonInvoker(29, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:09:58.796 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/Unlikely Murderer, The/', it won't be added to the library.
2022-01-13 03:09:59.239 T:5012     INFO <general>: Python interpreter stopped
2022-01-13 03:09:59.645 T:5013     INFO <general>: initializing python engine.
2022-01-13 03:10:01.303 T:5013     INFO <general>: CPythonInvoker(30, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:01.306 T:5014     INFO <general>: initializing python engine.
2022-01-13 03:10:01.749 T:5013     INFO <general>: Python interpreter stopped
2022-01-13 03:10:03.180 T:5014     INFO <general>: CPythonInvoker(31, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:03.180 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/ABC Murders, The/', it won't be added to the library.
2022-01-13 03:10:03.193 T:5015     INFO <general>: initializing python engine.
2022-01-13 03:10:03.621 T:5014     INFO <general>: Python interpreter stopped
2022-01-13 03:10:05.188 T:5015     INFO <general>: CPythonInvoker(32, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:05.190 T:5016     INFO <general>: initializing python engine.
2022-01-13 03:10:05.669 T:5015     INFO <general>: Python interpreter stopped
2022-01-13 03:10:07.078 T:5016     INFO <general>: CPythonInvoker(33, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:07.079 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/Girl Before, The/', it won't be added to the library.
2022-01-13 03:10:07.522 T:5016     INFO <general>: Python interpreter stopped
2022-01-13 03:10:07.772 T:5017     INFO <general>: initializing python engine.
2022-01-13 03:10:09.380 T:5017     INFO <general>: CPythonInvoker(34, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:09.383 T:5018     INFO <general>: initializing python engine.
2022-01-13 03:10:09.828 T:5017     INFO <general>: Python interpreter stopped
2022-01-13 03:10:11.273 T:5018     INFO <general>: CPythonInvoker(35, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:11.274 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/Very British Scandal, A/', it won't be added to the library.
2022-01-13 03:10:11.716 T:5018     INFO <general>: Python interpreter stopped
2022-01-13 03:10:12.202 T:5019     INFO <general>: initializing python engine.
2022-01-13 03:10:13.782 T:5019     INFO <general>: CPythonInvoker(36, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:13.786 T:5020     INFO <general>: initializing python engine.
2022-01-13 03:10:14.223 T:5019     INFO <general>: Python interpreter stopped
2022-01-13 03:10:15.650 T:5020     INFO <general>: CPythonInvoker(37, /home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-01-13 03:10:15.650 T:4970  WARNING <general>: No information found for item '/media/extra/Videos/TV Series/Green Planet, The/', it won't be added to the library.

You should be able to replicate the issue by creating folders with the same names. I believe this format is meant to be supported; if not, please consider this a feature request,

Note that some series do seem to be found in this format. "Sopranos, The" is indeed found as "The Sopranos" but this doesn't happen with any other series that I have.

pkscout commented 2 years ago

That naming format is not supported, nor will it be. Given Kodi supports hundreds of languages, there is no practical way to tell when a comma indicates an article after it or just a comma in the title of the show. It is possible that the scraper might find a match from time to time, but there is no guarantee. If you must leave the shows named that way, I suggest you use a parsing nfo file to tell Kodi what show it should scrape:

https://kodi.wiki/view/NFO_files/Parsing

In the future, please do not post log snippets with the issue. You must provide a link to a complete debug log. This issue will be closed, as the scraper is behaving as expected.

ksl1989 commented 2 years ago

Is it not possible to do it the same was as the movies addon?

https://github.com/xbmc/metadata.themoviedb.org.python/issues/11 https://github.com/xbmc/metadata.themoviedb.org.python/pull/15

Kodi supports hundreds of languages, but not all languages even have articles, probably not even most, and even those that do don't necessarily use this format for titles. For English it is quite widespread, and I think it would be useful to have it supported. Mainly, I'd like both Movies and TV addons to support the same title format.