Beat you, lost 1.2gb of junk files
Pity that neither TVSeries\MovPics does this on file deletion
Pity that neither TVSeries\MovPics does this on file deletion
Beat you, lost 1.2gb of junk files
Pity that neither TVSeries\MovPics does this on file deletion
...... or perhaps this tool can be expanded to be a nice easy to use MPEI plugin for couch control from within MePo GUI, as it can then be expanded to cover MyVideos and other artwork generating plugins as well (OnlineVideos, Fanart Handler, etc).
RoChess, can you give the attached a try since I only have W7 machines. With the changes done to load paths from MediaPortalDirs.xml, it is still working on my setup.
Beat you, lost 1.2gb of junk files
Pity that neither TVSeries\MovPics does this on file deletion
Well consider this, you delete your entire collection by mistake (or database corruption, or whatever) and reimport it all. Then those many GBs of artwork can be instantly obtained from the local version again.
However, this "garbage collection" as I think the correct term is, would be better suited to be part of either plugins, or perhaps this tool can be expanded to be a nice easy to use MPEI plugin for couch control from within MePo GUI, as it can then be expanded to cover MyVideos and other artwork generating plugins as well (OnlineVideos, Fanart Handler, etc).
RoChess, can you give the attached a try since I only have W7 machines. With the changes done to load paths from MediaPortalDirs.xml, it is still working on my setup.
Tried it, now it shows "\Team MediaPortal\MediaPortal\Database\" for database folder and "\Team MediaPortal\MediaPortal\Thumbs\" for thumbs, which is not correct either. Looking at the MediaPortalDirs.xml file, I see that the MePo team has changed things and I think they deal with the correct path on XP machines on a different way.
See the CMD environment value of %ProgramData% doesn't even exist on XP, as you have to use %ALLUSERSPROFILE% to get to "C:\Documents and Settings\All Users", it is inside this folder (well "Application Data" subfolder to be exact) that MediaPortal puts its data files.
XP = "%ALLUSERSPROFILE%\Application Data\Team MediaPortal\MediaPortal\database"
Vista/Win7/Win8 = "%ProgramData%\Team MediaPortal\MediaPortal\database"
So what MediaPortal most likely does (guessing a bit) is to see if the "%ProgramData%" CMD environment variable is empty or contains a path. If it has a path you are on Vista/Win7 and can use it as-is. If its empty then your path becomes "%ALLUSERSPROFILE%\Application Data".
Thats the logic behind it to make it XP/Vista/Win7/Win8/etc compatible, I just don't know how to do that in C#
But I'll be happy to test v1.2 for you
Hi , just a small note abut the name of the tool ... ,
the tool delete Covers and Backdrops .... so the name say "FanartCleaner" ... maybe " ArtimageCleaner" or "MPCleaner" as ltfearme suggest more Feat's the tool ??
1 more thing do the tool also delete the Banners image's in TVSeries too ?