Delete old Covers and Backdrops no longer in movingpictures.db3 | Page 2

Discussion in 'Moving Pictures' started by m3rcury, June 10, 2012.

  1. Paranoid Delusion
    • Premium Supporter

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Beat you, lost 1.2gb of junk files :D



    Pity that neither TVSeries\MovPics does this on file deletion :(
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    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).
     
  4. ysmp
    • Team MediaPortal

    ysmp Design Group

    Joined:
    May 17, 2008
    Messages:
    1,861
    Likes Received:
    701
    Gender:
    Male
    Location:
    Seoul.
    Ratings:
    +790 / 1
    Home Country:
    South Korea South Korea
    Just thinking to my self the same thing.... ;) , sure will be cool to have ...
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    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 :D
     
  6. Paranoid Delusion
    • Premium Supporter

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I agree fully, also have backdrops\fanart\nfo in movie folder, so re-import is never a major problem, would like this expanded to cover the MP myvideo's as well, especially with the changes now done by Deda for 1.3.0alpha, not sure about anyone else, but my movie collection is constantly changing\updating :D
     
  7. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,651
    Likes Received:
    4,613
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,917 / 0
    Home Country:
    Australia Australia
    So now we need a new plugin called MPCleaner :)
     
  8. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    957
    Likes Received:
    527
    Gender:
    Male
    Ratings:
    +626 / 4
    Home Country:
    Malta Malta
    Show System Specs

    RoChess, thanks for the details. Will amend accordingly as I didn't know of this difference due to not having an XP box :p
     
  9. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    957
    Likes Received:
    527
    Gender:
    Male
    Ratings:
    +626 / 4
    Home Country:
    Malta Malta
    Show System Specs
    RoChess, here is FanartCleaner v1.2 which should now cater for "%ALLUSERSPROFILE%\Application Data". Can you test it for me please and advise if it woks.


    Thanks and regards
     

    Attached Files:

    • Like Like x 1
  10. ysmp
    • Team MediaPortal

    ysmp Design Group

    Joined:
    May 17, 2008
    Messages:
    1,861
    Likes Received:
    701
    Gender:
    Male
    Location:
    Seoul.
    Ratings:
    +790 / 1
    Home Country:
    South Korea South Korea
    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 ?
     
  11. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    957
    Likes Received:
    527
    Gender:
    Male
    Ratings:
    +626 / 4
    Home Country:
    Malta Malta
    Show System Specs
    ysmp, tool clears the following folders:
    • MovingPictures\Covers\FullSize
    • MovingPictures\Covers\Thumbs
    • MovingPictures\Backdrops\FullSize
    • MPTVSeriesBanners
    • Fan Art\fanart\original
    • Fan Art\_cache\fanart\original
    Regarding the tool name, I'll see if I can first turn it into a plugin, but it will be a first for me, so will take me some time :)
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!