[Approved] How to Video database section and My Movies get to life (1 Viewer)

Deda

Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Hi Guzzi, If you have problems with 1.2.0 please report it here MediaPortal 1.2.0 ALPHA - MediaPortal Forum

    This topic is somehow outdated now because this patch is obsolete and I changed some other bugs which can't be seen here but only in 1.2.0 alpha.

    Slowdowns in the interface has been resolved in 1.2.0, and devs are also doing speed optimizations with cache and thumbnails (not in alpha for now).
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    Deda, please remove all outdate attachments so we avoid users "downgrading" to unstable/previous versions.

    :D

    Simone
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    AW: Re: How to Video database section and My Movies get to life

    Hi Guzzi, If you have problems with 1.2.0 please report it here MediaPortal 1.2.0 ALPHA - MediaPortal Forum

    This topic is somehow outdated now because this patch is obsolete and I changed some other bugs which can't be seen here but only in 1.2.0 alpha.

    Slowdowns in the interface has been resolved in 1.2.0, and devs are also doing speed optimizations with cache and thumbnails (not in alpha for now).

    My problem is, that I observe the opposite - 1.2alpha is much slower than 1.1.1 (with your patch). Anyway, will ask in irc what to do to help...
    Thanks, Guzzi
     

    pacoma

    Portal Pro
    March 22, 2005
    404
    25
    52
    Wil
    Home Country
    Switzerland Switzerland
    AW: How to Video database section and My Movies get to life

    Deda

    Is there anyway to use the Fanart Backdrops under Version 1.2.0.0 Alpha??

    Under 1.1.1.1 i have all in unter Skin Fanart/Movies
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Re: AW: How to Video database section and My Movies get to life

    @Deda

    Is there anyway to use the Fanart Backdrops under Version 1.2.0.0 Alpha??

    Under 1.1.1.1 i have all in unter Skin Fanart/Movies

    Yes, it's possible with small workaround. If you have fanart in Skin Fanart/Movies then it should work because I didn't prevented fanart plugin. I just prevented download, save and delete fanart in that folder and trying to save it in Skin fanart/Scraper/Movies. If that folder doesn't exist then downloading and saving new ones is forbidden.

    You can create that folder, scan movies than copy all new fanart to Skin Fanart/movies and you should see them.
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    Just a question:

    I am struggling each time with deleting non-existing movies as there is - to my awareness at least - no internal clean up function of the database available.
    Re-Scan did not count as it takes an extensive effort to correct all misinterpretations and combine multi part movies in a correct way.

    Is there such functionallity (But I was too dumb to find it)?


    Thanks & Cheers,
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    AW: How to Video database section and My Movies get to life

    Hi Deda,
    again I would need your support and have a question:
    afaik currently you store link to actorpicture in table and also load the picture in thumb directory via IMDBfetcher class (DownloadCoverArt())
    Current actorinfo only returns 1 Imgthumburl - Is there a class available to return all thumbs from IMDB in an array?

    Example:
    Christian Bale, stored ActorID nm0000288,
    stored PicUrl=http://ia.media-imdb.com/images/M/MV5BMTQ4OTI4MTQ5MV5BMl5BanBnXkFtZTcwOTY5NzY2Mg@@._V1._SY314_CR12,0,214,314_.jpg
    I assume this is the main picture on imdb site "http://www.imdb.com/name/nm0000288/"
    There is also a mediaindex available for the actor:
    -> Christian Bale Photos - IMDb
    There are more pictures available, e.g.
    page:
    http://www.imdb.com/media/rm518884608/nm0000288
    picturethumbpath would be:
    <img id="primary-img" title="" alt="Still of Christian Bale in Todeszug nach Yuma" src="http://ia.media-imdb.com/images/M/MV5BMTkxMjI4NjE0NF5BMl5BanBnXkFtZTcwODYzOTIzMw@@._V1._SX640_SY964_.jpg" data-rmconst="rm518884608" onmousedown="return false;" onmousemove="return false;" oncontextmenu="return false;" />

    Is there a class available, that returns the required pathes in an array for those pictures from mediaindex to be able to load them via IMDBfetcher?

    Thanks,

    Guzzi
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Hi Guzzi, answer is no, it grabs only main picture from actor page.
    Looking at IMDB page it will not be so difficult to grab all of them ie for Christian Bale it's easy to parse how many photo pages are
    Code:
    <span style="padding: 0 1em;">
    1&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=2"]?page=2[/URL]">2</a>&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=3"]?page=3[/URL]">3</a>&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=4"]?page=4[/URL]">4</a>&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=5"]?page=5[/URL]">5</a>&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=6"]?page=6[/URL]">6</a>&nbsp;
    <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=7"]?page=7[/URL]">7</a>&nbsp;
    </span>
    and links for every page is
    hxxp://www.imdb.com/name/nm0000288/mediaindex?page=1 then
    hxxp://www.imdb.com/name/nm0000288/mediaindex?page=2 ... etc.

    and parse all pics in every page
    Code:
    <div class="thumb_list" style="font-size: 0px;">
    <a title="" href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/rg/mediaindex/unknown-thumbnail/media/rm3605759488/nm0000288"]/rg/mediaindex/unknown-thumbnail/media/rm3605759488/nm0000288[/URL]"><img alt="" height="100" width="100"  [B]src="[URL="https://forum.team-mediaportal.com/view-source:http://ia.media-imdb.com/images/M/MV5BODk0MzYxMTQzNl5BMl5BanBnXkFtZTcwMDM3NTI5Mw@@._V1._CR334,0,1331,1331_SS100_.jpg"]http://ia.media-imdb.com/images/M/MV5BODk0MzYxMTQzNl5BMl5BanBnXkFtZTcwMDM3NTI5Mw@@._V1._CR334,0,1331,1331_SS100_.jpg[/URL][/B]" /></a>
    <a title="" href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/rg/mediaindex/unknown-thumbnail/media/rm2904588544/nm0000288"]/rg/mediaindex/unknown-thumbnail/media/rm2904588544/nm0000288[/URL]"><img alt="" height="100" width="100"  src="[URL="https://forum.team-mediaportal.com/view-source:http://ia.media-imdb.com/images/M/MV5BMTM1MjgwMzI2NF5BMl5BanBnXkFtZTcwODM3NDk4Mw@@._V1._CR343,0,1362,1362_SS100_.jpg"]http://ia.media-imdb.com/images/M/MV5BMTM1MjgwMzI2NF5BMl5BanBnXkFtZTcwODM3NDk4Mw@@._V1._CR343,0,1362,1362_SS100_.jpg[/URL]" /></a>
    .........
    </div>
    to an array (it's rough idea how to get it and html code is very understandable and easy to parse and fetch)

     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Just a question:

    I am struggling each time with deleting non-existing movies as there is - to my awareness at least - no internal clean up function of the database available.
    Re-Scan did not count as it takes an extensive effort to correct all misinterpretations and combine multi part movies in a correct way.

    Is there such functionallity (But I was too dumb to find it)?


    Thanks & Cheers,

    Hi yhoogi, currently there is no auto cleanup option. It can be done manually in Config or in MP Database view one by one. I'm thinking to implement such a option in config but this method will not be safe if it will be done without thinking on missing drives and paths (if they are disconnected somehow) because DB movies should be verified against video files and you can imagine what will happened if you have network drive which is currently disconnected and you check for files there and delete movies from db as they are unreachable on that time.
     

    Users who are viewing this thread

    Top Bottom