aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorspiff_ <spiff_@svn>2010-01-24 15:19:24 +0000
committerspiff_ <spiff_@svn>2010-01-24 15:19:24 +0000
commite5bacfc9e932125424323b60d8f149e579bc4c58 (patch)
tree8f7e9bdcfa3d50f902e2ba777167398d45966335 /system
parent412de7d8f41ff0124e826726a267063235810074 (diff)
added: filmbasen movie scraper (norwegian). only briefly tested, feedback appreciated. the gfx is just a horrible hack until i can nag someone who knows what they are doing into helping me ;)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27138 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system')
-rw-r--r--system/scrapers/video/filmbasen.pngbin0 -> 2447 bytes
-rw-r--r--system/scrapers/video/filmbasen.xml89
2 files changed, 89 insertions, 0 deletions
diff --git a/system/scrapers/video/filmbasen.png b/system/scrapers/video/filmbasen.png
new file mode 100644
index 0000000000..dd9746d8ba
--- /dev/null
+++ b/system/scrapers/video/filmbasen.png
Binary files differ
diff --git a/system/scrapers/video/filmbasen.xml b/system/scrapers/video/filmbasen.xml
new file mode 100644
index 0000000000..369e5031df
--- /dev/null
+++ b/system/scrapers/video/filmbasen.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<scraper framework="1.1" date="2010-01-24" name="Filmbasen" content="movies" thumb="filmbasen.png" language="no">
+ <include>common/tmdb.xml</include>
+<!-- <GetSettings dest="3">-->
+<!-- <RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">-->
+<!-- <RegExp input="$$1" output="&lt;setting label=&quot;Enable Fanart&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">-->
+<!-- <expression/>-->
+<!-- </RegExp>-->
+<!-- <expression noclean="1"/>-->
+<!-- </RegExp>-->
+<!-- </GetSettings>-->
+ <NfoUrl dest="3">
+ <RegExp input="$$1" output="&lt;url&gt;\1&lt;/url&gt;" dest="3">
+ <expression clear="yes" noclean="1">(http://www.dagbladet.no/film/*)</expression>
+ </RegExp>
+ </NfoUrl>
+ <CreateSearchUrl dest="3">
+ <RegExp input="$$1" output="&lt;url&gt;http://www.dagbladet.no/altomfilm/find.php?string=\1&amp;type=film&lt;/url&gt;" dest="3">
+ <expression noclean="1"/>
+ </RegExp>
+ </CreateSearchUrl>
+ <GetSearchResults dest="8">
+ <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;results sorted=&quot;yes&quot;&gt;\1&lt;/results&gt;" dest="8">
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\3&lt;/title&gt;&lt;url cache=&quot;\2.html&quot;&gt;http://www.dagbladet.no\1&lt;/url&gt;&lt;id&gt;\2&lt;/id&gt;&lt;year&gt;\4&lt;/year&gt;&lt;/entity&gt;" dest="5+">
+ <expression repeat="yes" noclean="1">&lt;a href=&apos;(/film/film/\?id=([0-9]+))&apos;&gt;&lt;b&gt;([^&lt;]*)&lt;/b&gt;&lt;/a&gt;[^&lt;]*?([0-9]+)&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\2" dest="2">
+ <expression noclean="1">&lt;h1 class=&quot;guardian( title)?&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;$$2&lt;/title&gt;&lt;url cache=&quot;\1.html&quot;&gt;http://www.dagbladet.no/film/film/?id=\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="5+">
+ <expression noclean="1">javascript:throwDice\(([^,]*?),</expression>
+ </RegExp>
+ <expression clear="yes" noclean="1"/>
+ </RegExp>
+ </GetSearchResults>
+ <GetDetails dest="3">
+ <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="&lt;title&gt;\2&lt;/title&gt;" dest="5">
+ <expression noclean="1">&lt;h1 class=&quot;guardian( title)?&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;" dest="5+">
+ <expression noclean="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="4">
+ <expression>Premiere.r:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url function=&quot;GetTMDBThumbsById&quot;&gt;http://www.google.com/search?q=\1+%20($$4)+site:imdb.com&lt;/url&gt;" dest="5+">
+ <expression noclean="1" encode="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;http://www.google.com/search?q=\1+%20($$4)+site:imdb.com&lt;/url&gt;" dest="5+">
+ <expression noclean="1" encode="1">Originaltittel:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
+ <expression>Aldersgrense:&lt;/h5&gt;([0-9]+)</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
+ <expression>Premiere.r:&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="4">
+ <expression noclean="1">Kategori\(er\):&lt;/h5&gt;([^&lt;]*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$4" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
+ <expression repeat="yes" noclean="1">([^,]*?), ?</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
+ <expression>OM FILMEN: (.*?)&lt;/div&gt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="4">
+ <expression noclean="1">Skuespillere&lt;/h2(.*?)&lt;/ul&gt;</expression>
+ </RegExp>
+ <RegExp input="$$4" output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;role&gt;\3&lt;/role&gt;&lt;/actor&gt;" dest="5+">
+ <expression repeat="yes" noclean="1">&lt;a href=&quot;[^&gt;]*?&gt;([^&lt;]*?)&lt;/a&gt;&lt;br&gt;( - ([^&lt;]*))?&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="\1" dest="4">
+ <expression clear="yes" noclean="1">Regi:&lt;/h5&gt;(.*?)&lt;/li</expression>
+ </RegExp>
+ <RegExp input="$$4" output="&lt;credits&gt;\1&lt;/credits&gt;" dest="5+">
+ <expression repeat="yes" noclean="1">a href=[^&gt;]*?&gt;([^&lt;]*)&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;votes&gt;\1&lt;/votes&gt;" dest="5+">
+ <expression>votesAverage&quot;&gt;([0-9]+)&lt;</expression>
+ </RegExp>
+ <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;" dest="5+">
+ <expression>Lesernes terningkast.*?javascript:throwDice\([^,]*?,[^,]*?,(.*?)\)</expression>
+ </RegExp>
+ <expression noclean="1"/>
+ </RegExp>
+ </GetDetails>
+</scraper>