The branch, dharma has been updated
       via  24a75935192ce9b9e8b277947db6d3d95564c77e (commit)
      from  181f3c1dde55d37738f4b63e7ff4321f050fbf28 (commit)

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

commit 24a75935192ce9b9e8b277947db6d3d95564c77e
Author: olympia <[email protected]>
Date:   Thu May 5 07:21:28 2011 +0200

    [metadata.ptgate.pt] fix broken scraper

diff --git a/metadata.ptgate.pt/addon.xml b/metadata.ptgate.pt/addon.xml
index 50b8abf..dda6a94 100644
--- a/metadata.ptgate.pt/addon.xml
+++ b/metadata.ptgate.pt/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="metadata.ptgate.pt"
        name="PTGate"
-        version="1.1.1"
+        version="1.2.0"
        provider-name="apaneiro">
   <requires>
     <import addon="xbmc.metadata" version="1.0"/>
@@ -24,6 +24,5 @@
     <description lang="kr">cinema.ptgate.pt 에서 영화 정보 
다운로드</description>
     <description lang="pl">Pobieraj informacje o filmach z 
cinema.ptgate.pt</description>
     <description lang="pt">Descarregar informação de filmes de 
cinema.ptgate.pt</description>
-    <broken>Portal layout has changed.</broken>
   </extension>
 </addon>
