[Plugin] MPCleaner - Deletes images from your thumbs folder that are no longer in use (2 Viewers)

emphatic

Design Group
  • Team MediaPortal
  • August 25, 2006
    3,602
    1,093
    Alingsås
    Sweden Sweden
    Country flag
    With a directory structure like this:

    Movietitle.720p.bdrip
    Movietitle.720p.bdrip.jpg
    Movietitle.720p.bdrip.mkv
    Movietitle.720p.bdrip.nfo
    Movietitle.720p.bdrip.srt

    Seriesname.S01E01.x265.720p.HDTV
    Seriesname.S01E01.x265.720p.HDTV.jpg
    Seriesname.S01E01.x265.720p.HDTV.mp4
    Seriesname.S01E01.x265.720p.HDTV.nfo
    Seriesname.S01E01.x265.720p.HDTV.srt

    Would also be awesome if the folder can be deleted as well, but only if the name matches like above, so the plugin doesn't delete a folder called Movies in a directory structure like this:

    TV-Series
    Seriesname.S01E01.x265.720p.HDTV.jpg
    Seriesname.S01E01.x265.720p.HDTV.mp4
    Seriesname.S01E01.x265.720p.HDTV.nfo
    Seriesname.S01E01.x265.720p.HDTV.srt

    OtherSeriesname.S01E01.x265.720p.HDTV.jpg
    OtherSeriesname.S01E01.x265.720p.HDTV.mkv
    OtherSeriesname.S01E01.x265.720p.HDTV.nfo
    OtherSeriesname.S01E01.x265.720p.HDTV.srt

    ...meaning that if you delete OtherSeriesname.S01E01.x265.720p.HDTV.mkv, the whole TV-Series folder is purged - would be extremely bad. ;)

    Emph
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    962
    707
    Malta Malta
    Country flag
    With a directory structure like this:

    Movietitle.720p.bdrip
    Movietitle.720p.bdrip.jpg
    Movietitle.720p.bdrip.mkv
    Movietitle.720p.bdrip.nfo
    Movietitle.720p.bdrip.srt

    Seriesname.S01E01.x265.720p.HDTV
    Seriesname.S01E01.x265.720p.HDTV.jpg
    Seriesname.S01E01.x265.720p.HDTV.mp4
    Seriesname.S01E01.x265.720p.HDTV.nfo
    Seriesname.S01E01.x265.720p.HDTV.srt

    Would also be awesome if the folder can be deleted as well, but only if the name matches like above, so the plugin doesn't delete a folder called Movies in a directory structure like this:

    TV-Series
    Seriesname.S01E01.x265.720p.HDTV.jpg
    Seriesname.S01E01.x265.720p.HDTV.mp4
    Seriesname.S01E01.x265.720p.HDTV.nfo
    Seriesname.S01E01.x265.720p.HDTV.srt

    OtherSeriesname.S01E01.x265.720p.HDTV.jpg
    OtherSeriesname.S01E01.x265.720p.HDTV.mkv
    OtherSeriesname.S01E01.x265.720p.HDTV.nfo
    OtherSeriesname.S01E01.x265.720p.HDTV.srt

    ...meaning that if you delete OtherSeriesname.S01E01.x265.720p.HDTV.mkv, the whole TV-Series folder is purged - would be extremely bad. ;)

    Emph
    @emphatic. So your structure is to have a folder with same name as movie and episode, excluding the suffix. Is this correct?
     

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,602
    1,093
    Alingsås
    Sweden Sweden
    Country flag
    If you use SubTitleDownloader in MediaPortal, it will name the .srt files after the video file like in my example. Same goes for NFO files if you use MovPicNFO. I never put much effort into organizing my files, I just use two root folders, "Movies" and "Series". Sometimes, I drop just the file in there, sometimes it has a folder with the same name. I'm lazy and just don't need them to be better organized, because MediaPortal's plugins do such stellar work importing them correctly besides that fact. ;)

    So, the answer is "largely yes".

    Emph
     

    volumia

    Portal Pro
    November 23, 2011
    100
    54
    whereever my feet take me...
    Netherlands Netherlands
    Country flag
    Guys.
    Not sure anyone has noticed or has the same issue, but the latest version 1.1.0.15 is deleting al my SRT files from movies and TV series.
    If the SRT name is exactly like the filename (Band.Of.Brothers.S01E01.2001.BluRay.1080p.x264.DTS.srt), no problem, but when the language gets added to the name of the SRT (Band.Of.Brothers.S01E01.2001.BluRay.1080p.x264.DTS.nl.srt) it's gone!

    EDIT: above was just the MKV section. Turns out that all DVD's have been stripped from their content. All that's left there are the BUP and IFO files...
     
    Last edited:

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,602
    1,093
    Alingsås
    Sweden Sweden
    Country flag
    EDIT: above was just the MKV section. Turns out that all DVD's have been stripped from their content. All that's left there are the BUP and IFO files...
    That's really, really bad. I have noticed too that all my VIDEO_TS rips have been rendered incomplete and useless by having activated this plugin. As I have my videos on my NAS, meaning they are permanently deleted, it's a disaster. Luckily for me, it was Dora The Explorer rips, and my children are too old for them now.

    Emph
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    962
    707
    Malta Malta
    Country flag
    MPCleaner v1.1.0.15 has been uploaded. Please download from here.
    EDIT: above was just the MKV section. Turns out that all DVD's have been stripped from their content. All that's left there are the BUP and IFO files...
    That's really, really bad. I have noticed too that all my VIDEO_TS rips have been rendered incomplete and useless by having activated this plugin. As I have my videos on my NAS, meaning they are permanently deleted, it's a disaster. Luckily for me, it was Dora The Explorer rips, and my children are too old for them now.

    Emph

    @Emp, this was a change you requested :eek:....
     

    emphatic

    Design Group
  • Team MediaPortal
  • August 25, 2006
    3,602
    1,093
    Alingsås
    Sweden Sweden
    Country flag
    @Emp, this was a change you requested :eek:....
    I requested .srt files to be added to file types to clean. Are you saying .srt files and .vob files are the same? And I even went into specifics with name matching:

    movie name.mkv (if this is deleted, the below ones are too)
    movie name.srt
    movie name.nfo
    movie name.jpg

    Your plugin is very aggressive in the cleaning, and frankly, it's dangerous to use it. I don't understand why it would delete the following files:

    movie name.mkv
    movie name.english.srt <---

    just because it exists in the same folder as a movie file.

    Please don't blame me for this.
    Emph
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    Similar threads

























    Top Bottom