[Approved] How to Video database section and My Movies get to life (3 Viewers)

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

    Hi Deda,

    first of all: Thanks for all your work to get this area fixed and improved, I really appreciate that!

    I have tqo questions:

    1.)
    Is it possible to integrate the nfo reader Script in this patch to get the changed DB scheme properly filles? To my understanding this would be an alternate grabber (in comparison to the currently used IMDB grabber), right?

    https://forum.team-mediaportal.com/...-nfo-files-mediaportal-81402/?highlight=Ember

    2.)
    Is it possible to call the infos from "elsewhere"?
    In Detail:
    What would I have to do to Call a page from a plugin to display "DialogVideoArtistInfo.xml" with Infos from Videodb incl. Thumbs?

    If it's not possible to directly call the Artistinfopage - how would I call the "Movieinfopage" (to get to artist Infos)?

    Thanks for your support,

    Guzzi

    Hi Guzzi,

    concerning info grabber, I already created one but I didn't put it public as I had minor problems with it so it sometimes just hang and wait in endless loop for something, so I can press "cancel" to continue on next file or "cancel all" and do rescan again and it works without problem. Maybe it's just hangs as I used dummy video files for testing but scraper is fast and rescan is not a problem as already scanned files is skipped. It's for EMM (Ember Media Management xml format) from this post https://forum.team-mediaportal.com/...lling-all-scraper-gurus-emm-82749/#post623029
    Small problem is how to handle cover file (every movie is in separate folder or in the same folder) and it's naming (ie. in EMM scraper case it checks for folder.jpg and use it as cover because every movie is in it's own folder). What can't be done in scrapper is actor details grab without changing MP code but it's not impossible.
    You can find EMM grabber in attachment and it can be easily changed for other xml info formats.

    Concerning question 2, I'm not sure exactly what you mean. If you want to create plugin to retrieve data from videodatabase I can point you how you can call sql queries to retrieve data (movies, actors...) from vdb including thumbs but I'm not good in skinning and how to display results there but I can try to help as I have some ideas to improve standard My Video GUI view but that also includes skin change (better to say, skin upgrade).
     

    Attachments

    • EMM.zip
      1.9 KB

    Guzzi

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

    Hi Deda,
    Thanks, I also use EMM, so will give your grabber a try ;-)
    The only problem I had with the EMM nfo files is, that there is no country info included in the XML structure ....

    Re question2 - let me explain a bit further:

    I made some extensions for the myfilms plugin (original author is zebons), added trailersupport, some moviescrobbly like functions and several other nice things like global filtering minimal rating, global filtering for only movies where trailers are present, etc.

    One thing, that I did not yet do (but was on my "wishlist") is extended support for actor infos, that is showing pictures, actor infos and e.g. other movies of the person, that are NOT included in the (myfilms)DB (movies where actor is part of from DB is already possible).

    I was even thinking of creating a separate XML-file as "DB-Table" for storing actor infos - but since I am not a programmer, I didn't do it - too difficult for me.

    I know, that myfilms uses gplayer and uses VDB to store e.g. last view position, so there is already some sort of interaction (probably via player classes?) with vdb.

    After reading about your great improvements I was thinking about just using the vdb with your extensions to show extended details about actors etc., because you already have the possibility to download/update actor infos and you store the thumbs already :)

    So what I would require is:
    A hint, how to get the information for a person e.g. via name (I know, that it might not be 100%, if not using true person-IDs)
    A hint, how to load objects with the corresponding date (assuming I have e.g. an actor list inside the plugin) - thumbs plusother details - and other movies of the actor

    Skinchanges are no problem, I made all the adaptions required for the changes I made to the myfilms plugin based on the Blackglass Skin, so no deal to add or modify whatever is needed. I am not yet sure, if the data should be exported via ID or otherwise .... Also I am not yet sure if actorinfos might go to a separate page with a listcontrol etc. - it also very much depends of what's possible and what istn't...

    Any hints are highly welcome - and thanks again for your work on MePo.
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,794
    11,624
    Königstein (Taunus)
    Home Country
    Germany Germany
    AW: How to Video database section and My Movies get to life

    Hi guzzi,
    just open the context menu in myvideos and choose IMDB infos. That works in all different views (actors, shares etc.) and is MP standard since years ;)
     

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,754
    1,242
    Alingsås
    Home Country
    Sweden Sweden
    Would it be possible to use the Moving Pictures scrapers as well when these changes are put in MediaPortal? They are very good, and it would be nice if we only need to upgrade 1 scraper for every info retrieval scenario.

    Thanks!
    Emph
     

    Guzzi

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

    Hi guzzi,
    just open the context menu in myvideos and choose IMDB infos. That works in all different views (actors, shares etc.) and is MP standard since years ;)

    Hi Catavolt,
    I know, that you can use the context in MyVideos - but what I want to achieve is to get those Infos from MyFilms context - so I need to know, is I can call functions from another plugin (myfilms) to avoid to implement those functions myself.
    As I am not a programmer, it woulkd help me if someone could tell me 1.) if it's possible at all and 2) a hint on e.g. the class I need to use - I could then have a look in the code and see, if I could get it up and running ...

    Would it be possible to use the Moving Pictures scrapers as well when these changes are put in MediaPortal? They are very good, and it would be nice if we only need to upgrade 1 scraper for every info retrieval scenario.

    Thanks!
    Emph

    .. Moving pictures and MePo scrapers are not the same, MoPi has it's own "scraping engine" with lot's of logic to make autoretrievals successul - this engine is not part of MePo - so the scraperscripts cannot be exchanged unfortunately ...
     

    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

    I can explain more if needed later, but if you want to manipulate with MP video db just include MP databases.dll into your project and with "using MediaPortal.Video.Database;" you will get VideoDatabase class and everything concerning get-set-add-delete from it's tables. I added some new things into it in my project so original database.dll will not get you everything you need (like actors by movie ID, or actor thumbnail URl....) but you will get some idea how it works (as I did also when I was started this without any knowledge how vdb works).
     

    Guzzi

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

    I can explain more if needed later, but if you want to manipulate with MP video db just include MP databases.dll into your project and with "using MediaPortal.Video.Database;" you will get VideoDatabase class and everything concerning get-set-add-delete from it's tables. I added some new things into it in my project so original database.dll will not get you everything you need (like actors by movie ID, or actor thumbnail URl....) but you will get some idea how it works (as I did also when I was started this without any knowledge how vdb works).

    Thanks, I will have a look at the DB classes - MediaPortal.Video.Database is already included, as it's used for updating the positionpointers. As I understood, your database.dll is compatible to the original one - so it should be no problem compiling against it (except of the code wouldn't run with original code anymore of course), right?
    So I will try to check the code of MyVideo, that uses the classes to get familiar with it...
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Well, it's not so compatible with original because it uses some new classes in core.dll (not directly linked to sql data retrieve but it can cause a problems), and I also made an upgrade of two vdb tables (actorinfo and movieinfo) by adding some new columns (thumbURL and IMDBActorID for actorinfo, and strUserReview in movieinfo).
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    New update (patch file is growing because of major code refactoring and cleaning)
     

    Guzzi

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

    Hi Deda,

    will using

    private void OnVideoArtistInfo(IMDBActor actor)

    With actor as a string only be supported? I try getting the actor dialog with just an actor name.
    Or do I have to first get ID from database?

    Thanks,

    Guzzi

    Edit:

    Is there a way to get actor infos by name - following call only supports actorID, right?

    MediaPortal.Video.Database.IMDBActor actor = MediaPortal.Video.Database.VideoDatabase.GetActorInfo("actorID");
     

    Users who are viewing this thread

    Top Bottom