aboutsummaryrefslogtreecommitdiff
path: root/system/scrapers/music/israel-music.xml
blob: ea03292259eafd36217c1d8ad586c0f8cdd92a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.0" date="2009-05-22" name="IsraelMusic" content="albums" thumb="israel-music.png" language="he">
	<NfoUrl dest="3">
		<RegExp input="$$1" output="\1/" dest="3">
			<expression>(http://he.israel-music.com.*)</expression>
		</RegExp>
	</NfoUrl>
	<CreateAlbumSearchUrl dest="3">
		<RegExp input="$$1" output='http://he.israel-music.com/search/\1/' dest="3">
			<expression></expression>
		</RegExp>
		<RegExp input="$$2%20$$1" output='http://he.israel-music.com/search/\1/' dest="3">
			<expression></expression>
		</RegExp>
	</CreateAlbumSearchUrl>
	<GetAlbumSearchResults dest="8">
		<RegExp input="$$5" output='&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;&lt;results&gt;\1&lt;/results&gt;' dest="8">
			<RegExp input="$$1" output='&lt;entity&gt;&lt;url&gt;http://he.israel-music.com\1&lt;/url&gt;&lt;title&gt;\2&lt;/title&gt;&lt;/entity&gt;' dest="5+">
				<expression repeat="yes" noclean='1,2'><![CDATA[<strong><a dir="rtl" href="(.[^"]*)">(.[^<]*)</a>]]></expression>
			</RegExp>
			<RegExp input="$$1" output='&lt;entity&gt;&lt;url&gt;http://he.israel-music.com\1&lt;/url&gt;&lt;title&gt;\2&lt;/title&gt;&lt;artist&gt;\4&lt;/artist&gt;&lt;year&gt;\5&lt;/year&gt;&lt;/entity&gt;' dest="5+">
				<expression repeat="yes" noclean='1,3,4,5'><![CDATA[<strong><a dir="rtl" href="(.[^"]*)">(.*?)</a> - <a dir="rtl" href="(.[^"]*)">(.[^<]*)</a> <span>([0-9]*)</span></strong>]]></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>		
	</GetAlbumSearchResults>
	<GetAlbumDetails dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5">
				<expression noclean="1"><![CDATA[<h1>(.[^<]*)</h1>]]></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;artist&gt;\1&lt;/artist&gt;" dest="5+">
				<expression noclean="1"><![CDATA[</span><a.[^>]*>(.[^<]*)</a>]]></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;review&gt;\1&lt;/review&gt;" dest="5+">
				<expression><![CDATA[<ul id="details".[^>]*>(.*)</ul>.[^<]*<p style="clear:both">]]></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;thumb&gt;\1&lt;/thumb&gt;" dest="5+">
				<expression noclean="1"><![CDATA[id="imagef" src="(.[^"]*)"]]></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression noclean="1"><![CDATA[<li><b>שנה: </b> ([0-9]+)</li>]]></expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="6">
				<expression noclean="1"><![CDATA[<li><b>ז'אנר:</b>(.*)</li>]]></expression>
			</RegExp>
			<RegExp input="$$6" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression noclean="1" repeat="yes"><![CDATA[<a.[^>]*">(.[^<]*)</a>]]></expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp> 
	</GetAlbumDetails> 
</scraper>