Kodi Community Forum
Solved scrape movie with folder name containing both title and original title - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Solved scrape movie with folder name containing both title and original title (/showthread.php?tid=355897)



scrape movie with folder name containing both title and original title - ilf_ - 2020-07-16

My folder name structure mostly follows the Kodi best practice method.
But when the english movie title is not the original one, I use "original title AKA title (year)".
Example: "Bronenosets Potyomkin AKA Battleship Potemkin (1925)".

The movie exists on both IMDb and TMDb and has both title and original title.
TMDb finds the correct movie when searching for both original title and title, but not with original title AKA title.

Unfortunaly, the scraper fails with "WARNING: No information found for item".
I assume it's because it uses the entire folder name.

Is there a way to use the scraper with that?
Like: If a folder name contains the characters " AKA ", please ignore everything before and only use what's after?


RE: scrape movie with folder name containing both title and original title - Karellen - 2020-07-16

(2020-07-16, 22:37)ilf_ Wrote: Like: If a folder name contains the characters " AKA ", please ignore everything before and only use what's after?
Short answer... No.


RE: scrape movie with folder name containing both title and original title - ilf_ - 2020-07-16

(2020-07-16, 22:39)Karellen Wrote: Short answer... No.

And is there a long answer? Smile


RE: scrape movie with folder name containing both title and original title - Karellen - 2020-07-16

The Kodi scanner searches the file or folder name. Through some alogorithms it takes a guess at what the title is and what is garbage in the folder and file name.

Bronenosets Potyomkin AKA Battleship Potemkin (1925)
To Kodi, that is a movie name all the way up to the (year)
There is an advancedsettings.xml entry that allows you to create your own Regex to clean the name, but it only works on everything to the right. So adding AKA to the new Clean regex will remove everything to the right and keep everything to the left, which is exactly the opposite of what you want.... https://kodi.wiki/view/Advancedsettings.xml#cleanstrings

Why not name your folder correctly, but use the aka naming for the file name, then ensure you have the setting "Movies are in separate folders that match the movie title" enabled...
https://kodi.wiki/view/Adding_video_sources#Set_Content


RE: scrape movie with folder name containing both title and original title - ilf_ - 2020-07-17

(2020-07-16, 23:25)Karellen Wrote: There is an advancedsettings.xml entry that allows you to create your own Regex to clean the name, but it only works on everything to the right. So adding AKA to the new Clean regex will remove everything to the right and keep everything to the left, which is exactly the opposite of what you want.... https://kodi.wiki/view/Advancedsettings.xml#cleanstrings
Both "original title" and "title" are correct query strings to identify the movie on TMDb (and IMDb). It shouldn't matter which one the scraper uses. So adding "AKA" to cleanstrings should work.
I will try. Thank you.


RE: scrape movie with folder name containing both title and original title - ilf_ - 2020-07-17

(2020-07-16, 23:25)Karellen Wrote: There is an advancedsettings.xml entry that allows you to create your own Regex to clean the name, but it only works on everything to the right. So adding AKA to the new Clean regex will remove everything to the right and keep everything to the left, which is exactly the opposite of what you want.... https://kodi.wiki/view/Advancedsettings.xml#cleanstrings
This worked perfectly. Thanks a lot!


scrape movie with folder name containing both title and original title - Karellen - 2020-07-17

Thread marked solved.


RE: scrape movie with folder name containing both title and original title - ilf_ - 2020-10-24

I created a patch for this and submitted it upstream, it was merged into master a little while ago, should be in the 19.0 release. Thanks again!