XBMC Community Forum
German IMDB scraper, please test it and give feedback - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Metadata scrapers (/forumdisplay.php?fid=147)
+---- Thread: German IMDB scraper, please test it and give feedback (/showthread.php?tid=75121)

Pages: 1 2 3 4 5 6 7 8 9 10 11


- linuxluemmel - 2011-01-30 13:48

In the last 2 weeks I decided to copy my entire dvd and bluray collection to my xbmc system.
This scrapper works fine for 99 % for all content.
I had 2 movies that were never correct.
Prior to start scanning for new content I renamed the show to the same
name like in the german imdb.
Following two movie names produce errors.

- Hitman or Hitman - Jeder stirbt alleine
- Wantet (2008)

I guess this error do occur because imdb returns multiple movie names ....

Every movie with exception of the above 2 are inside the database.


- segroove - 2011-03-17 22:19

Nice scraper, i had to modify three things for myself, though.

1. The rating didn't work properly, only the first digit was shown.
2. The "director" field also showed all of the assistants.
3. The "original title" was something like
"<Title>"&nbsp; - USA
instead of just
<Title>

If anyone is interested in my quick&dirty changes, feel free to replace your XBMC\addons\metadata.imdb.de\imdb_de.xml using these code snippets:

Code:
            <!-- Bewertung/Stimmen -->
            <RegExp input="$$1" output="&lt;rating&gt;\1.\2&lt;/rating&gt;&lt;votes&gt;\3&lt;/votes&gt;" dest="4+">
                <expression trim="1,2">&lt;b&gt;([0-9]+),([0-9]+)/10&lt;/b&gt;[^&lt;]*&lt;a href="ratings" class="tn15more"&gt;([.0-9]+) Stimmen&lt;/a&gt;</expression>
            </RegExp>

(changed on 18.03.!)
Code:
        <!--Infos zu den Filmregisseuren abfragen-->
        <RegExp input="$$8" output="&lt;details&gt;\1&lt;/details&gt;" dest="6">
            <RegExp conditional="!fullcredits" input="$$1" output="\1" dest="5">
                <expression clear="yes" noclean="1">&lt;h5&gt;Regisseur:&lt;/h5&gt;(.*?)&lt;/div&gt;</expression>
            </RegExp>
            <RegExp conditional="fullcredits" input="$$1" output="\1" dest="5">
                <expression repeat="yes" clear="yes" noclean="1">Regie&lt;/a&gt;(.*?)&lt;/table&gt;</expression>
            </RegExp>
            <RegExp input="$$5" output="&lt;director&gt;\1&lt;/director&gt;" dest="8+">
                <expression repeat="yes" clear="yes">&lt;a href="/name/[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
            </RegExp>
            <expression clear="yes" noclean="1" />
        </RegExp>

Code:
            <!-- Originaltitel-->
            <RegExp input="$$5" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="4+">
                <!-- weitere/alternative Filmnamen zwischenspeichern -->
                <RegExp input="$$1" output="\1" dest="5">
                    <expression clear="yes" trim="1" noclean="1">&lt;h5&gt;Auch bekannt als:&lt;/h5&gt;&lt;div class="info-content"&gt;([^\n]*)</expression>
                </RegExp>
                <expression trim="1">&quot;([^&gt;\n]*)(?:&quot;[^&quot;\n]*\(Originaltitel\))</expression>
            </RegExp>



- Krauti - 2011-03-23 15:41

Hi segroove,
is it possible that you upload the complete .xml with all changes?

Sorry for my bad english.


- mbosner - 2011-03-24 13:34

Krauti Wrote:Hi segroove,
is it possible that you upload the complete .xml with all changes?

Sorry for my bad english.




If Eisenbahn does not want this: just send me a message and i will remove it.
But since i did not remove anything like credits etc. it should be fine.

It seems that Eisenbahn does not work anymore on this and i might clone his git repository and drive this on. But i really would like to see better regex support in xbmc first.

PS: I DID NOT TEST THE MODIFICATIONS i will have time to test them this weekend.

I just uploaded it:
metadata.imdb.de-3.0.5.1.zip


- Krauti - 2011-03-24 14:50

@segroove & mbosner
Thank you guys.
I have tested the rating. And now it works correctly.


- nicx76 - 2011-04-14 15:17

+1 for trailers Smile


- nicx76 - 2011-04-14 15:29

hm just tried the 3.0.5.1 and 3.0.5 but both are no more working with dharma 10.1 on mac osx.

is there any new version?


- hawi1981 - 2011-04-19 12:11

I also like this scraper. But can anybody programm it for trailers !! Please !


modded 3.0.5.1a - trackel - 2011-04-22 20:01

Hi,

i slightly modded the version from mbosner and added an option to always use the OFDB Plot.

metadata.imdb.de-3.0.5.1a.zip

have fun


- linuxluemmel - 2011-06-20 20:50

@Eisenbahn

Would it not be better to have a repo for the installation ?
If you like you can use Luxeria repository for your addon to distribute ...