The branch, dharma has been updated
       via  90152d448e78810e9e987a9a2ca9edfaed5c5c87 (commit)
      from  5dad3c6cf2f8d59c9a69a41a44c069711b56be3d (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scrapers;a=commit;h=90152d448e78810e9e987a9a2ca9edfaed5c5c87

commit 90152d448e78810e9e987a9a2ca9edfaed5c5c87
Author: olympia <[email protected]>
Date:   Mon Jan 10 20:53:41 2011 +0100

    [metadata.common.hdtrailers.net] fixed scraping according to the agreed way

diff --git a/metadata.common.hdtrailers.net/addon.xml 
b/metadata.common.hdtrailers.net/addon.xml
index 5076df5..8fb4286 100644
--- a/metadata.common.hdtrailers.net/addon.xml
+++ b/metadata.common.hdtrailers.net/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.common.hdtrailers.net"
        name="HD-Trailers common scraper functions"
-       version="1.0.4"
+       version="1.0.5"
        provider-name="Bence Nádas (olympia)">
   <requires>
     <import addon="xbmc.metadata" version="1.0"/>
diff --git a/metadata.common.hdtrailers.net/hdtrailers.xml 
b/metadata.common.hdtrailers.net/hdtrailers.xml
index 1c1aadc..de56845 100644
--- a/metadata.common.hdtrailers.net/hdtrailers.xml
+++ b/metadata.common.hdtrailers.net/hdtrailers.xml
@@ -1,24 +1,24 @@
 <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&gt;&lt;/details&gt;";
 dest="3">
-                       <RegExp input="$$1" output="\1" dest="6">
-                               <expression noclean="1" fixchars="1" trim="1" 
encode="1">(.*)</expression>
+               <RegExp input="$$6" output="&lt;details&gt;&lt;url 
function=&quot;Parse480pTrailer&quot; 
cache=&quot;hd-trailers-\1.xml&quot;&gt;http://xbmc.hd-trailers.net/movie/\1&lt;/url&gt;&lt;/details&gt;";
 dest="3">
+                       <RegExp input="$$1" output="\1-" dest="6">
+                               <expression repeat="yes" 
trim="1">([\w]+)</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&gt;&lt;/details&gt;";
 dest="3">
+               <RegExp input="$$6" output="&lt;details&gt;&lt;url 
function=&quot;Parse720pTrailer&quot; 
cache=&quot;hd-trailers-\1.xml&quot;&gt;http://xbmc.hd-trailers.net/movie/\1&lt;/url&gt;&lt;/details&gt;";
 dest="3">
                        <RegExp input="$$1" output="\1" dest="6">
-                               <expression noclean="1" fixchars="1" trim="1" 
encode="1">(.*)</expression>
+                               <expression trim="1" noclean="1" 
encode="1">([\w]+)</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&gt;&lt;/details&gt;";
 dest="3">
+               <RegExp input="$$6" output="&lt;details&gt;&lt;url 
function=&quot;Parse1080pTrailer&quot; 
cache=&quot;hd-trailers-\1.xml&quot;&gt;http://xbmc.hd-trailers.net/movie/\1&lt;/url&gt;&lt;/details&gt;";
 dest="3">
                        <RegExp input="$$1" output="\1" dest="6">
-                               <expression noclean="1" fixchars="1" trim="1" 
encode="1">(.*)</expression>
+                               <expression trim="1" noclean="1" 
encode="1">([\w]+)</expression>
                        </RegExp>
                        <expression noclean="1" />
                </RegExp>
@@ -26,18 +26,18 @@
        <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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res480p</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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res480p</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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res720p</expression>
                        </RegExp>
                        <expression noclean="1" />
                </RegExp>
@@ -46,15 +46,15 @@
                <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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res480p</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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res720p</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>
+                       <expression 
noclean="1">&quot;&gt;Trailer&lt;/td&gt;.*?sid=(\d*)&quot; 
rel=&quot;lightbox\[res1080p</expression>
                        </RegExp>
                        <expression noclean="1" />
                </RegExp>
diff --git a/metadata.imdb.com/addon.xml b/metadata.imdb.com/addon.xml
index 4d77c5d..a54be8c 100644
--- a/metadata.imdb.com/addon.xml
+++ b/metadata.imdb.com/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.imdb.com"
        name="IMDb"
-        version="2.1.4"
+        version="2.1.5"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.metadata" version="1.0"/>
@@ -9,7 +9,7 @@
     <import addon="metadata.common.movieposterdb.com" version="1.0.4"/>
     <import addon="metadata.common.imdb.com" version="2.0.7"/>
     <import addon="metadata.common.impa.com" version="1.0.3"/>
-    <import addon="metadata.common.hdtrailers.net" version="1.0.4"/>
+    <import addon="metadata.common.hdtrailers.net" version="1.0.5"/>
   </requires>
   <extension point="xbmc.metadata.scraper.movies"
              language="en"
diff --git a/metadata.imdb.com/changelog.txt b/metadata.imdb.com/changelog.txt
index 358fce8..9cd71f0 100644
--- a/metadata.imdb.com/changelog.txt
+++ b/metadata.imdb.com/changelog.txt
@@ -1,3 +1,6 @@
+[B]2.1.5[/B]
+- fixed: trailer scraping from hd-trailers.net
+
 [B]2.1.4[/B]
 - fixed: fixed artists due to IMDb changes
 
diff --git a/metadata.themoviedb.org/addon.xml 
b/metadata.themoviedb.org/addon.xml
index 35d701b..5b161d9 100644
--- a/metadata.themoviedb.org/addon.xml
+++ b/metadata.themoviedb.org/addon.xml
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.themoviedb.org"
        name="The MovieDB"
-       version="1.2.0"
+       version="1.2.1"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.metadata" version="1.0"/>
     <import addon="metadata.common.themoviedb.org" version="1.0.7"/>
-    <import addon="metadata.common.hdtrailers.net" version="1.0.4"/>
+    <import addon="metadata.common.hdtrailers.net" version="1.0.5"/>
     <import addon="metadata.common.imdb.com" version="2.0.5"/>
   </requires>
   <extension point="xbmc.metadata.scraper.movies"
diff --git a/metadata.themoviedb.org/changelog.txt 
b/metadata.themoviedb.org/changelog.txt
index 9c889b1..2d9b120 100644
--- a/metadata.themoviedb.org/changelog.txt
+++ b/metadata.themoviedb.org/changelog.txt
@@ -1,3 +1,6 @@
+[B]1.2.1[/B]
+- fixed: trailer scraping from hd-trailers.net
+
 [B]1.2.0[/B]
 - Added option to scrape rating from IMDb
 

-----------------------------------------------------------------------

Summary of changes:
 metadata.common.hdtrailers.net/addon.xml      |    2 +-
 metadata.common.hdtrailers.net/hdtrailers.xml |   26 ++++++++++++------------
 metadata.imdb.com/addon.xml                   |    4 +-
 metadata.imdb.com/changelog.txt               |    3 ++
 metadata.themoviedb.org/addon.xml             |    4 +-
 metadata.themoviedb.org/changelog.txt         |    3 ++
 6 files changed, 24 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
Scrapers

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to