diff --git a/metadata.ptgate.pt/ptgate.xml b/metadata.ptgate.pt/ptgate.xml
index ae1d104..57e404c 100644
--- a/metadata.ptgate.pt/ptgate.xml
+++ b/metadata.ptgate.pt/ptgate.xml
@@ -1,202 +1,210 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<scraper framework="1.1" date="2009-08-10">
-       <NfoUrl dest="3">
-               <RegExp input="$$1" output="&lt;url&gt;\1&lt;/url&gt;" dest="3">
-                       <expression clear="yes" 
noclean="1">(http://www.cinema.ptgate.pt/filmes/[0-9]*)</expression>
-               </RegExp>
-       </NfoUrl>
-       <CreateSearchUrl dest="3">
-               <RegExp input="$$1" 
output="&lt;url&gt;http://www.cinema.ptgate.pt/pesquisa/?q=\1&lt;/url&gt;"; 
dest="3">
-                       <expression noclean="1">([^\(]+)</expression>
-               </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&gt;\1&lt;/results&gt;" dest="8">
-                       <RegExp dest="5+" input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\2 - \4 
(\3)&lt;/title&gt;&lt;url&gt;http://www.cinema.ptgate.pt/filmes/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;";>
-                               <expression repeat="yes" trim="2,3">&lt;a 
href=&quot;/filmes/([0-9]*)&quot;&gt;(.*?)&lt;/a&gt; 
&lt;small&gt;([^\(]*)\(([0-9]*)\)</expression>
-                       </RegExp>
-                       <RegExp dest="5" input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\2 - \3 
(\4)&lt;/title&gt;&lt;url&gt;http://www.cinema.ptgate.pt/filmes/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;";>
-                               <expression trim="2,4">&lt;a 
href=&quot;/filmes/([0-9]*)&quot; 
class=&quot;upper&quot;&gt;([^&lt;]*)&lt;/a&gt; &lt;small&gt;\(([0-9]*)\)&lt;br 
/&gt;([^&lt;]*)</expression>
-                       </RegExp>
-                       <expression noclean="1"/>
-               </RegExp>
-       </GetSearchResults>
-       <GetDetails clearbuffers="no" dest="3">
-               <RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" 
dest="3">
-                       <!-- Id -->
-                       <RegExp dest="5" input="$$2" 
output="&lt;id&gt;\1&lt;/id&gt;">
-                               <expression/>
-                       </RegExp>
-                       <!-- Title -->
-                       <RegExp dest="5+" input="$$1" 
output="&lt;title&gt;\1&lt;/title&gt;">
-                               
<expression>&lt;h2&gt;([^&lt;]*)&lt;/h2&gt;</expression>
-                       </RegExp>
-                       <!-- Plot -->
-                       <RegExp dest="5+" input="$$1" 
output=";&lt;plot&gt;\1&lt;/plot&gt;">
-                               
<expression>&lt;b&gt;sinopse[^\n]*\s+([^\n]*)</expression>
-                       </RegExp>
-                       <!-- Outline -->
-                       <RegExp dest="5+" input="$$1" 
output="&lt;outline&gt;\1&lt;/outline&gt;">
-                               
<expression>&lt;b&gt;sinopse[^\n]*\s+(.*?[^A-Z]\.)</expression>
-                       </RegExp>
-                       <!-- Genre -->
-                       <RegExp dest="5+" input="$$9" 
output="&lt;genre&gt;\1&lt;/genre&gt;">
-                               <RegExp dest="9" input="$$1" output="\1,">
-                                       <expression>&lt;b&gt;g.nero&lt;/b&gt;: 
([^&lt;]*)</expression>
-                               </RegExp>
-                               <expression repeat="yes" 
trim="1">([^,]+),</expression>
-                       </RegExp>
-                       <!-- Year -->
-                       <RegExp dest="11" input="$$1" 
output="&lt;year&gt;\1&lt;/year&gt;">
-                               <expression>&lt;b&gt;ano&lt;/b&gt;: 
([^&lt;]*)</expression>
-                       </RegExp>
-                       <RegExp dest="5+" input="$$11" output="\1">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- Actor -->
-                       <RegExp dest="8" input="$$9" 
output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;">
-                               <RegExp input="$$1" output="\1," dest="9">
-                                       
<expression>&lt;b&gt;int.rpretes&lt;/b&gt;&lt;br /&gt;\s*(.*?)&lt;br 
/&gt;</expression>
-                               </RegExp>
-                               <expression clear="yes" repeat="yes" 
trim="1">([^,]*),</expression>
-                       </RegExp>
-                       <RegExp dest="4" input="$$8" 
output="&lt;actors&gt;\1&lt;/actors&gt;">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <RegExp dest="5+" input="$$8" conditional="ptgateonly" 
output="\1">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- Director -->
-                       <RegExp dest="8" input="$$9" 
output="&lt;director&gt;\1&lt;/director&gt;">
-                               <RegExp input="$$1" output="\1," dest="9">
-                                       
<expression>&lt;b&gt;realiza..o&lt;/b&gt;&lt;br /&gt;\s*(.*?)&lt;br 
/&gt;</expression>
-                               </RegExp>
-                               <expression repeat="yes" 
trim="1">([^,]+),</expression>
-                       </RegExp>
-                       <RegExp dest="4+" input="$$8" 
output="&lt;directors&gt;\1&lt;/directors&gt;">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <RegExp dest="5+" input="$$8" conditional="ptgateonly" 
output="\1">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- Add PTGate image as last Thumb -->
-                       <RegExp dest="12" input="$$2" 
output="&lt;thumb&gt;http://www.cinema.ptgate.pt/Movies/\1.jpg&lt;/thumb&gt;";>
-                               <expression/>
-                       </RegExp>
-                       <RegExp dest="5+" input="$$12" conditional="ptgateonly" 
output="\1">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- Add PT Distributor -->
-                       <RegExp dest="13" input="$$1" 
output="&lt;studio&gt;Dist: \1&lt;/studio&gt;">
-                               <expression>&lt;b&gt;distribuidora&lt;/b&gt;: 
([^&lt;]*)</expression>
-                       </RegExp>
-                       <RegExp dest="5+" input="$$13" conditional="ptgateonly" 
output="\1">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- IMDB Details -->
-                       <RegExp dest="5+" input="$$10" 
conditional="!ptgateonly" output="\1">
-                               <!-- Use Google as last resort -->
-                               <RegExp dest="10" input="$$8" output="&lt;url 
function=&quot;GetIMDBfromGoogle&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;";>
-                                       <!-- search google for the original 
title -->
-                                       <RegExp input="$$1" output="\1" 
dest="7">
-                                               <expression 
trim="1">\&amp;#8250; ([^&lt;]+)&lt;br /&gt;</expression>
-                                       </RegExp>
-                                       <!-- add year to search string -->
-                                       <RegExp input="$$11" output="+\1" 
dest="8">
-                                               <expression/>
-                                       </RegExp>
-                                       <!-- remove spaces and , -->
-                                       <RegExp input="$$7" output="+\1" 
dest="8+">
-                                               <expression repeat="yes">([^ 
,]+)</expression>
-                                       </RegExp>
-                                       <expression/>
-                               </RegExp>
-                               <!-- use IMDB link on PTGATE, when available -->
-                               <RegExp dest="10" input="$$9" output="&lt;url 
function=&quot;GetIMDBDetails&quot;&gt;http://akas.imdb.com/title/\1/&lt;/url&gt;";>
-                                       <RegExp dest="9" input="$$1" 
output="\1">
-                                               <expression 
clear="yes">\.imdb\.com/title/(tt[0-9]*)</expression>
-                                       </RegExp>
-                                       <expression>(.+)</expression>
-                               </RegExp>
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <expression noclean="1"/>
-               </RegExp>
-       </GetDetails>
-       <GetIMDBfromGoogle clearbuffers="no" dest="3">
-               <RegExp input="$$5" dest="3" 
output="&lt;details&gt;\1&lt;/details&gt;">
-                       <RegExp input="$$1" dest="5" output="&lt;url url 
cache=&quot;tt\1-main.html&quot; 
function=&quot;GetIMDBDetails&quot;&gt;http://akas.imdb.com/title/\1/&lt;/url&gt;";>
-                               
<expression>\.imdb\.com/title/(tt[0-9]*)</expression>
-                       </RegExp>
-                       <expression noclean="1"/>
-               </RegExp>
-       </GetIMDBfromGoogle>
-       <GetIMDBDetails clearbuffers="no" dest="3">
-               <RegExp input="$$5" dest="3" 
output="&lt;details&gt;\1&lt;/details&gt;">
-                       <!-- IMDB Id -->
-                       <RegExp input="$$1" dest="2" output="\1">
-                               <expression>id=(tt[t0-9]*)</expression>
-                       </RegExp>
-                       <!-- Studio -->
-                       <RegExp input="$$1" 
output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5">
-                               <expression 
repeat="yes">"/company/[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;</expression>
-                       </RegExp>
-                       <RegExp input="$$13" output="\1" dest="5+">
-                               <expression noclean="1"/>
-                       </RegExp>
-                       <!-- Runtime -->
-                       <RegExp input="$$1" 
output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
-                               <expression 
trim="1">&lt;h4[^&gt;]*?&gt;Runtime:&lt;/h4&gt;[^0-9]*([0-9]+)</expression>
-                       </RegExp>
-                       <!-- Rating -->
-                       <RegExp input="$$1" 
output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
-                               <expression>&lt;span 
class="rating-rating"&gt;([0-9.]+).*?&gt;([0-9,]+) votes&lt;/a&gt;</expression>
-                       </RegExp>
-                       <!-- Actor -->
-                       <RegExp conditional="!fullcredits" input="$$2" 
output="&lt;chain function=&quot;GetIMDBCastById&quot;&gt;$$2&lt;/chain&gt;" 
dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Director -->
-                       <RegExp conditional="!fullcredits" output="&lt;chain 
function=&quot;GetIMDBDirectorsById&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Credits -->
-                       <RegExp conditional="!fullcredits" output="&lt;chain 
function=&quot;GetIMDBWritersById&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Actor, full -->
-                       <RegExp conditional="fullcredits" input="$$2" 
output="&lt;chain 
function=&quot;GetIMDBFullCastById&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Director, full -->
-                       <RegExp conditional="fullcredits" input="$$2" 
output="&lt;chain 
function=&quot;GetIMDBFullDirectorsById&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Credits, full -->
-                       <RegExp conditional="fullcredits" input="$$2" 
output="&lt;chain 
function=&quot;GetIMDBFullWritersById&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Thumb, IMPAwards -->
-                       <RegExp conditional="impawards" input="$$2" 
output="&lt;chain function=&quot;GetIMPAThumbsById&quot;&gt;$$2&lt;/chain&gt;" 
dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Poster, MoviePosterDB -->
-                       <RegExp conditional="movieposterdb" input="$$1" 
output="&lt;chain 
function=&quot;GetMoviePosterDBThumbs&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Trailer -->
-                       <RegExp conditional="trailer" input="$$1" 
output="&lt;url 
function=&quot;GetIMDBTrailer&quot;&gt;http://akas.imdb.com/video/imdb/vi\1/player&lt;/url&gt;";
 dest="5+">
-                               <expression>/vi([0-9]*)/&quot;</expression>
-                       </RegExp>
-                       <!-- Thumb, IMDB -->
-                       <RegExp input="$$2" output="&lt;chain 
function=&quot;GetTMDBThumbsByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <!-- Fanart -->
-                       <RegExp conditional="fanart" input="$$2" 
output="&lt;chain 
function=&quot;GetTMDBFanartByIdChain&quot;&gt;$$2&lt;/chain&gt;" dest="5+">
-                               <expression/>
-                       </RegExp>
-                       <expression noclean="1"/>
-               </RegExp>
-       </GetIMDBDetails>
-</scraper>
+<?xml version="1.0" encoding="UTF-8"?>

+<scraper framework="1.1" date="2011-02-20">

+       <NfoUrl dest="3">

+               <RegExp dest="3" input="$$1" output="&lt;url&gt;\1&lt;/url&gt;">

+                       <expression clear="yes" 
noclean="1">(http://cinema.ptgate.pt/filmes/[0-9]*)</expression>

+               </RegExp>

+       </NfoUrl>

+       <CreateSearchUrl dest="3" SearchStringEncoding="iso-8859-1">

+               <RegExp dest="3" input="$$1" 
output="&lt;url&gt;http://cinema.ptgate.pt/pesquisa/avancada?n=\1&amp;y=$$4&lt;/url&gt;";>

+                       <RegExp input="$$2" output="\1" dest="4">

+                               <expression clear="yes">(.+)</expression>

+                       </RegExp>

+                       <expression noclean="1">([^\(\[]+)</expression>

+               </RegExp>

+       </CreateSearchUrl>

+       <GetSearchResults dest="8">

+               <RegExp dest="8" input="$$5" output="&lt;?xml 
version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; 
standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;">

+                       <RegExp dest="5" input="$$1" 
output="&lt;entity&gt;&lt;title&gt;\2 - \4 
(\3)&lt;/title&gt;&lt;url&gt;http://cinema.ptgate.pt/filmes/\1&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;";>

+                               <expression repeat="yes" trim="2,3">&lt;a 
href=&quot;/filmes/([0-9]*)&quot;&gt;(.*?)&lt;/a&gt; 
&lt;small&gt;([^\(]*)\(([0-9]*)\)</expression>

+                       </RegExp>

+                       <expression noclean="1"/>

+               </RegExp>

+       </GetSearchResults>

+       <GetDetails clearbuffers="no" dest="3">

+               <RegExp dest="3" input="$$5" 
output="&lt;details&gt;\1&lt;/details&gt;">

+                       <!-- Id -->

+                       <RegExp dest="5" input="$$2" 
output="&lt;id&gt;\1&lt;/id&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Title -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;title&gt;\1&lt;/title&gt;">

+                               
<expression>&lt;title&gt;([^&lt;\(]*)</expression>

+                       </RegExp>

+                       <!-- Original Title -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;originaltitle&gt;\1&lt;/originaltitle&gt;">

+                               <expression>&lt;h2 
class=&quot;title&quot;&gt;([^&lt;\.]*)</expression>

+                       </RegExp>

+                       <!-- Plot -->

+                       <RegExp dest="5+" input="$$1" 
output=";&lt;plot&gt;\1&lt;/plot&gt;">

+                               <expression 
trim="1">&lt;h2&gt;sinopse&lt;/h2&gt;\s*&lt;p&gt;\s*([^&lt;]*)</expression>

+                       </RegExp>

+                       <!-- Outline -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;outline&gt;\1&lt;/outline&gt;">

+                               <expression 
trim="1">&lt;h2&gt;sinopse&lt;/h2&gt;\s*&lt;p&gt;\s*([^&lt;\.]*)</expression>

+                       </RegExp>

+                       <!-- Genre -->

+                       <RegExp dest="5+" input="$$9" 
output="&lt;genre&gt;\1&lt;/genre&gt;">

+                               <RegExp dest="9" input="$$1" output="\1,">

+                                       <expression 
trim="1">&lt;b&gt;G.nero:&lt;/b&gt; ([^&lt;]*)</expression>

+                               </RegExp>

+                               <expression repeat="yes" 
trim="1">([^,]+),</expression>

+                       </RegExp>

+                       <!-- Country -->

+                       <RegExp dest="5+" input="$$9" 
output="&lt;country&gt;\1&lt;/country&gt;">

+                               <RegExp dest="9" input="$$1" output="\1,">

+                                       <expression>&lt;b&gt;Pa.s:&lt;/b&gt; 
([^&lt;]*)</expression>

+                               </RegExp>

+                               <expression repeat="yes" 
trim="1">([^,]+),</expression>

+                       </RegExp>

+                       <!-- Year -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;year&gt;\1&lt;/year&gt;">

+                               <expression>&lt;b&gt;Ano:&lt;/b&gt; 
([0-9]*)</expression>

+                       </RegExp>

+                       <!-- Actor -->

+                       <RegExp dest="8" input="$$9" 
output="&lt;actor&gt;&lt;name&gt;\1&lt;/name&gt;&lt;/actor&gt;">

+                               <RegExp dest="9" input="$$1" output="\1,">

+                                       
<expression>&lt;b&gt;Int.rpretes:&lt;/b&gt;&lt;br 
/&gt;\s*([^\n\r]*)</expression>

+                               </RegExp>

+                               <expression clear="yes" repeat="yes" 
trim="1">([^,]*),</expression>

+                       </RegExp>

+                       <RegExp dest="4" input="$$8" 
output="&lt;actors&gt;\1&lt;/actors&gt;">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <RegExp dest="5+" input="$$8" conditional="ptgateonly" 
output="\1">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <!-- Director -->

+                       <RegExp dest="8" input="$$9" 
output="&lt;director&gt;\1&lt;/director&gt;">

+                               <RegExp dest="9" input="$$1" output="\1,">

+                                       <expression 
trim="1">&lt;b&gt;Realiza..o:&lt;/b&gt;&lt;br /&gt;\s*([^\n\r]*)</expression>

+                               </RegExp>

+                               <expression repeat="yes" 
trim="1">([^,]+),</expression>

+                       </RegExp>

+                       <RegExp dest="4+" input="$$8" 
output="&lt;directors&gt;\1&lt;/directors&gt;">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <RegExp dest="5+" input="$$8" conditional="ptgateonly" 
output="\1">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <!-- Add PTGate image as last Thumb -->

+                       <RegExp dest="12" input="$$2" 
output="&lt;thumb&gt;http://cinema.ptgate.pt/Movies/\1.jpg&lt;/thumb&gt;";>

+                               <expression/>

+                       </RegExp>

+                       <RegExp dest="5+" input="$$12" conditional="ptgateonly" 
output="\1">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <!-- Add PT Distributor -->

+                       <RegExp dest="13" input="$$1" 
output="&lt;studio&gt;Dist: \1&lt;/studio&gt;">

+                               <expression>&lt;b&gt;Distribuidora:&lt;/b&gt; 
([^&lt;]*)</expression>

+                       </RegExp>

+                       <RegExp dest="5+" input="$$13" conditional="ptgateonly" 
output="\1">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <!-- IMDB Details -->

+                       <RegExp dest="5+" input="$$10" 
conditional="!ptgateonly" output="\1">

+                               <!-- Use Google as last resort -->

+                               <RegExp dest="10" input="$$8" output="&lt;url 
function=&quot;GetIMDBfromGoogle&quot;&gt;http://www.google.com/search?q=site:imdb.com\1&lt;/url&gt;";>

+                                       <!-- search google for the original 
title -->

+                                       <RegExp input="$$1" output="\1" 
dest="7">

+                                               <expression 
trim="1">\&amp;#8250; ([^&lt;]+)&lt;br /&gt;</expression>

+                                       </RegExp>

+                                       <!-- add year to search string -->

+                                       <RegExp input="$$11" output="+\1" 
dest="8">

+                                               <expression/>

+                                       </RegExp>

+                                       <!-- remove spaces and , -->

+                                       <RegExp input="$$7" output="+\1" 
dest="8+">

+                                               <expression repeat="yes">([^ 
,]+)</expression>

+                                       </RegExp>

+                                       <expression/>

+                               </RegExp>

+                               <!-- use IMDB link on PTGATE, when available -->

+                               <RegExp dest="10" input="$$9" output="&lt;url 
function=&quot;GetIMDBDetails&quot;&gt;http://akas.imdb.com/title/\1/&lt;/url&gt;";>

+                                       <RegExp dest="9" input="$$1" 
output="\1">

+                                               <expression 
clear="yes">\.imdb\.com/title/(tt[0-9]*)</expression>

+                                       </RegExp>

+                                       <expression>(.+)</expression>

+                               </RegExp>

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <expression noclean="1"/>

+               </RegExp>

+       </GetDetails>

+       <GetIMDBfromGoogle clearbuffers="no" dest="3">

+               <RegExp dest="3" input="$$5" 
output="&lt;details&gt;\1&lt;/details&gt;">

+                       <RegExp dest="5" input="$$1" output="&lt;url url 
cache=&quot;tt\1-main.html&quot; 
function=&quot;GetIMDBDetails&quot;&gt;http://akas.imdb.com/title/\1/&lt;/url&gt;";>

+                               
<expression>\.imdb\.com/title/(tt[0-9]*)</expression>

+                       </RegExp>

+                       <expression noclean="1"/>

+               </RegExp>

+       </GetIMDBfromGoogle>

+       <GetIMDBDetails clearbuffers="no" dest="3">

+               <RegExp dest="3" input="$$5" 
output="&lt;details&gt;\1&lt;/details&gt;">

+                       <!-- IMDB Id -->

+                       <RegExp input="$$1" dest="2" output="\1">

+                               <expression>id=(tt[t0-9]*)</expression>

+                       </RegExp>

+                       <!-- Studio -->

+                       <RegExp dest="5" input="$$1" 
output="&lt;studio&gt;\1&lt;/studio&gt;">

+                               <expression 
repeat="yes">"/company/[^&gt;]+&gt;([^&lt;]+)&lt;/a&gt;</expression>

+                       </RegExp>

+                       <RegExp input="$$13" output="\1" dest="5+">

+                               <expression noclean="1"/>

+                       </RegExp>

+                       <!-- Runtime -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;runtime&gt;\1&lt;/runtime&gt;">

+                               <expression 
trim="1">&lt;h4[^&gt;]*?&gt;Runtime:&lt;/h4&gt;[^0-9]*([0-9]+)</expression>

+                       </RegExp>

+                       <!-- Rating -->

+                       <RegExp dest="5+" input="$$1" 
output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;">

+                               <expression>&lt;span 
class="rating-rating"&gt;([0-9.]+).*?&gt;([0-9,]+) votes&lt;/a&gt;</expression>

+                       </RegExp>

+                       <!-- Actor -->

+                       <RegExp dest="5+" input="$$2" 
conditional="!fullcredits" output="&lt;chain 
function=&quot;GetIMDBCastById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Director -->

+                       <RegExp dest="5+" conditional="!fullcredits" 
output="&lt;chain 
function=&quot;GetIMDBDirectorsById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Credits -->

+                       <RegExp dest="5+" conditional="!fullcredits" 
output="&lt;chain function=&quot;GetIMDBWritersById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Actor, full -->

+                       <RegExp dest="5+" input="$$2" conditional="fullcredits" 
output="&lt;chain 
function=&quot;GetIMDBFullCastById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Director, full -->

+                       <RegExp dest="5+" input="$$2" conditional="fullcredits" 
output="&lt;chain 
function=&quot;GetIMDBFullDirectorsById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Credits, full -->

+                       <RegExp dest="5+" input="$$2" conditional="fullcredits" 
output="&lt;chain 
function=&quot;GetIMDBFullWritersById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Thumb, IMPAwards -->

+                       <RegExp dest="5+" input="$$2" conditional="impawards" 
output="&lt;chain function=&quot;GetIMPAThumbsById&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Poster, MoviePosterDB -->

+                       <RegExp dest="5+" input="$$1" 
conditional="movieposterdb" output="&lt;chain 
function=&quot;GetMoviePosterDBThumbs&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Trailer -->

+                       <RegExp dest="5+" input="$$1" conditional="trailer" 
output="&lt;url 
function=&quot;GetIMDBTrailer&quot;&gt;http://akas.imdb.com/video/imdb/vi\1/player&lt;/url&gt;";>

+                               <expression>/vi([0-9]*)/&quot;</expression>

+                       </RegExp>

+                       <!-- Thumb, IMDB -->

+                       <RegExp dest="5+" input="$$2" output="&lt;chain 
function=&quot;GetTMDBThumbsByIdChain&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <!-- Fanart -->

+                       <RegExp dest="5+" input="$$2" conditional="fanart" 
output="&lt;chain 
function=&quot;GetTMDBFanartByIdChain&quot;&gt;$$2&lt;/chain&gt;">

+                               <expression/>

+                       </RegExp>

+                       <expression noclean="1"/>

+               </RegExp>

+       </GetIMDBDetails>

+</scraper>


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

Summary of changes:
 metadata.ptgate.pt/addon.xml  |    3 +-
 metadata.ptgate.pt/ptgate.xml |  412 +++++++++++++++++++++--------------------
 2 files changed, 211 insertions(+), 204 deletions(-)


hooks/post-receive
-- 
Scrapers

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to