home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Scraper Version & Published
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mitiok2008" data-source="post: 386626" data-attributes="member: 88086"><p>finally, I solve the problem, slightly modifying your proposal. It was necessary to include next_free variable to both loops (see below). I wasn't able to get value from ${count} variable. I put add node in different places, right after the first loop, but any time I tried to use the node <add name="next_free" value1="${count}" value2="1" /> I got Error parsing number into log file. But it's OK for now - solution is working.</p><p>I think that scraper need just some polishing with data acruals (there are small errors with directors) and I'll send it to you.</p><p></p><p>btw, LOG NODE doesn't work for me - it make "Scraper loading error".</p><p></p><p>and one more question. Any progress with backdrop scraper. I really sure that now I'm able to do it for kinoposik.ru. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />.</p><p></p><p>Thank a lot for your help.<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>[CODE] <set name='next_free' value='0'/> </p><p> </p><p> </p><p> <!-- Verify that Kinopoisk was used with site_id --></p><p> <if test="${movie.site_id}!="></p><p> <!-- First check the cover-art page --></p><p> <retrieve name="cover_page" url="http://www.kinopoisk.ru/level/17/film/${movie.site_id}/adv_type/cover" retries="10" timeout="10000" timeout_increment="4000" /></p><p> <!-- Make sure we are not getting the generic cover-art page. --></p><p> <parse name="posterverify" input="${cover_page}" regex="${rx_cover_verify}"/></p><p> <if test="${posterverify[0][0]}!="></p><p> <!-- Then get cover arts from cover-art pages --></p><p> <parse name="posterLinks" input="${cover_page}" regex="${rx_covers}"/></p><p> <loop name='cover_url' on='posterLinks'></p><p> <set name='cover_art[${count}].url' value='http://www.kinopoisk.ru/images/poster/${cover_url[0]}.jpg'/></p><p> <add name='next_free' value1='${next_free}' value2='1' /></p><p> </loop></p><p> </if></p><p> </p><p> <!-- Second, check the posters page --></p><p> <retrieve name="cover_page" url="http://www.kinopoisk.ru/level/17/film/${movie.site_id}" retries="10" timeout="10000" timeout_increment="4000" /></p><p> <!-- Make sure we are not getting the generic poster page. --></p><p> <parse name="posterverify" input="${cover_page}" regex="${rx_cover_verify}"/></p><p> <if test="${posterverify[0][0]}!="></p><p> <!-- Then get cover arts from POSTERS pages --></p><p> <parse name="posterLinks" input="${cover_page}" regex="${rx_covers}"/></p><p> <loop name='cover_url' on='posterLinks'></p><p> <set name='cover_art[${next_free}].url' value='http://www.kinopoisk.ru/images/poster/${cover_url[0]}.jpg'/></p><p> <add name='next_free' value1='${next_free}' value2='1' /></p><p> </loop></p><p> </if></p><p> </if>[/CODE]</p></blockquote><p></p>
[QUOTE="mitiok2008, post: 386626, member: 88086"] finally, I solve the problem, slightly modifying your proposal. It was necessary to include next_free variable to both loops (see below). I wasn't able to get value from ${count} variable. I put add node in different places, right after the first loop, but any time I tried to use the node <add name="next_free" value1="${count}" value2="1" /> I got Error parsing number into log file. But it's OK for now - solution is working. I think that scraper need just some polishing with data acruals (there are small errors with directors) and I'll send it to you. btw, LOG NODE doesn't work for me - it make "Scraper loading error". and one more question. Any progress with backdrop scraper. I really sure that now I'm able to do it for kinoposik.ru. :). Thank a lot for your help.:thx::thx::thx: [CODE] <set name='next_free' value='0'/> <!-- Verify that Kinopoisk was used with site_id --> <if test="${movie.site_id}!="> <!-- First check the cover-art page --> <retrieve name="cover_page" url="http://www.kinopoisk.ru/level/17/film/${movie.site_id}/adv_type/cover" retries="10" timeout="10000" timeout_increment="4000" /> <!-- Make sure we are not getting the generic cover-art page. --> <parse name="posterverify" input="${cover_page}" regex="${rx_cover_verify}"/> <if test="${posterverify[0][0]}!="> <!-- Then get cover arts from cover-art pages --> <parse name="posterLinks" input="${cover_page}" regex="${rx_covers}"/> <loop name='cover_url' on='posterLinks'> <set name='cover_art[${count}].url' value='http://www.kinopoisk.ru/images/poster/${cover_url[0]}.jpg'/> <add name='next_free' value1='${next_free}' value2='1' /> </loop> </if> <!-- Second, check the posters page --> <retrieve name="cover_page" url="http://www.kinopoisk.ru/level/17/film/${movie.site_id}" retries="10" timeout="10000" timeout_increment="4000" /> <!-- Make sure we are not getting the generic poster page. --> <parse name="posterverify" input="${cover_page}" regex="${rx_cover_verify}"/> <if test="${posterverify[0][0]}!="> <!-- Then get cover arts from POSTERS pages --> <parse name="posterLinks" input="${cover_page}" regex="${rx_covers}"/> <loop name='cover_url' on='posterLinks'> <set name='cover_art[${next_free}].url' value='http://www.kinopoisk.ru/images/poster/${cover_url[0]}.jpg'/> <add name='next_free' value1='${next_free}' value2='1' /> </loop> </if> </if>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Scraper Version & Published
Contact us
RSS
Top
Bottom