metadata.themoviedb.org.python
metadata.themoviedb.org.python copied to clipboard
feature-rquest: ignore prefix
https://forum.kodi.tv/showthread.php?tid=344580&pid=3187421#pid3187421
Hi, I spent quite some time looking for a solution to have a prefix in the movie-directory-name, but havn´t found a solution yet. Would you please be so kind to assist? Is it possible to ignore a index-prefix (specified by a character, e.g. "_") in scraping? something like: https://forum.kodi.tv/showthread.php?tid=187569 https://forum.kodi.tv/showthread.php?tid=264251 https://forum.kodi.tv/showthread.php?tid=370722
example 1 numeric index: Star.Trek.Collection
01_Star.Trek.The.Motion.Picture.1979
movie.mkv
movie.nfo
02_Star.Trek.The.Wrath.of.Khan.1982
movie.mkv
movie.nfo
03_Star.Trek.The.Search.for.Spock.1984
movie.mkv
movie.nfo
example 2 date index: Dustin.Hoffman.Collection
1967_Die.Reifeprüfung
movie.mkv
movie.nfo
1969_Asphalt.Cowboy
movie.mkv
movie.nfo
1970_Little.Big.Man
movie.mkv
movie.nfo
It's not the scraper that can solve this. Kodi trims the filename before passing it onto the scraper. So the scraper has already received the trimmed search string.
If you know regex, you can add your own cleanstrings ... https://kodi.wiki/view/Advancedsettings.xml#cleanstrings
Also, maybe consider this new feature... https://github.com/xbmc/metadata.themoviedb.org.python/pull/205