Can I modify how the Movie Database Scraper add on resolves movie names
#1
Hello,

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. 

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.

I haven't included any debug log because I know why it's not working... the filenames are not recognised by the regular expressions in the tmdb.xml files.

Can someone advise me on how I can modify the tmdb.xml file (the MovieDB Add-On) so it will recognise my particular movie filename convention??

I read this post about How to Write Media Scrapers and also this Reddit Post gives a lot of info about registering changes to an addon's .xml file.

I already have the regular expression I just need to know where to put it..

Here is what I think I need to do but I need some help please Smile

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="&lt;url&gt;https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&amp;amp;query=\[email protected]@@[email protected]@@amp;year=$$[email protected]@@[email protected]@@amp;language=$INFO[language]&lt;/url&gt;" dest="3">
         <RegExp input="$$1" output="\1" dest="7">
              <expression>(\d{8} \d{4} -.*?- ?(.*)\.ts$)</expression>
         </RegExp>
</RegExp>
<CreateSearchUrl>

There are SIX tmdb.xml files in my Kodi (LibreELEC) installation..

/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

After some more reading it looks like..

../metadata.common.themoviedb.org/tmdb.xml
and
../metadata.themoviedb.org/tmdb.xml

are a companion pair that work together and...

../metadata.tvshows.themoviedb.org/tmdb.xml
surely isn't what I need since I am scrapping for movie metadata.

The <CreateSearchUrl> tag is in...
../metadata.themoviedb.org/tmdb.xml

So now my questions are:

1. What is the difference between...
/storage/.kodi/addons/metadata.themoviedb.org/tmdb.xml
and
/usr/share/kodi/addons/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
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
Can I modify how the Movie Database Scraper add on resolves movie names - by flexmcmurphy - 2020-02-23, 22:21


Logout Mark Read Team Forum Stats Members Help
Can I modify how the Movie Database Scraper add on resolves movie names00
This forum uses Lukasz Tkacz MyBB addons.