[Approved] - How to Video database section and My Movies get to life | Page 15

Discussion in 'Archive' started by Deda, July 20, 2010.

  1. cyberfix Portal Member

    Thanks for you quick reply!

    Here is the problem... I recently converted my machine to a virtual machine. The code was on an external hard drive that started going out on me. I was able to copy all of the code to a RAID system and have it now, but it was not able to copy any of the SVN data. It does not see the revision info and what was patched anymore.

    I am not sure if there is an easy way of creating a patch now as I am not a SVN expert. Any ideas?

    In the meantime, mode code is located:
    Designer - added new tab called "tabPageProfilerImport" with the controls that are associated with it.
    Code (text):
            this.tabPageProfilerImport.Controls.Add(this.cbDuplicateSkip2);
            this.tabPageProfilerImport.Controls.Add(this.label7);
            this.tabPageProfilerImport.Controls.Add(this.label12);
            this.tabPageProfilerImport.Controls.Add(this.labelImportStatus2);
            this.tabPageProfilerImport.Controls.Add(this.progressBarImportStatus2);
            this.tabPageProfilerImport.Controls.Add(this.cbSortTitle2);
            this.tabPageProfilerImport.Controls.Add(this.cbCopyImages2);
            this.tabPageProfilerImport.Controls.Add(this.label15);
            this.tabPageProfilerImport.Controls.Add(this.mpButton3);
            this.tabPageProfilerImport.Controls.Add(this.mpButton4);
            this.tabPageProfilerImport.Location = new System.Drawing.Point(4, 22);
            this.tabPageProfilerImport.Name = "tabPageProfilerImport";
            this.tabPageProfilerImport.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageProfilerImport.Size = new System.Drawing.Size(458, 376);
            this.tabPageProfilerImport.TabIndex = 7;
            this.tabPageProfilerImport.Text = "DVD Profiler Import";
            this.tabPageProfilerImport.UseVisualStyleBackColor = true;
    Code form - There are only two areas of code assigned to buttons
    Code (text):
    private void mpButton3_Click(object sender, EventArgs e)
    private void mpButton4_Click(object sender, EventArgs e)
    mpButton4 is the RESET button code and mpButton3 is the DVD Profiler import code.

    These are the only two areas of code and it is not mixed with any MP code.

    I would be glad to help in any way possible. I have one other patch that I always do and I may be overlooking something on if I really need it. I will post it for your thoughts after I can find a way to create a patch file for it.
    • Team MediaPortal

    Deda Thread Starter Lead Dev MP1 Videos

    System Specs
    OK, I will try to inject and adapt your code against latest SVN to see if you will have any problem and will give you patched files here so you can continue your work. I hope it will do it's job as before without too much changes because I did My Videos changes carefully not break anything crucial in MP code.
    • Like Like x 1
  2. cyberfix Portal Member

    I don't know if this helps, but I was able to create a patch of my changes against MP v1.1.0 final build. I am attaching the DIFF file and an image showing what the other patch was for.

    The other patch simply showed the name of the file in stacked mode. So if you clicked on Family Guy Volume 1, it would show all of the Discs for the various episodes, then at the top of the dialog box, it shows the name of the currently selected episode. I never understood why this was not always normal functionality and I am not sure if my patch is the right way to do it as I query the database.

    Thanks again!

    Edit:
    I will attach the other files too in case this patch does not work right.

    Attached Files:

    • Team MediaPortal

    Deda Thread Starter Lead Dev MP1 Videos

    System Specs
    Ok heres the diff files for your patch against latest SVN 26558. I added some code for managing movie title and covers (please have a look and see if this will work for you) how is now handled.

    Patch for stack mode can be used in latest SVN but it doesn't work as it should (selected stack file name/title is scattered around the screen). As there is some changes in skin managing in 1.2.0 try to see what causes trouble, overall it works but you need to fix those labels problems. If you manage you can post your result here Submit: code patches (MediaPortal/TV-Server/etc.) - MediaPortal Forum as diff patch and binaries and surely devs will look into it. This will be nice feature.

    If I can help you more just ask here.
  3. xvffx Portal Pro

    Hi,
    how would the folder structure would/should look like for series? (I don't have any series.. yet)

    would it be the same for DVD Movies?

    Vff
    • Team MediaPortal

    Deda Thread Starter Lead Dev MP1 Videos

    System Specs
    Easiest is one folder and Serie cd1, Serie CD2, Serie CD3 ..... with that you will have only one title with stacked files inside, something like screen-shot few posts above, or if seasons like Season1: Serie [1-1], Serie [1-2].. Season 2: Serie [2-1], Serie [2-2]....
    • Team MediaPortal

    Guzzi Retired Team Member

    System Specs
    AW: How to Video database section and My Movies get to life

    Hi Deda,
    may I have a maybe silly question:
    is there the possibility to load/update movie/actor infos via classes/calls also from within a plugin - or is this only possible from configuration utility?
    So let's say: I display a movie, want to display actor infos, they're not yet in the db, so I call routines to add them (and also show the thumbs)?
    • Team MediaPortal

    Deda Thread Starter Lead Dev MP1 Videos

    System Specs
    Re: AW: How to Video database section and My Movies get to life

    Sorry for little late response, yes it's possible, just reference MP Database.dll:
    using MediaPortal.Video.Database;

    and with (ie. mpMovies object):
    VideoDatabaseSqlLite mpMovies = new VideoDatabaseSqlLite();

    it should work.
    • Team MediaPortal

    Guzzi Retired Team Member

    System Specs
    AW: Re: AW: How to Video database section and My Movies get to life

    Hi Deda,
    will give it a try; I think I should check available classes first and come back if I have further questions ;-)
    Thanks, Guzzi
    • Team MediaPortal

    Guzzi Retired Team Member

    System Specs
    AW: How to Video database section and My Movies get to life

    hi Deda,
    i have upgraded mepo from 1.1.1 plus your binaries from 08.10.2010 to V1.2alpha - so far functionality is fine, BUT: I have a masive decrease in performance, when loading big facades.
    I saw, there were some changes (26489, optimized cache, 26488, deadlock fix) and even tried to recompile without those changes, but that didn't help.
    loading a big facade goes from 1-2 seconds to 10-30 seconds with mepo 1.2.
    Any hint, how this problem could be hunted down? There is nothing in the logs - and I can#t create problemreport, because former version is not an official release - but I would be very much interested in getting this problem fixed - have reverted to 1.1.1 with your binaries for the time being ...
    thanks, Guzzi

Share This Page

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

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners