[Plugin] MPCleaner - Deletes images from your thumbs folder that are no longer in use | Page 17

Discussion in 'MediaPortal 1 Plugins' started by m3rcury, June 23, 2012.

  1. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    954
    Likes Received:
    523
    Gender:
    Male
    Ratings:
    +621 / 4
    Home Country:
    Malta Malta
    Show System Specs
    MPCleaner v1.1.0.16 has been uploaded. Please download from here.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. barneh
    • Premium Supporter

    barneh MP Donator

    Joined:
    February 4, 2010
    Messages:
    242
    Likes Received:
    27
    Location:
    Malmö
    Ratings:
    +53 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Well.. the intention was not to delete the movie file as I see the request.

    The request was, as I read it:
    • if the user uses a folder structure and a folder don't have a movie file, then delete all the files in the folder and the folder as well.
    • if the user has a flat structure with all the files in one folder, check if the *.srt/ *.nfo/ *.jpg has a corresponding (in name) *.mov/ *.mkv/ *.mp4 file. If it has, do nothing. Otherwise delete the file.
     
    • Agree Agree x 1
  4. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,701
    Likes Received:
    2,688
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,653 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    *.avi, 3gp ... :whistle: etc etc :) :coffee:
     
    • Thank You! Thank You! x 2
  5. SpudR
    • Team MediaPortal

    SpudR Documentation Group

    Joined:
    July 27, 2007
    Messages:
    2,604
    Likes Received:
    449
    Occupation:
    CTO, MD
    Location:
    Yorkshire, UK
    Ratings:
    +676 / 2
    Home Country:
    England England
    Show System Specs
    Pretty sure that the above is way outside the remit of this plugin - AFAIK this was aimed at removing out of date fanart and thumbs etc. not a media management plugin.
    Maybe the Moving Pictures and/or My TV Series plugins would be better suited as that is what they are aimed at.

    Anyways - thanks for the update :)
     
  6. Terra

    Terra Portal Pro

    Joined:
    August 25, 2009
    Messages:
    230
    Likes Received:
    36
    Ratings:
    +55 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Since today I am having the problem that MPCleaner crashes MePo a few minutes after MePo starts.
    I can post full logs if desired, but I think there just needs to be a try-catch implemented?

    I had to uninstall MPCleaner now so that I can start MePo.

    Code (Text):
    1.  
    2. [2017-08-27 20:42:10,638] [Log    ] [1        ] [INFO ] - Starting deployer application
    3. [2017-08-27 20:42:10,663] [Log    ] [MPMain   ] [INFO ] - Main: MediaPortal SetProcessDPIAware 1
    4. [2017-08-27 20:42:10,668] [Log    ] [MPMain   ] [INFO ] - Using alternate configuration file: C:\Users\Terra\AppData\Local\Temp\MPTemp\MediaPortalTemp.xml
    5. [2017-08-27 20:42:10,691] [Log    ] [MPMain   ] [INFO ] - Main: MediaPortal v1.16.0.0 is starting up on Windows 10 [10.0.15063.0]
    6. [2017-08-27 20:42:10,698] [Log    ] [MPMain   ] [INFO ] - Build: 1.16.0.0
    7. [2017-08-27 20:42:10,703] [Log    ] [MPMain   ] [INFO ] - Main: Minimum number of worker threads to 8/4
    8. [...]
    9. [2017-08-27 20:43:31,209] [Log    ] [MPMain   ] [INFO ] - PluginManager: Plugin: 'C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\process\MPCleaner.dll' / Version: 1.1.0.16
    10. [...]
    11. [2017-08-27 20:43:31,799] [Log    ] [MPMain   ] [INFO ] - FanartHandler Translation: Cannot find translation file C:\ProgramData\Team MediaPortal\MediaPortal\Language\FanartHandler\en-US.xml.  Failing back to English
    12. [2017-08-27 20:43:34,181] [Log    ] [MPMain   ] [INFO ] - PS: Starting PowerScheduler client plugin...
    13. [2017-08-27 20:43:34,196] [Log    ] [20       ] [INFO ] - MPCleaner: process plugin initialisation.
    14. [2017-08-27 20:43:34,224] [Log    ] [20       ] [INFO ] - MPCleaner: process plugin last run on 17.08.2017 23:23:51
    15. [2017-08-27 20:43:34,231] [Log    ] [20       ] [INFO ] - MPCleaner: process plugin configured to run daily.
    16. [2017-08-27 20:43:34,228] [Log    ] [MPMain   ] [INFO ] - PS: Detected remote client setup - TV-Server on "XXX"
    17. [2017-08-27 20:43:34,241] [Log    ] [20       ] [INFO ] - MPCleaner: process plugin configured to run at 07:00. Current time is 20:43
    18. [2017-08-27 20:43:34,261] [Log    ] [MPMain   ] [INFO ] - PS: PowerSchedulerFactory
    19. [2017-08-27 20:43:34,266] [Log    ] [20       ] [INFO ] - MPCleaner: process plugin starting execution immediately.
    20. [2017-08-27 20:43:34,317] [Log    ] [MPMain   ] [INFO ] - PS: PowerScheduler client plugin started
    21. [2017-08-27 20:43:34,333] [Log    ] [MPMain   ] [INFO ] - MusicShareWatcher Plugin 0.3 starting.
    22. [2017-08-27 20:43:34,333] [Log    ] [29       ] [INFO ] - MPCleaner: processing movingpictures - start.
    23. [2017-08-27 20:43:34,355] [Log    ] [46       ] [INFO ] - MPCleaner: processing pictures - start.
    24. [2017-08-27 20:43:34,347] [Log    ] [43       ] [INFO ] - MPCleaner: processing TVSeries objects - start.
    25. [2017-08-27 20:43:34,337] [Log    ] [40       ] [INFO ] - MPCleaner: processing movie objects - start.
    26. [2017-08-27 20:43:34,362] [Log    ] [47       ] [INFO ] - MPCleaner: processing videos - start.
    27. [2017-08-27 20:43:34,345] [Log    ] [45       ] [INFO ] - MPCleaner: processing music - start.
    28. [2017-08-27 20:43:34,351] [Log    ] [41       ] [INFO ] - MPCleaner: processing tvseries - start.
    29. [2017-08-27 20:43:34,414] [MusicShareWatcher] [MPMain   ] [INFO ] - MusicShareWatcher starting up!
    30. [2017-08-27 20:43:34,440] [MusicShareWatcher] [MPMain   ] [INFO ] - Starting up a worker thread...
    31. [2017-08-27 20:43:34,460] [Log    ] [MPMain   ] [INFO ] - MusicShareWatcher Plugin now monitoring the shares.
    32. [2017-08-27 20:43:34,464] [MusicShareWatcher] [MusicShareWatcher] [INFO ] - Monitoring active for following shares:
    33. [2017-08-27 20:43:34,484] [MusicShareWatcher] [MusicShareWatcher] [INFO ] - ---------------------------------------
    34. [2017-08-27 20:43:34,474] [Log    ] [MPMain   ] [INFO ] - SkinTranslationsPlugin: Starting plugin
    35. [2017-08-27 20:43:34,522] [MusicShareWatcher] [MusicShareWatcher] [INFO ] - XXX
    36. [2017-08-27 20:43:34,532] [MusicShareWatcher] [MusicShareWatcher] [INFO ] - ---------------------------------------
    37. [2017-08-27 20:43:34,542] [MusicShareWatcher] [MusicShareWatcher] [INFO ] - Note: Errors reported for CD/DVD drives can be ignored.
    38. [2017-08-27 20:43:34,567] [Log    ] [MPMain   ] [INFO ] - SkinTranslationsPlugin: Using language: en-US
    39. [2017-08-27 20:43:34,602] [Log    ] [MPMain   ] [WARN ] - SkinTranslationsPlugin: Cannot find skin translation file C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\Translations\en-US.xml
    40. [2017-08-27 20:43:34,617] [Log    ] [MPMain   ] [INFO ] - SkinTranslationsPlugin: Nothing to translate for skin Titan
    41. [2017-08-27 20:43:34,652] [Log    ] [MPMain   ] [INFO ] - Titan BasicHome plugin: Skin found
    42. [2017-08-27 20:43:34,752] [Log    ] [BassAudio] [INFO ] - BASS: Initialize BASS environment ...
    43. [2017-08-27 20:43:34,800] [Log    ] [MPMain   ] [INFO ] - Main: Initializing volume handler
    44. [2017-08-27 20:43:34,801] [Log    ] [BassAudio] [INFO ] - BASS: Loading audio decoder add-ins...
    45. [2017-08-27 20:43:34,872] [Log    ] [BassAudio] [INFO ] - BASS: Loaded 15 Audio Decoders.
    46. [2017-08-27 20:43:34,992] [Log    ] [BassAudio] [INFO ] - BASS: Initializing BASS environment done.
    47. [2017-08-27 20:43:35,163] [Log    ] [MPMain   ] [INFO ] - Main: Deactivation request received
    48. [2017-08-27 20:43:35,321] [Log    ] [MPMain   ] [INFO ] - Main: Activation request received
    49. [2017-08-27 20:43:35,342] [Log    ] [MPMain   ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)
    50. [2017-08-27 20:43:35,353] [Log    ] [MPMain   ] [INFO ] - Main: The display is on
    51. [2017-08-27 20:43:35,584] [Log    ] [MPMain   ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)
    52. [2017-08-27 20:43:35,640] [Log    ] [MPMain   ] [INFO ] - Main: User is providing input to the session
    53. [2017-08-27 20:43:35,603] [Log    ] [PS StandbyWakeup] [INFO ] - PS: System changed from busy state to idle state
    54. [2017-08-27 20:43:35,967] [Log    ] [MPMain   ] [INFO ] - Main: Activation request received
    55. [2017-08-27 20:43:36,014] [Log    ] [MPMain   ] [INFO ] - GUIMusicPlaylist: Default Playlist loaded
    56. [2017-08-27 20:43:36,089] [Log    ] [MPMain   ] [INFO ] - D3D: Stopping splash screen thread
    57. [2017-08-27 20:43:38,024] [Log    ] [48       ] [INFO ] - MPSync: process plugin version 1.0.0.17 initialisation.
    58. [2017-08-27 20:43:40,016] [Log    ] [MPMain   ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\TVSeries.xml' is missing control id 10 (window property: filterButton)
    59. [2017-08-27 20:43:40,030] [Log    ] [MPMain   ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\TVSeries.xml' is missing control id 526 (window property: loadingImage)
    60. [2017-08-27 20:43:40,097] [Log    ] [MPMain   ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\TVSeries.xml' is missing control id 10 (window property: filterButton)
    61. [2017-08-27 20:43:40,106] [Log    ] [MPMain   ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\TVSeries.xml' is missing control id 526 (window property: loadingImage)
    62. [2017-08-27 20:43:44,956] [Log    ] [46       ] [INFO ] - MPCleaner: processing Pictures - start
    63. [2017-08-27 20:43:45,044] [Log    ] [46       ] [INFO ] - MPCleaner: processing Pictures - complete. Thumbs deleted to trash: 0
    64. [2017-08-27 20:43:45,153] [Log    ] [46       ] [INFO ] - MPCleaner: processing pictures - complete.
    65. [2017-08-27 20:43:59,140] [Log    ] [40       ] [INFO ] - MPCleaner: processing movie objects - complete.
    66. [2017-08-27 20:44:04,541] [Log    ] [41       ] [INFO ] - MPCleaner: processing tvseries (3) - failed with error when deleting extra fanart records: database is locked
    67. database is locked
    68. [2017-08-27 20:44:04,609] [Error  ] [41       ] [ERROR] - MediaPortal: Unhandled exception occured
    69. [2017-08-27 20:44:04,699] [Log    ] [41       ] [ERROR] - Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object.
    70.    at System.Data.SQLite.SQLiteConnection.set_ConnectionString(String value)
    71.    at MPCleaner.MPCleanerProcess.Process_TVSeries()
    72.    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    73.    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    74.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    75.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    76.    at System.Threading.ThreadHelper.ThreadStart()  Message: Operation is not valid due to the current state of the object.  Site   : Void set_ConnectionString(System.String)  Source : System.Data.SQLite  Stack Trace:     at System.Data.SQLite.SQLiteConnection.set_ConnectionString(String value)
    77.    at MPCleaner.MPCleanerProcess.Process_TVSeries()
    78.    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    79.    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    80.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    81.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    82.    at System.Threading.ThreadHelper.ThreadStart()
     
  7. volumia

    volumia Portal Pro

    Joined:
    November 23, 2011
    Messages:
    96
    Likes Received:
    18
    Gender:
    Male
    Location:
    whereever my feet take me...
    Ratings:
    +34 / 0
    Home Country:
    Netherlands Netherlands
    Hi m3rcury,

    Since the last changes in the naming convention for fanart as shown in MP TVSeries, MPCleaner keeps removing those after download.
    Is there any change you can look into that? There's a thread over here; [Resolved] No fanart for "Who is America?"
     
    • Thank You! Thank You! x 1
  8. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    954
    Likes Received:
    523
    Gender:
    Male
    Ratings:
    +621 / 4
    Home Country:
    Malta Malta
    Show System Specs
    @volumia. The plugin gets the names from what is stored in the database, hence irrespective of what naming convention is used, as long as the image name is stored somewhere in the database, it should not be deleted.
     
  9. volumia

    volumia Portal Pro

    Joined:
    November 23, 2011
    Messages:
    96
    Likes Received:
    18
    Gender:
    Male
    Location:
    whereever my feet take me...
    Ratings:
    +34 / 0
    Home Country:
    Netherlands Netherlands
    Well, that's just it... it does delete them. For now I disabled the TVSeries cleanup and that's the fix for now.
    Maybe it depends on the column it's looking up the filename in the Fanart table? I noticed that the filenames defer between the LocalPath and BannerPath?
    But that's just what I could come up with.
     
  10. m3rcury
    • Team MediaPortal

    m3rcury Development Group

    Joined:
    August 12, 2010
    Messages:
    954
    Likes Received:
    523
    Gender:
    Male
    Ratings:
    +621 / 4
    Home Country:
    Malta Malta
    Show System Specs
    @volumia. Will have a look into the code.
     
  11. fischy667
    • Super User

    fischy667 Super User

    Joined:
    May 5, 2010
    Messages:
    930
    Likes Received:
    181
    Gender:
    Male
    Occupation:
    physicist - Software Tester
    Location:
    Rostock
    Ratings:
    +353 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Ich can confirm the described behavior.
     
    • Thank You! Thank You! 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!