2012-01-22, 23:15
I want to update the movie scraper so that it uses IMDB ids that are present in the filename. If an IMDB id is recognized (tt01234567) this id should be used for the query to TheMovieDB instead of a title search.
Example:
I tried it with the following regexp, but it is not working because the id is stripped from $$1:
I can't get it to work. Unfortunately $$1 contains the "guessed" title from the filename and does not contain the [tt01234567] IMDB id any more.
$$2 contains the guessed year. But how do I get the original filename?
I tried $INFO[filename], $INFO[Listitem.FileName], $Listitem[FileName], ...
No chance and the documentation doesn't help either.
http://wiki.xbmc.org/?title=Scrapers
Can anybody please help?
Example:
Code:
11:13:12 T:2808 DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'E:\Filme.HD\Transformers 2 - Die Rache (2009) [tt1055369].mkv'
11:13:12 T:3576 DEBUG: Thread CVideoInfoDownloader start, auto delete: 0
11:13:12 T:3576 DEBUG: ADDON::CScraper::FindMovie: Searching for 'Transformers 2 - Die Rache' using OFDB scraper (path: 'C:\Users\MediaPortal\AppData\Roaming\XBMC\addons\ metadata.ofdb.de', content: 'movies', version: '1.1.2')
11:13:12 T:3576 DEBUG: scraper: CreateSearchUrl returned <url>http://api.themoviedb.org/2.1/Movie.search/de/xml/57983e31fb435df4df77afb854740ea9/transformers%202%20%2d%20die%20rache+2009</url>
11:13:12 T:3576 DEBUG: FileCurl::Open(00FBD5E0) http://api.themoviedb.org/2.1/Movie....e%20rache+2009
11:13:12 T:3576 INFO: XCURL:llLibCurlGlobal::easy_aquire - Created session to http://api.themoviedb.org
11:13:13 T:3576 DEBUG: scraper: GetSearchResults returned <results></results>
I tried it with the following regexp, but it is not working because the id is stripped from $$1:
Code:
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://api.themoviedb.org/2.1/Movie.imdbLookup/$INFO[language]/xml/57983e31fb435df4df77afb854740ea9/\1</url>" dest="3">
<expression noclean="1">\[(tt[0-9]+)\]</expression>
</RegExp>
</CreateSearchUrl>
I can't get it to work. Unfortunately $$1 contains the "guessed" title from the filename and does not contain the [tt01234567] IMDB id any more.
$$2 contains the guessed year. But how do I get the original filename?
I tried $INFO[filename], $INFO[Listitem.FileName], $Listitem[FileName], ...
No chance and the documentation doesn't help either.
http://wiki.xbmc.org/?title=Scrapers
Can anybody please help?