TMDB Movie Scraper not working
#21
(2015-05-29, 04:03)exobuzz Wrote: Seems to have an original_language and overview field in the search results json.

these changes sort it for me - I'm somewhat rusty/unfamiliar with the tmdb scraper, so I may have missed something.

http://pastebin.com/gphuuUGt

Had some difficulties finding out what this post means. So here's a slightly more extended explaination.

WARNING: This worked for me on 1 of 2 OpenElec installations. So if you try this make sure you make a backup before
Was just the usual Windows vs. Linux EOL character issue. At the first test I just pasted the lines to replace leaving the LF line endings intact. At the 2nd installation i copied the whole block including CRLF linefeed characters. While scanning that files got somehow overwritten by kodi. So if you take care of the linefeeds this fix works well.

You've got to edit .kodi\addons\metadata.themoviedb.org\tmdb.xml of your Kodi Installation.
In my case it's OpenELEC for Paspberry PI 2, so I've plugged the SD-Card into my Laptop and edited the file using Notepad++ (Paragon ExtFS Drivers allow me to read Linux file systems on Windows).
The past from the previous post shows that you got to alter 3 lines.

This is the original block:
Code:
    <GetSearchResults dest="8">
        <RegExp input="$$3" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\4&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:&quot;([0-9]+)-.*?&quot;title&quot;:&quot;([^&quot;]*)</expression>
            </RegExp>
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:&quot;([0-9]+)-</expression>
            </RegExp>
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:null</expression>
            </RegExp>
            <expression noclean="1" />
        </RegExp>
    </GetSearchResults>

And this is the altered one:

Code:
    <GetSearchResults dest="8">
        <RegExp input="$$3" output="&lt;results&gt;\1&lt;/results&gt;" dest="8">
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\4&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_language&quot;:&quot;[^&quot;]*&quot;,&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;overview&quot;:&quot;[^&quot;]*&quot;,&quot;release_date&quot;:&quot;([0-9]+)-.*?&quot;title&quot;:&quot;([^&quot;]*)</expression>
            </RegExp>
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_language&quot;:&quot;[^&quot;]*&quot;,&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;overview&quot;:&quot;([^&quot;]*)&quot;,&quot;release_date&quot;:&quot;([0-9]+)-</expression>
            </RegExp>
            <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;tmdb-$INFO[language]-\1.json&quot;&gt;http://api.tmdb.org/3/movie/\1?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;language=$INFO[language]&lt;/url&gt;&lt;/entity&gt;" dest="3+">
                <expression repeat="yes">&quot;id&quot;:([0-9]*),&quot;original_language&quot;:&quot;[^&quot;]*&quot;,&quot;original_title&quot;:&quot;([^&quot;]*)&quot;,&quot;overview&quot;:&quot;[^&quot;]*&quot;,&quot;release_date&quot;:null</expression>
            </RegExp>
            <expression noclean="1" />
        </RegExp>
    </GetSearchResults>

As you can see 3 of the <expression repeat="yes"> tags have changed.

The previous post mentioned it includes the new "original language" and "overview" fields of the TMDB API. So the 3rd new "genre_ids" field is not considered here yet. But since it works for now I'll use this fix until the official updates comes.
Reply


