Project

General

Profile

Bug #258 » fixthumbscrapers.patch

foresto, 11/10/2013 09:34 AM

View differences:

XBMC4XBox-patched/system/scrapers/video/common/imdb.xml 2013-10-11 01:07:53.327519000 -0700
<scraperfunctions>
<GetIMDBThumbs dest="5">
<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2" dest="4">
<expression noclean="1,2">&lt;a name=&quot;poster&quot;.*?src=&quot;(.*?)_S.*?(.jpg)&quot;.*?&lt;/a&gt;</expression>
<RegExp input="$$1" output="&lt;thumb&gt;\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2&lt;/thumb&gt;" dest="6">
<expression noclean="1,2">&lt;img.*?class=&quot;poster&quot;.*?src=&quot;([^&quot;]*?)_S[^&quot;]*?(.jpg)&quot;</expression>
</RegExp>
<RegExp input="$$4" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="6">
<expression noclean="1">(.*?_SX[0-9]+_SY[0-9]+_.jpg)</expression>
<RegExp input="$$1" output="&lt;thumb&gt;\1_SX$INFO[imdbscale]_SY$INFO[imdbscale]_\2&lt;/thumb&gt;" dest="6+">
<expression repeat="yes" noclean="1">&lt;a href=.*?itemprop=.thumbnailUrl.*?src=&quot;([^&quot;]*?)_S[^&quot;]*?(.jpg)&quot;</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
XBMC4XBox-patched/system/scrapers/video/common/movieposterdb.xml 2013-10-10 23:00:08.257365000 -0700
<scraperfunctions>
<GetMoviePosterDBLink dest="6">
<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetMoviePosterDBThumbs&quot;&gt;\1&lt;/url&gt;&lt;/details&gt;" dest="6">
<expression>(http://www.movieposterdb.com/movie/[^&quot;]*)&quot;</expression>
<RegExp input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetMoviePosterDBThumbs&quot;&gt;http://www.movieposterdb.com\1&lt;/url&gt;&lt;/details&gt;" dest="6">
<expression>(/movie/[^&quot;]*?)&quot;</expression>
</RegExp>
</GetMoviePosterDBLink>
<GetMoviePosterDBThumbs dest="5">
<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;thumb&gt;\1l_\2&lt;/thumb&gt;" dest="6">
<expression repeat="yes" noclean="1,2">class=&quot;poster&quot;.*?src=&quot;(.*?)[a-z]_(.*?)&quot;</expression>
<expression repeat="yes" noclean="1,2">class=&quot;poster&quot;.*?src=&quot;([^&quot;]*?)[a-z]_(.*?)&quot;</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
XBMC4XBox-patched/system/scrapers/video/imdb.xml 2013-10-11 00:48:15.619267000 -0700
<RegExp conditional="tmdbthumbs" input="$$2" output="&lt;url function=&quot;GetTMDBThumbsById&quot;&gt;$$3&lt;/url&gt;" dest="5+">
<expression />
</RegExp>
<RegExp conditional="impawards" input="$$2" output="&lt;url cache=&quot;$$2-posters.html&quot; function=&quot;GetIMPALink&quot;&gt;$$3posters&lt;/url&gt;" dest="5+">
<RegExp conditional="impawards" input="$$2" output="&lt;url cache=&quot;$$2-impawards.html&quot; function=&quot;GetIMPALink&quot;&gt;$$3posters&lt;/url&gt;" dest="5+">
<expression />
</RegExp>
<RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/browse/search?type=movies&amp;amp;query=\1&lt;/url&gt;" dest="5+">
<RegExp conditional="movieposterdb" input="$$1" output="&lt;url function=&quot;GetMoviePosterDBLink&quot;&gt;http://www.movieposterdb.com/search?type=movies&amp;amp;query=\1&lt;/url&gt;" dest="5+">
<expression >/title/tt([t0-9]*)/faq</expression>
</RegExp>
<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+">
......
</RegExp>
<expression />
</RegExp>
<RegExp input="$$2" output="&lt;url cache=&quot;$$2-posters.html&quot; function=&quot;GetIMDBThumbs&quot;&gt;$$3posters&lt;/url&gt;" dest="5+">
<RegExp input="$$2" output="&lt;url cache=&quot;$$2-posters.html&quot; function=&quot;GetIMDBThumbs&quot;&gt;$$3mediaindex?refine=poster&amp;ref_=ttmi_ref_pos&lt;/url&gt;" dest="5+">
<expression />
</RegExp>
<RegExp conditional="fanart" input="$$2" output="&lt;url function=&quot;GetTMDBFanartById&quot;&gt;$$3&lt;/url&gt;" dest="5+">
(1-1/7)