damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

Use relative (rather than absolute) path for thumbs folders if using default #438

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some way of view it is also a bug report, but mainly it is an
improvement, imo.

=How is it done now?=
All paths (default paths for covers/backdrops and the absolute paths for
covers/backdrops for each movie) are stored in the db as full paths. For
example:
WinXP: C:\Documents and Settings\All Users\AppData\Team
MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize
WinVista: C:\ProgramData\Team
MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize

=What's the problem?=
Switching the OS and trying to reuse the settings results in redownloading
all the media, since Moving Pictures is searchin in the wrong folders.
Let's say you worked on WinXP at first: the directory points to
C:\Documents and Settings\All Users\AppData\Team
MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize

You make a backup of C:\Documents and Settings\All Users\AppData\Team
MediaPortal\ and on the other system WinVista, you copy the content to the
correct directory C:\ProgramData\Team MediaPortal\
Now MovingPictures is still searching the artwork here 
C:\Documents and Settings\All Users\AppData\Team
MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize.

Same happens if you keep the same OS, but wants to modify the
MediaPortalDirs.xml, which is in the installation directory and you edit
the path to the thumbs folder. After you move also the thumbs folder to the
new place, but moving pics is still searching in the old one for the files.

=How could this be solved?=
When any path entries are saved to the db, the path should be check if it
is part of the current MediaPortalDir.Thumbs directory, if so this part
should be replaced, maybe by %Config.Dir.Thumbs% or anything else. If
moving pics is started, any any path entries are requested
%Config.Dir.Thumbs% is replaced on the fly by GetFolder(Config.Dir.Thumbs)
so it is always MediaPortal's own thumb folder, no matter if it was moved
or you switched the OS.

Original issue reported on code.google.com by Tommy.Sc...@gmail.com on 7 May 2009 at 10:40

GoogleCodeExporter commented 9 years ago
Makes, sense, good suggestion. I think this has been mentioned a time or two 
before. I 
set this as a lower priority, but we will try to get it into 0.8.

Original comment by conrad.john on 30 May 2009 at 7:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Retagged the version number for this issue. This is not a rescheduling, we 
are just changing our version number scale.

Original comment by conrad.john on 29 Nov 2009 at 8:13

GoogleCodeExporter commented 9 years ago

Original comment by conrad.john on 13 Dec 2009 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by conrad.john on 31 Jan 2011 at 1:23

GoogleCodeExporter commented 9 years ago
Great suggestion, i also ran into this issue when i changed my setup to a 
centralized dB & thumbs folder on my server last weekend.

Original comment by jeroen.s...@gmail.com on 31 Jan 2012 at 7:05