Messages In This Thread
TMDB Movie Scraper not working - by Unno - 2015-05-28, 22:49
RE: TMDB Movie Scraper not working - by Unno - 2015-05-29, 00:52
RE: TMDB Movie Scraper not working - by nickr - 2015-05-29, 02:10
RE: TMDB Movie Scraper not working - by burr - 2015-05-29, 11:01
RE: TMDB Movie Scraper not working - by nickr - 2015-05-29, 10:05
RE: TMDB Movie Scraper not working - by burr - 2015-05-29, 10:13
RE: TMDB Movie Scraper not working - by burr - 2015-05-29, 10:09
RE: TMDB Movie Scraper not working - by nickr - 2015-05-30, 06:15
RE: TMDB Movie Scraper not working - by dags - 2015-05-30, 17:09
RE: TMDB Movie Scraper not working - by dags - 2015-05-30, 18:20
RE: TMDB Movie Scraper not working - by dags - 2015-05-30, 19:03
RE: TMDB Movie Scraper not working - by arzaz - 2015-05-31, 20:37
RE: TMDB Movie Scraper not working - by arzaz - 2015-06-01, 23:17
RE: TMDB Movie Scraper not working - by arzaz - 2015-06-06, 19:17
RE: TMDB Movie Scraper not working - by Renns - 2015-06-06, 19:40
RE: TMDB Movie Scraper not working - by Renns - 2015-06-06, 19:58
RE: TMDB Movie Scraper not working - by arzaz - 2015-06-06, 21:55
RE: TMDB Movie Scraper not working - by arzaz - 2015-06-06, 23:53
RE: TMDB Movie Scraper not working - by Razze - 2015-07-01, 14:41
RE: TMDB Movie Scraper not working - by nickr - 2015-07-02, 01:02
RE: TMDB Movie Scraper not working - by TRaSH - 2015-07-11, 20:47
RE: TMDB Movie Scraper not working - by TRaSH - 2015-07-12, 19:10
RE: TMDB Movie Scraper not working - by TRaSH - 2015-07-12, 21:38
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-12, 18:58
RE: TMDB Movie Scraper not working - by D-m-x - 2015-11-12, 19:08
RE: TMDB Movie Scraper not working - by nickr - 2015-11-13, 01:51
RE: TMDB Movie Scraper not working - by ronie - 2015-11-13, 01:58
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-13, 03:25
RE: TMDB Movie Scraper not working - by nickr - 2015-11-13, 02:30
RE: TMDB Movie Scraper not working - by ronie - 2015-11-13, 11:08
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-13, 05:38
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-13, 05:45
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-13, 06:34
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-13, 17:34
RE: TMDB Movie Scraper not working - by tymmy - 2015-11-13, 18:28
RE: TMDB Movie Scraper not working - by D-m-x - 2015-11-13, 22:58
RE: TMDB Movie Scraper not working - by maaim - 2015-11-13, 23:35
RE: TMDB Movie Scraper not working - by jocus - 2015-11-14, 12:44
RE: TMDB Movie Scraper not working - by DAlba - 2015-11-14, 19:16
RE: TMDB Movie Scraper not working - by nickr - 2015-11-14, 23:24
RE: TMDB Movie Scraper not working - by nickr - 2015-11-15, 06:56
RE: TMDB Movie Scraper not working - by Razze - 2015-11-23, 12:14
RE: TMDB Movie Scraper not working - by nickr - 2015-11-25, 00:00
RE: TMDB Movie Scraper not working - by nickr - 2015-11-26, 20:55
RE: TMDB Movie Scraper not working - by nickr - 2015-11-27, 11:37
RE: TMDB Movie Scraper not working - by nickr - 2015-12-08, 20:55
RE: TMDB Movie Scraper not working - by nickr - 2015-12-08, 21:11
RE: TMDB Movie Scraper not working - by nickr - 2015-12-09, 09:29
RE: TMDB Movie Scraper not working - by nickr - 2015-12-10, 08:08
RE: TMDB Movie Scraper not working - by vc4u - 2015-12-28, 17:27
RE: TMDB Movie Scraper not working - by nickr - 2015-12-29, 05:22
RE: TMDB Movie Scraper not working - by vc4u - 2015-12-29, 15:15
RE: TMDB Movie Scraper not working - by nickr - 2016-01-13, 10:32
RE: TMDB Movie Scraper not working - by arzaz - 2016-03-23, 14:08
RE: TMDB Movie Scraper not working - by Chump - 2017-02-04, 14:55
RE: TMDB Movie Scraper not working - by AdeAV - 2016-04-21, 11:13
Logout Mark Read Team Forum Stats Members Help
TMDB Movie Scraper not working5