home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Preserve Movie Information while moving files
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 921774" data-attributes="member: 18896"><p>MovPic generates a hash on your files, its based on the content.</p><p> </p><p>So if you rename your files, or move them to another active import path, the movie reference in database is simply updated to the new name/location.</p><p> </p><p>However if you 'move' the file too slow without a file-lock, then MovPic kicks in a delete first and then re-adds it.</p><p> </p><p>For example if I move a file from <strong>\\UNC-Path\Movies\Some.Movie.avi</strong> to <strong>D:\Movies</strong> on the HTPC then even with MovPic running the path gets updated. If I move it from <strong>D:\Movies\Action\Some.Movie.avi</strong> to<strong> D:\Movies\Thriller</strong> it instantly gets updated as well. But if I move it from my D: drive to E: drive then sometimes it gets deleted first and then re-added because the D: drive is much faster then the E: drive and causes lock issues I guess (or whatever is the real reason).</p><p> </p><p>The best way to prevent it is to simply close down MePo/MovPic and move all the files first (and rename) and then launch MovPic. It will take a few seconds to mass-update everything (I've just recently moved about 350 movies over and it took about 4 secs to update, most of the time was lost creating all the log entries).</p><p> </p><p>An easy way to see this inside MovPic config is to open the first tab and look at the 'red' colored list entries. This reflects a path update has been done, and if you close it and re-open they will show their normal 'black' color. An even more detailed way would be to analyze the log file, I do this via batch scripts myself, such as:</p><p> </p><p>[code]</p><p>@Echo Off</p><p>IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find " was renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log"</p><p>IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find " was moved/renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log"</p><p>find " was renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"</p><p>find " was moved/renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"</p><p>echo.</p><p>pause</p><p>[/code]</p><p> </p><p>Another script I use to verify what movies got added and which movies failed to auto-approve is:</p><p> </p><p>[code]</p><p>@Echo Off</p><p>IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "Removing: " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log"</p><p>IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "Added """ "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log"</p><p>IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "MovieImporter]: No exact match for " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log"</p><p>find "Removing: " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"</p><p>find "Added """ "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"</p><p>find "MovieImporter]: No exact match for " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log"</p><p>echo.</p><p>pause</p><p>[/code]</p><p> </p><p>I didn't bother prettying up the output, but it is definatly useful for me in a concurrent user environment with MediaPortal sometimes in use with MP-TVSeries when I want to find out what MovPic did via RDP. The above scripts let me do just that.</p></blockquote><p></p>
[QUOTE="RoChess, post: 921774, member: 18896"] MovPic generates a hash on your files, its based on the content. So if you rename your files, or move them to another active import path, the movie reference in database is simply updated to the new name/location. However if you 'move' the file too slow without a file-lock, then MovPic kicks in a delete first and then re-adds it. For example if I move a file from [B]\\UNC-Path\Movies\Some.Movie.avi[/B] to [B]D:\Movies[/B] on the HTPC then even with MovPic running the path gets updated. If I move it from [B]D:\Movies\Action\Some.Movie.avi[/B] to[B] D:\Movies\Thriller[/B] it instantly gets updated as well. But if I move it from my D: drive to E: drive then sometimes it gets deleted first and then re-added because the D: drive is much faster then the E: drive and causes lock issues I guess (or whatever is the real reason). The best way to prevent it is to simply close down MePo/MovPic and move all the files first (and rename) and then launch MovPic. It will take a few seconds to mass-update everything (I've just recently moved about 350 movies over and it took about 4 secs to update, most of the time was lost creating all the log entries). An easy way to see this inside MovPic config is to open the first tab and look at the 'red' colored list entries. This reflects a path update has been done, and if you close it and re-open they will show their normal 'black' color. An even more detailed way would be to analyze the log file, I do this via batch scripts myself, such as: [code] @Echo Off IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find " was renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find " was moved/renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find " was renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log" find " was moved/renamed to " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log" echo. pause [/code] Another script I use to verify what movies got added and which movies failed to auto-approve is: [code] @Echo Off IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "Removing: " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "Added """ "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" IF EXIST "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "MovieImporter]: No exact match for " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.old.log" find "Removing: " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log" find "Added """ "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log" find "MovieImporter]: No exact match for " "C:\ProgramData\Team MediaPortal\MediaPortal\log\movingpictures.log" echo. pause [/code] I didn't bother prettying up the output, but it is definatly useful for me in a concurrent user environment with MediaPortal sometimes in use with MP-TVSeries when I want to find out what MovPic did via RDP. The above scripts let me do just that. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Preserve Movie Information while moving files
Contact us
RSS
Top
Bottom