New Plugin: Video Cleanup (1 Viewer)

mswiege

MP Donator
  • Premium Supporter
  • October 15, 2008
    35
    12
    Home Country
    Germany Germany
    I just installed RC4 for testing and recognized a process plugin called "TV Recordings cleanup" - could it be that this just what you wanted or anyone knows if it does something different?

    Also I just downloaded the current "Moving Pictures"-Plugin and at the configuration is written:
    "Specify the location(s) of your movie files. Any video that is placed in these folders will automatically be added to your Library, and any media removed from these folders will be automatically removed from your Library."
    Maybe this got also added by now to the plugin itself?
     

    Psycho Reptile

    Retired Team Member
  • Premium Supporter
  • April 19, 2006
    1,316
    787
    Cambridge, England
    Home Country
    United Kingdom United Kingdom
    Could I make a little request.... could a little dialog popup just to alert you what movies are going to be removed from the db, perhaps something along the lines of GlobalSearche's DialogMultiSelect? Also, do you remove the obsolete cover thumbs aswell? Thanks for a cool plugin - been wanting something like this for a while ;)
     

    mswiege

    MP Donator
  • Premium Supporter
  • October 15, 2008
    35
    12
    Home Country
    Germany Germany
    Funny... I don't have that plugin in my RC4... Do you have the released RC4?
    I think it's an old plugin see here from 2007: [Skin release] SimpleMP Beta 4 (MP 0.2.3.0) - Page 5 - MediaPortal Forum
    I cannot find it now. Please attach it so I can test it!
    Yes, I just downloaded the released RC4 from the download page MEDIAPORTAL - free media center - MediaPortal Downloads
    and made a clean install, so it definitely came with this release. It seems to be included in the current plugins\process\ProcessPlugins.dll (Version is 0.9.4.20955) because I don't have any other dll in that folder on my clean install by now.

    Could I make a little request.... could a little dialog popup just to alert you what movies are going to be removed from the db, perhaps something along the lines of GlobalSearche's DialogMultiSelect? Also, do you remove the obsolete cover thumbs aswell? Thanks for a cool plugin - been wanting something like this for a while ;)
    As I mentioned in my first post, I think it is not possible to popup a window with a progress plugin because these plugins get started before the GUI comes up. The only thing it does, is to log the deleted movies to the log files on Information level. A dialog where you could select what movies to delete I included in my patch for the configuration dialog, so if you definitly need that you should use that instead of this plugin. My Post for the configuration can be found here (a compiled Version for RC4 will come soon):
    https://forum.team-mediaportal.com/...-48/code-removing-movies-deleted-files-46706/
     

    mswiege

    MP Donator
  • Premium Supporter
  • October 15, 2008
    35
    12
    Home Country
    Germany Germany
    Strange?!?!?! I attached my ProcessPlugin.dll file that definitely has this plugin in it (checkout the attached screenshot). It can be found in the sources of that dll in the class ProcessPlugins.DiskSpace.RecordingManagement

    But now that I checked the source code of that plugin, I guess it is not doing what we want. Its function look like this:
    Code:
        List<TVRecorded> list = new List<TVRecorded>();
        TVDatabase.GetRecordedTV(ref list);
        foreach (TVRecorded recorded in list)
        {
            if (recorded.get_ShouldBeDeleted())
            {
                Log.Info("RecordingManagement: delete old recording: {0} date: {1}", new object[] { recorded.get_FileName(), recorded.get_StartTime().ToShortDateString() });
                Recorder.DeleteRecording(recorded);
            }
        }
    and its description is "Deletes old TV recordings by date".
    I guess it just deletes programed recordings that did not record anything because MP was not runnning at that time.

    Could anyone confirm that assumption?

    Maik
     

    Attachments

    • plugin.gif
      plugin.gif
      25.3 KB

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    43
    Texas
    Home Country
    United States of America United States of America
    Yup recordings would be nice, but since I don't record too often I was wondering if this plugin just looks at the MyVideos DB or others too?
    Like Moving Pictures (which doesn't clean up after itself (yet)), Mvids etc.
    You are mistaken. Movies in the Moving Pictures database should always be tied to a specific file and vice versa. If you delete a file the movie is automatically removed from the database. The only exception is if you have a import path marked as "Removable".
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    The only exception is if you have a import path marked as "Removable".
    Right. This probably made me think otherwise, but that's understandable.
     

    Users who are viewing this thread

    Top Bottom