Wrong order in joined files (1 Viewer)

erikture

MP Donator
  • Premium Supporter
  • March 26, 2008
    87
    5
    Home Country
    Sweden Sweden
    Hello!

    I have a collection of movies where some are divided into two or more files.
    I have named them like MovieName CD1.avi MovieName CD2.avi.
    The automatic import joins the files together into one movie and finds a matching descrition for the movie.
    However sometimes, most of the times, but not always the order is reverse, ie CD2 is before CD1.
    Of course I could manually reorder them but as my collection is rather big I would prefere not to do that.

    Why is the sort order wrong?
    Why is it ok in some cases and not in some other. The naming convention is always the same?
    What is the best naming convention for multipart movies?

    /Erik
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    45
    Texas
    Home Country
    United States of America United States of America
    CD1 and CD2 should normally be fine. Are you copying files into your watch folder while Moving Pictures is open? If you do that and the CD2 file gets copied first I could see how this might happen...
     

    erikture

    MP Donator
  • Premium Supporter
  • March 26, 2008
    87
    5
    Home Country
    Sweden Sweden
    Hello!

    No I am not copying files while MediaPortal or the configuration plugin is running.
    I have made a fresh store with movies. Then when all files are in correct place with correct names I start the configuration plugin. Then most files named CD1 and CD2 is in wrong order. If I have movies containing more than 2 files I can not manage to get them in the right order using the gui.

    /Erik
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    45
    Texas
    Home Country
    United States of America United States of America
    Assuming all files are added at the same time (meaning they were all in the directory when the importer grabbed then, nothing added later) files should be listed in alphabetical order. Perhaps there are subtle filename differences besides CD1 and CD2? If not then could you post debug logs while reproducing the error?
     

    erikture

    MP Donator
  • Premium Supporter
  • March 26, 2008
    87
    5
    Home Country
    Sweden Sweden
    I think that the cause of the wrong order is that my files is located on a Linux server which I access using Samba, i e I have mapped for example x:\Movies to my movie directory. I think that when the plugin does a directory listing the files are returned in an non expected order. I have looked into the code and I could not find any explisit sort of the files that are joined together.

    Could this be the cause?

    /Erik
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    987
    623
    Zoetermeer
    Home Country
    Netherlands Netherlands
    If the files are not in order that could be the cause yes.. is there some way to confirm this is what happening?
    Can you try to backup your database and artwork and do a fresh import from that particular path. Turn on debug logging and the order in which the log file displays the new file should be "out of alphabetic order".
     

    Pirppuli

    MP Donator
  • Premium Supporter
  • July 19, 2008
    63
    44
    Helsinki
    Home Country
    Finland Finland
    I'm experiencing the same problem. I have a network share on a QNAP TS-439 with the following directory/file structure (this is just a short example):

    Code:
    Spider-Man (2002)/
      Spider-Man (2002) - CD 1.avi
      Spider-Man (2002) - CD 2.avi
      Folder.jpg
    Spider-Man 2 (2004)/
      Spider-Man 2 (2004) - CD 1.avi
      Spider-Man 2 (2004) - CD 1.Fi.sub
      Spider-Man 2 (2004) - CD 2.avi
      Spider-Man 2 (2004) - CD 2.Fi.sub
      Folder.jpg

    I recently rebuilt my htpc and did a fresh scan of all the movies using the latest release of Moving Pictures. I ended up having to go through the whole movie database and correct the randomly ordered files manually.
     

    armandp

    Retired Team Member
  • Premium Supporter
  • April 6, 2008
    987
    623
    Zoetermeer
    Home Country
    Netherlands Netherlands
    I've implemented a sort in the filelist in 0.8 - i still like to see some debug logs though to confirm that is the actual problem
     

    Pirppuli

    MP Donator
  • Premium Supporter
  • July 19, 2008
    63
    44
    Helsinki
    Home Country
    Finland Finland
    Here are the results from a test I did with some fake files. The directory listing is from DOS dir command:

    Code:
     Directory of \\jupiter\public\Lord of the Rings, The - The Fellowship of the Ring (2001)
    
    28.07.2009  18:15    <DIR>          .
    28.07.2009  18:14    <DIR>          ..
    28.07.2009  18:29                 0 Lord of the Rings, The - The Fellowship of the Ring (2001) - CD 4.avi
    28.07.2009  18:29                 0 Lord of the Rings, The - The Fellowship of the Ring (2001) - CD 3.avi
    28.07.2009  18:29                 0 Lord of the Rings, The - The Fellowship of the Ring (2001) - CD 2.avi
    28.07.2009  18:15            34 761 Folder.jpg
    28.07.2009  18:29                 0 Lord of the Rings, The - The Fellowship of the Ring (2001) - CD 1.avi
                   5 File(s)         34 761 bytes

    The configuration GUI show the same playback order as the attached log: CD 4 -> CD 3 -> CD 2 -> CD 1. Hope this helps.
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    45
    Texas
    Home Country
    United States of America United States of America
    Just a quick update, this has been fixed and verified for the 0.8 release, so in a few weeks when we release this will no longer be an issue.
     

    Users who are viewing this thread

    Top Bottom