Skip to content

Commit

Permalink
search url is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown authored and Unknown committed Jul 4, 2016
1 parent bd00c37 commit 0ab7bd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.movie.daum.net"
name="Daum Movie"
version="2.0.2"
version="2.1.0"
provider-name="XBMC-Korea">
<requires>
<import addon="xbmc.metadata" version="1.0"/>
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.1.0

Changes
- search url is changed

2.0.2

Changes
Expand Down
16 changes: 5 additions & 11 deletions daum-movie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@
</RegExp>
</NfoUrl>
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="&lt;url&gt;http://movie.daum.net/search.do?type=movie&amp;q=\1&lt;/url&gt;" dest="3">
<RegExp input="$$1" output="&lt;url&gt;http://m.movie.daum.net/data/movie/search/v2/movie.json?size=20&amp;start=1&amp;searchText=\1&lt;/url&gt;" dest="3">
<expression noclean="1" />
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="4">
<RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="4">
<RegExp conditional="!OrigTitleInSrchResult" input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;\3&lt;/year&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;daum-movie-\1.json&quot;&gt;http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
<expression repeat="yes" trim="2">class="fl srch"&gt;&lt;a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^&gt;]*&gt;([^"]*)&lt;/a&gt;\s*\((\d+)\)&lt;/span&gt;[^\(]*"fs13"&gt;([^"]*)&lt;/span</expression>
<RegExp conditional="!OrigTitleInSrchResult" input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;\4&lt;/year&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;daum-movie-\1.json&quot;&gt;http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1&lt;/url&gt;&lt;/entity&gt;" dest="5">
<expression repeat="yes" trim="2,3">"movieId":(\d+),"titleKo":"([^"]*)","titleEn":"([^"]*)",[^}]*"prodYear":(\d*)</expression>
</RegExp>
<RegExp conditional="OrigTitleInSrchResult" input="$$6" output="\1" dest="5">
<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2(\4)&lt;/title&gt;&lt;year&gt;\3&lt;/year&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;daum-movie-\1.json&quot;&gt;http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1&lt;/url&gt;&lt;/entity&gt;" dest="6">
<expression repeat="yes" trim="2,4">class="fl srch"&gt;&lt;a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^&gt;]*&gt;([^"]*)&lt;/a&gt;\s*\((\d+)\)&lt;/span&gt;[^\(]*"fs13"&gt;\s*([^"]+)&lt;/span</expression>
</RegExp>
<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;\3&lt;/year&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;daum-movie-\1.json&quot;&gt;http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1&lt;/url&gt;&lt;/entity&gt;" dest="6+">
<expression repeat="yes" trim="2">class="fl srch"&gt;&lt;a href="http://movie.daum.net/moviedetail/moviedetailMain.do\?movieId=(\d+)"[^&gt;]*&gt;([^"]*)&lt;/a&gt;\s*\((\d+)\)&lt;/span&gt;[^\(]*"fs13"&gt;\s*&lt;/span</expression>
<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2(\3)&lt;/title&gt;&lt;year&gt;\4&lt;/year&gt;&lt;id&gt;\1&lt;/id&gt;&lt;url cache=&quot;daum-movie-\1.json&quot;&gt;http://m.movie.daum.net/data/movie/movie_info/detail.json?movieId=\1&lt;/url&gt;&lt;/entity&gt;" dest="6">
<expression repeat="yes" trim="2,3">"movieId":(\d+),"titleKo":"([^"]*)","titleEn":"([^"]*)",[^}]*"prodYear":(\d*)</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
Expand Down Expand Up @@ -164,9 +161,6 @@
<RegExp input="$$1" output="&lt;trailer&gt;\1&lt;/trailer&gt;" dest="5">
<expression repeat="yes">"subTitle":"[^"]*예고편[^"]*"[^}]+"fileUrl":"([^"]+)"</expression>
</RegExp>
<RegExp conditional="fixVideoURL" input="$$5" output="\1\2.\3" dest="5">
<expression encode="2">(.*/)(.*)[,\.](.*)</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</ParseDaumVideoClip>
Expand Down

0 comments on commit 0ab7bd9

Please sign in to comment.