The branch, dharma has been updated
       via  645b50caa2bad36f2eae69a634381b7e8d41392a (commit)
      from  d92399714b44750ddc67643bae3e883aa46c39ac (commit)

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

commit 645b50caa2bad36f2eae69a634381b7e8d41392a
Author: olympia <[email protected]>
Date:   Mon Apr 4 18:50:50 2011 +0200

    [metadata.port.hu] updated to version 1.4.0

diff --git a/metadata.port.hu/addon.xml b/metadata.port.hu/addon.xml
index 453b118..184abcd 100644
--- a/metadata.port.hu/addon.xml
+++ b/metadata.port.hu/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.port.hu"
        name="Port.hu"
-       version="1.3.6"
+       version="1.4.0"
        provider-name="Bence Nádas (olympia)">
   <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.8"/>
     <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.6"/>
   </requires>
   <extension point="xbmc.metadata.scraper.movies"
              language="hu"
diff --git a/metadata.port.hu/changelog.txt b/metadata.port.hu/changelog.txt
index d4413ec..c3d7aff 100644
--- a/metadata.port.hu/changelog.txt
+++ b/metadata.port.hu/changelog.txt
@@ -1,3 +1,6 @@
+[B]1.4.0[/B]
+- added: fallback to imdb plot if no plot is available on port.hu
+
 [B]1.3.6[/B]
 - fixed: actor images
 
diff --git a/metadata.port.hu/porthu.xml b/metadata.port.hu/porthu.xml
index 3e70592..4486311 100644
--- a/metadata.port.hu/porthu.xml
+++ b/metadata.port.hu/porthu.xml
@@ -39,6 +39,10 @@
        <GetDetails clearbuffers="no" dest="3">
                <!--Create details xml with iso-8859-2 encoding-->
                <RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; 
encoding=&quot;iso-8859-2&quot; 
standalone=&quot;yes&quot;?&gt;&lt;details&gt;\1&lt;/details&gt;" dest="3">
+                       <!--Get imdb ID from port.hu-->
+                       <RegExp input="$$1" output="\1" dest="9">
+                               <expression clear="yes">i_param=([0-9]*)" 
target="top"&gt;IMDb&lt;/a&gt;&lt;/span&gt;</expression>
+                       </RegExp>
                        <!--Get Hungarian Title from port.hu and store it in 
buffer 20 for future use-->
                        <RegExp input="$$1" output="\1" dest="20">
                                
<expression>class="blackbigtitle"&gt;([^&lt;]*)</expression>
@@ -48,9 +52,15 @@
                                <expression>Magyar$</expression>
                        </RegExp>
                        <!--Get plot from port.hu-->
-                       <RegExp input="$$1" 
output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
+                       <RegExp input="$$1" output="\1" dest="15">
                                <expression>&lt;div 
class="separator"&gt;&lt;/div&gt;\n&lt;span 
class="txt"&gt;(.*?)&lt;/span&gt;</expression>
                        </RegExp>
+                       <RegExp input="$$15" output="&lt;chain 
function=&quot;GetIMDBPlotById&quot;&gt;tt$$9&lt;/chain&gt;" dest="5+">
+                               <expression>^$</expression>
+                       </RegExp>
+                       <RegExp input="$$15" 
output="&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
+                               <expression>(.+)</expression>
+                       </RegExp>
                        <!--Get the first sentence of the plot from port.hu as 
an outline-->
                        <RegExp input="$$1" 
output="&lt;outline&gt;\1.&lt;/outline&gt;" dest="5+">
                                <expression>&lt;div 
class="separator"&gt;&lt;/div&gt;\n&lt;span 
class="txt"&gt;(.{180,}?)[.?!]</expression>
@@ -75,10 +85,6 @@
                        <RegExp input="$$10" output="\1" dest="5+">
                                <!--Create imdb URL based on the fetched imdb 
ID-->
                                <RegExp input="$$9" output="&lt;url 
cache=&quot;tt\1-main.html&quot; 
function=&quot;GetIMDBDetails&quot;&gt;http://akas.imdb.com/title/tt\1/&lt;/url&gt;";
 dest="10">
-                                       <!--Get imdb ID from port.hu-->
-                                       <RegExp input="$$1" output="\1" 
dest="9">
-                                               <expression 
clear="yes">i_param=([0-9]*)" 
target="top"&gt;IMDb&lt;/a&gt;&lt;/span&gt;</expression>
-                                       </RegExp>
                                        <expression />
                                </RegExp>
                                <expression noclean="1" />

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

Summary of changes:
 metadata.port.hu/addon.xml     |    4 ++--
 metadata.port.hu/changelog.txt |    3 +++
 metadata.port.hu/porthu.xml    |   16 +++++++++++-----
 3 files changed, 16 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Scrapers

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to