Stacked files (1 Viewer)

Mr Hipp

Retired Team Member
  • Premium Supporter
  • April 2, 2006
    1,261
    188
    57
    Malmö
    Home Country
    Sweden Sweden
    Hi everyone,

    I have made a fix for a problem with stacked files.

    When Media Portal shows a file list that contains stacked files, then only the size of the first file is shown (The sum of all stacked files should be show). I have made a simple fix that corrects this issue.

    In GUIVideofiles.cs / LoadDirectory

    ...
    if (Utils.ShouldStack(item1.Path, item2.Path))
    {
    if (String.Compare(item1.Path, item2.Path, true) > 0)
    {
    addItem = false;
    // Update to reflect the stacked size
    item2.FileInfo.Length +=item1.FileInfo.Length;
    }
    }
    ...

    How do I get my change commited to CVS.

    P.S I also have some other fixes that I would like to have added.
     

    Mr Hipp

    Retired Team Member
  • Premium Supporter
  • April 2, 2006
    1,261
    188
    57
    Malmö
    Home Country
    Sweden Sweden
    Hi Marc,

    Thanks for your reply. That list seems awful long. Is it a 'todo' list or is things that has been commited?

    Hans
     

    Molokoids

    Portal Pro
    April 22, 2004
    156
    1
    Hey Mr. Hipp, is your patch only for 2 stacked files or more ? Cause it's not that unusual to have more than 2 stacked files.
     

    Mr Hipp

    Retired Team Member
  • Premium Supporter
  • April 2, 2006
    1,261
    188
    57
    Malmö
    Home Country
    Sweden Sweden
    Hi Molokoids

    My patch should handle any number of files, but I have only tested it with two files :D

    Hans
     

    Users who are viewing this thread

    Top Bottom