aboutsummaryrefslogtreecommitdiff
path: root/addons/metadata.common.hdtrailers.net
diff options
context:
space:
mode:
authorspiff_ <spiff_@svn>2010-06-22 09:24:58 +0000
committerspiff_ <spiff_@svn>2010-06-22 09:24:58 +0000
commit1bfda8c792a10d5833bee9a82c446a05b455074e (patch)
tree9bd95f9820319389a674cab9e0366eac10397acd /addons/metadata.common.hdtrailers.net
parent9a921c39b8d0a366c7a52184cc86f8d47e685be5 (diff)
sync with git
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31296 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/metadata.common.hdtrailers.net')
-rw-r--r--addons/metadata.common.hdtrailers.net/addon.xml21
-rw-r--r--addons/metadata.common.hdtrailers.net/hdtrailers.xml62
2 files changed, 83 insertions, 0 deletions
diff --git a/addons/metadata.common.hdtrailers.net/addon.xml b/addons/metadata.common.hdtrailers.net/addon.xml
new file mode 100644
index 0000000000..947a02d064
--- /dev/null
+++ b/addons/metadata.common.hdtrailers.net/addon.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<addon id="metadata.common.hdtrailers.net"
+ name="HD-Trailers common scraper functions"
+ version="1.0.1"
+ provider-name="Bence Nádas (olympia)">
+ <requires>
+ <import addon="xbmc.metadata" version="1.0"/>
+ </requires>
+ <extension point="xbmc.metadata.scraper.library"
+ library="hdtrailers.xml"/>
+ <extension point="xbmc.addon.metadata">
+ <summary lang="en">HD-Trailers.net Scraper Library</summary>
+ <summary lang="hu">HD-Trailers.net Scraper Könyvtár</summary>
+ <summary lang="nl">HD-Trailers.net Scraper Collectie</summary>
+ <description lang="en">Download Movie Trailers from www.hd-trailers.net</description>
+ <description lang="hu">Filmelőzetesek letöltése a www.hd-trailers.net-ről.</description>
+ <description lang="nl">Download trailers van www.hd-trailers.net</description>
+ <minversion>20000</minversion>
+ <platform>all</platform>
+ </extension>
+</addon>
diff --git a/addons/metadata.common.hdtrailers.net/hdtrailers.xml b/addons/metadata.common.hdtrailers.net/hdtrailers.xml
new file mode 100644
index 0000000000..5adc11348f
--- /dev/null
+++ b/addons/metadata.common.hdtrailers.net/hdtrailers.xml
@@ -0,0 +1,62 @@
+<scraperfunctions>
+ <GetHDTrailersnet480p dest="3">
+ <RegExp input="$$6" output="&lt;details&gt;&lt;url function=&quot;Parse480pTrailer&quot;&gt;http://www.hd-trailers.net/blog/?s=&quot;\1%20%28Theatrical%20Trailer%29%22&lt;/url&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="\1" dest="6">
+ <expression noclean="1" fixchars="1" trim="1" encode="1">(.*)</expression>
+ </RegExp>
+ <expression noclean="1" />
+ </RegExp>
+ </GetHDTrailersnet480p>
+ <GetHDTrailersnet720p dest="3">
+ <RegExp input="$$6" output="&lt;details&gt;&lt;url function=&quot;Parse720pTrailer&quot;&gt;http://www.hd-trailers.net/blog/?s=&quot;\1%20%28Theatrical%20Trailer%29%22&lt;/url&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="\1" dest="6">
+ <expression noclean="1" fixchars="1" trim="1" encode="1">(.*)</expression>
+ </RegExp>
+ <expression noclean="1" />
+ </RegExp>
+ </GetHDTrailersnet720p>
+ <GetHDTrailersnet1080p dest="3">
+ <RegExp input="$$6" output="&lt;details&gt;&lt;url function=&quot;Parse1080pTrailer&quot;&gt;http://www.hd-trailers.net/blog/?s=&quot;\1%20%28Theatrical%20Trailer%29%22&lt;/url&lt;/details&gt;" dest="3">
+ <RegExp input="$$1" output="\1" dest="6">
+ <expression noclean="1" fixchars="1" trim="1" encode="1">(.*)</expression>
+ </RegExp>
+ <expression noclean="1" />
+ </RegExp>
+ </GetHDTrailersnet1080p>
+ <Parse480pTrailer dest="5">
+ <!--Fetch 480p trailer link from hdtrailers.net-->
+ <RegExp input="$$1" output="&lt;details&gt;&lt;trailer&gt;http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
+ <expression noclean="1">sid=(\d*)"&gt;480p&lt;/a&gt;</expression>
+ </RegExp>
+ </Parse480pTrailer>
+ <Parse720pTrailer dest="5">
+ <RegExp input="$$6" output="&lt;details&gt;&lt;trailer&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
+ <!--Fallback to fetch 480p trailer link if 720p is not available-->
+ <RegExp input="$$1" output="http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1" dest="6">
+ <expression noclean="1">sid=(\d*)"&gt;480p&lt;/a&gt;</expression>
+ </RegExp>
+ <!--Fetch 720p trailer link from hdtrailers.net-->
+ <RegExp input="$$1" output="http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1" dest="6">
+ <expression noclean="1">sid=(\d*)"&gt;720p&lt;/a&gt;</expression>
+ </RegExp>
+ <expression noclean="1" />
+ </RegExp>
+ </Parse720pTrailer>
+ <Parse1080pTrailer dest="5">
+ <RegExp input="$$6" output="&lt;details&gt;&lt;trailer&gt;\1&lt;/trailer&gt;&lt;/details&gt;" dest="5">
+ <!--Fallback to fetch 480p trailer link if 720p and 1080p are not available-->
+ <RegExp input="$$1" output="http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1" dest="6">
+ <expression noclean="1">sid=(\d*)"&gt;480p&lt;/a&gt;</expression>
+ </RegExp>
+ <!--Fallback to fetch 720p trailer link if 1080p is not available-->
+ <RegExp input="$$1" output="http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1" dest="6">
+ <expression noclean="1">sid=(\d*)"&gt;720p&lt;/a&gt;</expression>
+ </RegExp>
+ <!--Fetch 1080p trailer link from hdtrailers.net-->
+ <RegExp input="$$1" output="http://playlist.yahoo.com/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=\1" dest="6">
+ <expression noclean="1">sid=(\d*)"&gt;1080p&lt;/a&gt;</expression>
+ </RegExp>
+ <expression noclean="1" />
+ </RegExp>
+ </Parse1080pTrailer>
+</scraperfunctions>