I just started using LibreELEC and so far so great.
I have a large collection of movies that I recorded from the TV. The movies are created with filenames that are not recognised by the Movie DB add-on.
Filenames are always formatted like: "A - B - C" where A is a date, B is a TV channel and C is the movie name..
Here are some examples:
Filename: 20150813 2159 - NBC +1 - Prometheus.ts
Movie Name: Prometheus
Filename: 20150831 2159 - CBS+1 - The Bourne Identity.ts
Movie Name: The Bourne Identity
I understand that the best practice would be to rename all the files and even better to have each movie in its own folder with the name and year of the movie.
However I would like to try can I add another regular expression to the tmdb.xml file so it will match movie names from the file names I have and still manage to download the metadata?
I read this post about How to Write Media Scrapers and also from reading this Reddit Post I was thinking can I add a new regular expression in the tmdb.xml file something like this...
<CreateSearchUrl dest="3">
<RegExp input="$$7" output="<url>https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&amp;query=\1@@@WCF_LITERAL_AMP@@@amp;year=$$4@@@WCF_LITERAL_AMP@@@amp;language=$INFO[language]</url>" dest="3">
<RegExp input="$$1" output="\1" dest="7">
<expression>(\d{8} \d{4} -.*?- ?(.*)\.ts$)</expression>
</RegExp>
</RegExp>
<CreateSearchUrl>
If this is possible then I'm also not sure which tmdb.xml file to edit. I searched and there are SIX:
/storage/.kodi/addons/metadata.common.themoviedb.org/tmdb.xml
/storage/.kodi/addons/metadata.themoviedb.org/tmdb.xml
/storage/.kodi/addons/metadata.tvshows.themoviedb.org/tmdb.xml
/usr/share/kodi/addons/metadata.common.themoviedb.org/tmdb.xml
/usr/share/kodi/addons/metadata.themoviedb.org/tmdb.xml
/usr/share/kodi/addons/metadata.tvshows.themoviedb.org/tmdb.xml
I looked at them all, checking for differences between them and they are not all the same, some have slightly different content.
After some more reading it looks like..
../http://metadata.common.themoviedb.org/tmdb.xml
and
../http://metadata.themoviedb.org/tmdb.xml
are a companion pair that work together and...
../http://metadata.tvshows.themoviedb.org/tmdb.xml
surely isn't what I need since I am scrapping for movie metadata.
The <CreateSearchUrl> tag is in...
../http://metadata.themoviedb.org/tmdb.xml
So now my questions are:
1. What is the difference between...
/storage/.kodi/addons/http://metadata.themoviedb.org/tmdb.xml
and
/usr/share/kodi/addons/http://metadata.themoviedb.org/tmdb.xml
2. Do I need to make changes to both files?
3. Is there any special way to "re-install" the add-on after or will it just work when I make the changes to the xml file?
Cheers,
Flex