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

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

  1. Knives03

    Knives03 Portal Pro

    Joined:
    March 6, 2009
    Messages:
    103
    Likes Received:
    2
    Ratings:
    +2 / 0
    I haven't had a chance to mess around with this yet, but I have moved my fanart and databases to a separate partition (drive labeled D:\) and was glad to see that you can choose custom locations for cleaning. I will probably try it out sometime later this week and will report back!


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Der_Bub
    • Premium Supporter

    Der_Bub MP Donator

    Joined:
    June 17, 2008
    Messages:
    829
    Likes Received:
    52
    Location:
    Cologne
    Ratings:
    +60 / 2
    Home Country:
    Germany Germany
    Show System Specs
    seems to be a very usefull tool, but I get an error (because I don't use online series):

    Code (Text):
    1. See the end of this message for details on invoking
    2. just-in-time (JIT) debugging instead of this dialog box.
    3.  
    4. ************** Exception Text **************
    5. System.Data.SQLite.SQLiteException (0x80004005): SQLite error
    6. no such table: online_series
    7.   at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
    8.   at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
    9.   at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
    10.   at System.Data.SQLite.SQLiteDataReader.NextResult()
    11.   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
    12.   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
    13.   at System.Data.SQLite.SQLiteCommand.ExecuteReader()
    14.   at FanartCleaner.FanartCleaner.Process_TVSeries()
    15.   at FanartCleaner.FanartCleaner.Delete_Click(Object sender, EventArgs e)
    16.   at System.Windows.Forms.Control.OnClick(EventArgs e)
    17.   at System.Windows.Forms.Button.OnClick(EventArgs e)
    18.   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    19.   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    20.   at System.Windows.Forms.Control.WndProc(Message& m)
    21.   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    22.   at System.Windows.Forms.Button.WndProc(Message& m)
    23.   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    24.   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    25.   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    26.  
    27.  
    28. ************** Loaded Assemblies **************
    29. mscorlib
    30.     Assembly Version: 4.0.0.0
    31.     Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    32.     CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    33. ----------------------------------------
    34. FanartCleaner
    35.     Assembly Version: 1.2.0.0
    36.     Win32 Version: 1.2.0.0
    37.     CodeBase: file:///D:/download/FanartCleaner%20v1.2.exe
    38. ----------------------------------------
    39. Microsoft.VisualBasic
    40.     Assembly Version: 10.0.0.0
    41.     Win32 Version: 10.0.30319.1 built by: RTMRel
    42.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    43. ----------------------------------------
    44. System
    45.     Assembly Version: 4.0.0.0
    46.     Win32 Version: 4.0.30319.233 built by: RTMGDR
    47.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    48. ----------------------------------------
    49. System.Core
    50.     Assembly Version: 4.0.0.0
    51.     Win32 Version: 4.0.30319.233 built by: RTMGDR
    52.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    53. ----------------------------------------
    54. System.Windows.Forms
    55.     Assembly Version: 4.0.0.0
    56.     Win32 Version: 4.0.30319.235 built by: RTMGDR
    57.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    58. ----------------------------------------
    59. System.Drawing
    60.     Assembly Version: 4.0.0.0
    61.     Win32 Version: 4.0.30319.1 built by: RTMRel
    62.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    63. ----------------------------------------
    64. System.Runtime.Remoting
    65.     Assembly Version: 4.0.0.0
    66.     Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    67.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    68. ----------------------------------------
    69. System.Data.SQLite
    70.     Assembly Version: 1.0.81.0
    71.     Win32 Version: 1.0.81.0
    72.     CodeBase: file:///D:/download/System.Data.SQLite.DLL
    73. ----------------------------------------
    74. System.Data
    75.     Assembly Version: 4.0.0.0
    76.     Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
    77.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    78. ----------------------------------------
    79. System.Transactions
    80.     Assembly Version: 4.0.0.0
    81.     Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    82.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    83. ----------------------------------------
    84. System.Configuration
    85.     Assembly Version: 4.0.0.0
    86.     Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    87.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    88. ----------------------------------------
    89. System.Xml
    90.     Assembly Version: 4.0.0.0
    91.     Win32 Version: 4.0.30319.233 built by: RTMGDR
    92.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    93. ----------------------------------------
    94. System.EnterpriseServices
    95.     Assembly Version: 4.0.0.0
    96.     Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    97.     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    98. ----------------------------------------
    99.  
    100. ************** JIT Debugging **************
    101. To enable just-in-time (JIT) debugging, the .config file for this
    102. application or computer (machine.config) must have the
    103. jitDebugging value set in the system.windows.forms section.
    104. The application must also be compiled with debugging
    105. enabled.
    106.  
    107. For example:
    108.  
    109. <configuration>
    110.     <system.windows.forms jitDebugging="true" />
    111. </configuration>
    112.  
    113. When JIT debugging is enabled, any unhandled exception
    114. will be sent to the JIT debugger registered on the computer
    115. rather than be handled by this dialog box.
     
  4. 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
    Der_Bub, can you try the attached version below. Should cater for non-usage of either MovingPictures and/or TVSeries.
     

    Attached Files:

    • Like Like x 1
  5. 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
    Hi all, have managed to produce my very first plugin;). In order to have your feedback early, am attaching the beta version here and would be grateful to have your views. Please bear with me as I have only tested it on a 32bit Windows 7 machine. I strongly recommend that on the configuration screen, you choose "Delete to trash" so that if plugin does not work correctly on your setup, you can recover all your images from the trashcan.

    The attached rar contains an installer MPCleaner.exe which will install MPCleaner.dll in C:\Program Files\Team MediaPortal\MediaPortal\plugins\process or the path you choose.

    From the MediaPortal configuration screen choose Plugins and then under Process, search for MPCleaner:

    MediaPortal configuration.png

    After pressing Config you will be presented with the following screen:

    MPCleaner configuration.png

    Once you press save and exit from MediaPortal Configuration by pressing OK, MPCleaner.xml will be created under C:\ProgramData\Team MediaPortal\MediaPortal or your respective directory.

    On MediaPortal startup, the plugin should execute in a background thread and delete the images that are no longer in use.

    Hope you like it.


    Thanks :)
     

    Attached Files:

    • MPCleaner.rar
      File size:
      615.4 KB
      Uploaded:
      June 23, 2012
      Views:
      62
    • MPCleaner.mpe1
      File size:
      869.6 KB
      Uploaded:
      June 23, 2012
      Views:
      43
    Last edited: June 23, 2012
    • Like Like x 6
  6. SpudR
    • Team MediaPortal

    SpudR Documentation Group

    Joined:
    July 27, 2007
    Messages:
    2,612
    Likes Received:
    451
    Occupation:
    CTO, MD
    Location:
    Yorkshire, UK
    Ratings:
    +683 / 2
    Home Country:
    England England
    Show System Specs
    Thanks for this :)
    Might be worth adding a schedule to run daily/weekly/monthly or sum such, and an option to run if idle...
    Also, can you make an MPEI for it?
    Nice
     
    Last edited: June 23, 2012
  7. 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
    SpudR, thanks for the suggestions. In the meantime, manged to create an MPE1 installer and is attached above.
     
    • Like Like x 1
  8. SpudR
    • Team MediaPortal

    SpudR Documentation Group

    Joined:
    July 27, 2007
    Messages:
    2,612
    Likes Received:
    451
    Occupation:
    CTO, MD
    Location:
    Yorkshire, UK
    Ratings:
    +683 / 2
    Home Country:
    England England
    Show System Specs
    Fab :D
     
  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
    Uploaded new installer in post #34 where I've added an icon to show in the MediaPortal Extensions and also introduced logging in MediaPortal.log.

    Also, started a new forum thread in the Plugins section which can be accessed from here.
     
    Last edited: June 23, 2012
  10. 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
    The stable version for MPCleaner v1.0.0.0 plugin can be downloaded from here.
     
  11. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,239
    Likes Received:
    1,336
    Ratings:
    +1,745 / 2
    With MediaPortal v1.3.0Alpha close to release, be sure you adjust your assembly.cs file to contain the following:

    [assembly: CompatibleVersion("1.2.100.0", "1.1.6.27644")]

    So that your plugin is compatible.
     
    • Like Like x 2
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!