The branch, frodo has been updated
       via  4ebf52d14a508605e28354e3d6f846e884f41761 (commit)
      from  2621d9e7bf09e577028088c3f1210648fa0c5c4d (commit)

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

commit 4ebf52d14a508605e28354e3d6f846e884f41761
Author: olympia <[email protected]>
Date:   Wed Feb 6 21:18:23 2013 +0100

    [metadata.common.rt.com] updated to version 1.4.0

diff --git a/metadata.common.rt.com/addon.xml b/metadata.common.rt.com/addon.xml
index 521d859..092a8f4 100644
--- a/metadata.common.rt.com/addon.xml
+++ b/metadata.common.rt.com/addon.xml
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.common.rt.com"
        name="Rotten Tomatoes common scraper functions"
-       version="1.3.0"
+       version="1.4.0"
        provider-name="mortstar">
   <requires>
-    <import addon="xbmc.metadata" version="1.0"/>
+    <import addon="xbmc.metadata" version="2.1.0"/>
   </requires>
   <extension point="xbmc.metadata.scraper.library"
              library="rt.xml"/>
diff --git a/metadata.common.rt.com/changelog.txt 
b/metadata.common.rt.com/changelog.txt
index 7ce357e..9c1fccb 100644
--- a/metadata.common.rt.com/changelog.txt
+++ b/metadata.common.rt.com/changelog.txt
@@ -1,3 +1,6 @@
+[B]1.4.0[/B]
+- Added: Common function to grab critics' consensus to 'plot' of movie
+
 [B]1.3.0[/B]
 - Added: Common function to grab plot
 
diff --git a/metadata.common.rt.com/rt.xml b/metadata.common.rt.com/rt.xml
index b328f7d..b67c3ec 100644
--- a/metadata.common.rt.com/rt.xml
+++ b/metadata.common.rt.com/rt.xml
@@ -18,20 +18,6 @@
                </RegExp>
        </GetRTRatingById>
 
-       <!-- Get Rotten Tomatoes URL from IMDb ID for outline -->
-       <GetRTOutlineById dest="5">
-               <RegExp input="$$1" output="&lt;details&gt;&lt;url 
function=&quot;ParseRTOutline&quot; 
cache=&quot;\1-rt.html&quot;&gt;http://www.rottentomatoes.com/alias?type=imdbid&amp;s=\1&lt;/url&gt;&lt;/details&gt;";
 dest="5">
-                       <expression>([0-9]{7})</expression>
-               </RegExp>
-       </GetRTOutlineById>
-
-       <!-- Get Rotten Tomatoes URL from IMDb ID for plot -->
-       <GetRTPlotById dest="5">
-               <RegExp input="$$1" output="&lt;details&gt;&lt;url 
function=&quot;ParseRTPlot&quot; 
cache=&quot;\1-rt.html&quot;&gt;http://www.rottentomatoes.com/alias?type=imdbid&amp;s=\1&lt;/url&gt;&lt;/details&gt;";
 dest="5">
-                       <expression>([0-9]{7})</expression>
-               </RegExp>
-       </GetRTPlotById>
-
        <!-- TomatoMeter from All Critics -->
        <ParseRTTomAll dest="5">
                <RegExp input="$$1" output="&lt;details&gt;&lt;rating 
max=&quot;100&quot;&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;&lt;/details&gt;"
 dest="5">
@@ -69,6 +55,11 @@
        </ParseRTAveTop>
 
        <!-- Critics' Consensus -->
+       <GetRTOutlineById dest="5">
+               <RegExp input="$$1" output="&lt;details&gt;&lt;url 
function=&quot;ParseRTOutline&quot; 
cache=&quot;\1-rt.html&quot;&gt;http://www.rottentomatoes.com/alias?type=imdbid&amp;s=\1&lt;/url&gt;&lt;/details&gt;";
 dest="5">
+                       <expression>([0-9]{7})</expression>
+               </RegExp>
+       </GetRTOutlineById>
        <ParseRTOutline dest="5">
                <RegExp input="$$1" 
output="&lt;details&gt;&lt;outline&gt;\1&lt;/outline&gt;&lt;/details&gt;" 
dest="5">
                        <expression 
noclean="1">critic_consensus&quot;&gt;([^&lt;]+)&lt;/p&gt;</expression>
@@ -78,7 +69,27 @@
                </RegExp>
        </ParseRTOutline>
 
+       <!-- Critics' Consensus -->
+       <GetRTCConsensusToPlotById dest="5">
+               <RegExp input="$$1" output="&lt;details&gt;&lt;url 
function=&quot;ParseRTCConsensusToPlot&quot; 
cache=&quot;\1-rt.html&quot;&gt;http://www.rottentomatoes.com/alias?type=imdbid&amp;s=\1&lt;/url&gt;&lt;/details&gt;";
 dest="5">
+                       <expression>([0-9]{7})</expression>
+               </RegExp>
+       </GetRTCConsensusToPlotById>
+       <ParseRTCConsensusToPlot dest="5">
+               <RegExp input="$$1" 
output="&lt;details&gt;&lt;plot&gt;\1&lt;/plot&gt;&lt;/details&gt;" dest="5">
+                       <expression 
noclean="1">critic_consensus&quot;&gt;([^&lt;]+)&lt;/p&gt;</expression>
+               </RegExp>
+               <RegExp input="$$5" output="" dest="5">
+                       <expression>&lt;details&gt;&lt;plot&gt;No consensus 
yet.&lt;/plot&gt;&lt;/details&gt;</expression>
+               </RegExp>
+       </ParseRTCConsensusToPlot>
+
        <!-- Plot -->
+       <GetRTPlotById dest="5">
+               <RegExp input="$$1" output="&lt;details&gt;&lt;url 
function=&quot;ParseRTPlot&quot; 
cache=&quot;\1-rt.html&quot;&gt;http://www.rottentomatoes.com/alias?type=imdbid&amp;s=\1&lt;/url&gt;&lt;/details&gt;";
 dest="5">
+                       <expression>([0-9]{7})</expression>
+               </RegExp>
+       </GetRTPlotById>
        <ParseRTPlot dest="5">
                <RegExp input="$$1" 
output="&lt;details&gt;&lt;plot&gt;\1\2&lt;/plot&gt;&lt;/details&gt;" dest="5">
                        <expression trim="1">class=&quot;movie_synopsis&quot; 
itemprop=&quot;description&quot;&gt;[^\w]*([^\n]*)[^&gt;]*&gt;\s([^~&lt;]*)</expression>

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

Summary of changes:
 metadata.common.rt.com/addon.xml     |    4 +-
 metadata.common.rt.com/changelog.txt |    3 ++
 metadata.common.rt.com/rt.xml        |   39 +++++++++++++++++++++------------
 3 files changed, 30 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
Scrapers

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to