Scraper request - www.kinopoisk.ru [RU] | Page 5

Discussion in 'Moving Pictures' started by mitiok2008, February 14, 2009.

  1. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
    So far backdrop section is not available in scraper, I decide to add IMDB_ID recognision to the scraper. The logic is following: when we get movie's details from kinopoisk we've got Alternate Title which can be searched on The Internet Movie Database (IMDb) for imdb_id. Then imdb_id is recorded to DB, then scraper for themoviedb.org pull backdrop from the site (I speak about movies which exist on imdb and themoviedb).

    I made scraper upgrade, but... nothing is happend. No errors in log, movie just loaded to the DB, but not imdb_id or
    backdrop... Looks like the scraper doesn't run added part, but it gets ALL neccesary values from kinopoisk??? Could you check my code, additional code starts from comment about IMDB_ID:

    BTW, any information about LOG-node??? it doesn't work!
    Code (Text):
    1.  
    2.     question is clear - so I delete the code
    3.  



     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Schenk2302

    Schenk2302 Portal Pro

    Joined:
    September 12, 2008
    Messages:
    50
    Likes Received:
    14
    Occupation:
    Punkrock
    Location:
    Bonn
    Ratings:
    +14 / 0
    Home Country:
    Germany Germany
    Hi,

    don't know if that helps, but maybe worth a try:

    <if test="imdb[0][0]!=">
    <set name="movie[0][0].imdb_id" value="${imdb[0][0]:htmldecode}"/>
    </if>

    <!-- if we got a search result page, this is used. if not, regex does not match so we dont process the outer loop. -->
    <if test="imdb[0][0]=">
    <parse name="imdb" input="${imdb_page}" regex='title_(popular|exact)/images/b.gif\?link=/title/(tt\d{7})'/>
    <set name="movie[0][0].imdb_id" value="${imdb[0][0]:htmldecode}"/>
    </if>
    </if>
    </if>
    </if>
    </if>
    </action>

    [/CODE][/QUOTE]
     
  4. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
  5. igor_uk

    igor_uk Portal Pro

    Joined:
    February 16, 2009
    Messages:
    63
    Likes Received:
    1
    Ratings:
    +1 / 0
    I have a problem with this scraper specifically when i add it to GUI.

    I download the latest file;
    Delete old scraper;
    Add the new one to the sources: correct version appears: 1.2.5, release date as of march 2009.

    Then i click OK and after that quit the plugin screen, and OK all changes in Media Portal config. When i open up everything again, the Kinopoisk version shows as 1.04 and the date is 16.02.2009.

    What am i doing wrong, why does it load the incorrect version of the plugin?

    the files is stored in plugin directory..
     
  6. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
    I'm to an expert in scraper loading, the way of loading it was always tricky for me :). Ask fforde, he probably can help.
    But, seems to me that I understend the problem. You should do the following:
    1. Put new scraper somewhere (location dosn't matter, I put it to mediaportal folder)
    2. Open Media Posrtal Configuration / Plugin / Moving Picture Cofiguration.
    3. Press tab Importer Setting and then Movie Detal Data Sources.
    4. You see all scrapers avalaible in system. Press on small arrow close to "+" sign - it's dialog to add new data source. Choose scraper from 1.
    5. Now it should be 1.2.5

    no need to open/close MP configuration. i hope it will work. If it's necessary we can switch to Russian ;).
     
  7. igor_uk

    igor_uk Portal Pro

    Joined:
    February 16, 2009
    Messages:
    63
    Likes Received:
    1
    Ratings:
    +1 / 0
    no, it does not work that way! - нет-нет-нет :))

    #I do your points 1 to 5. Indeed it does show as 1.2.5. Then I OK out of those screens, OK on the Mediaportal Config window and hence it closes. Then I re-open it and guess what - version 1.0.4 shows, despite any more changes on my side.

    I submitted a new issue for developers, including some logs - can you have a look please?
    Issue 399 - moving-pictures - Sources scripts not imported correctly - Google Code

    found a workaround - coverart script was to blame, updated the issue with a comment.
     
  8. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
    load it in Debug mode. In Data Source window press on small gear and Enable Debug Mode. Then load scraper. In this case it will be loaded, just you will have warning window.

    it should not work like this. it's mistake.
     
  9. sidsalmon

    sidsalmon Portal Member

    Joined:
    October 7, 2008
    Messages:
    24
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Russian Federation Russian Federation
    not work with this movie Artefakt _ttp://www.kinopoisk.ru/level/1/film/400040/
     
  10. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
    work for me without problem:
    1. put your movie in separate folder called Артефакт (our you will possible have to enter manual search)
    2. in couple of mins you will have automaticaly recognized movie Артефакт (at least I have such result right now)
    3. Since it's russian movie - no way so far to get IMDB ID and backdrop from themoviedb.org. If you want to have it - load it from anywhere and out your jpeg-file to movie folder and call it backdrop.jpg. When it will be possible to have scraper for backdrops (ver 0.8) it will be written for kinopoisk.ru

    good luck.
     
  11. mitiok2008

    mitiok2008 Portal Pro

    Joined:
    February 1, 2009
    Messages:
    115
    Likes Received:
    1
    Ratings:
    +1 / 0
    update 1.2.7. For details see first message in the thread
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!