Moving movies from one source directory to another (1 Viewer)

yossis

Portal Member
September 19, 2009
22
0
Home Country
Israel Israel
I have two folders on the same drive configured as two different sources in Moving Pictures.
I want to merge them into one directory without re-importing the files I move.
When I attempted to move one movie while the configuration of the plugin is open, it detected the move automatically and updated the location. But for other files it doesn't work and a re-import is attempted. Couldn't understand the logic of why sometimes it detects and sometimes not.

Is there an easy way of doing it?

Thanks
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Is there an easy way of doing it?

    The detection logic on local drives is instant to detect a 'new' movie. So unless you move from one folder to another folder on the same drive, it will never be instant enough to prevent a "detect new" + "delete old" from occuring seperate. To prevent that simply ensure Moving-Pictures is not running, move all the files and then launch it back up.

    Quick way to detect all the movies that properly "moved" without re-importing can be seen via the following batch script:

    Code:
    @Echo Off
    chcp 1252 > nul
    find " was renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"
    pause
     

    yossis

    Portal Member
    September 19, 2009
    22
    0
    Home Country
    Israel Israel
    Thanks for your reply.
    I'm pretty sure I tried both. The folders are on the same drive and, as mentioned, sometimes it just moves the files and sometimes it detects a new movie.
    When it's not running, it also detected new movies when I launched it. But I'll try that again to make sure.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I've moved about 500 entries a while back and 3 or 4 (can't remember exactly) ended up getting re-imported, but I traced it back to a problem with the original hash calculations (the method used to detect the movie is the same when you move it).

    Do you add movies to an import folder with MovPic running? You might want to check the 'delay import when file is locked' setting and ensure it is set to "True" in the advanced settings. Otherwise during import the hash calculation fails, forcing MovPic to re-import the movie when you move it.
     

    Users who are viewing this thread

    Top Bottom