Automatically delete orphaned Episodes and Series.

Discussion in 'My TVSeries' started by octane, June 30, 2015.

  1. octane
    • Premium Supporter

    octane MP Donator

    Joined:
    March 11, 2005
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Location:
    Uppsala
    Ratings:
    +3 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Hi



    Is there any way to automatically remove Series and Episodes that have no reference from the database? I would like to delete them rather than just hide them. Preferably when running the import or with a scrip perhaps.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,903
    Likes Received:
    709
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,223 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    Hello, do you mean deleting physical files or just database entries which are not present online now?
     
  4. octane
    • Premium Supporter

    octane MP Donator

    Joined:
    March 11, 2005
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Location:
    Uppsala
    Ratings:
    +3 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Hi

    I mean database entries that are not present online.
     
  5. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,903
    Likes Received:
    709
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,223 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    This should be present in latest version of plugin as @ltfearme said as I remember
     
  6. octane
    • Premium Supporter

    octane MP Donator

    Joined:
    March 11, 2005
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Location:
    Uppsala
    Ratings:
    +3 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I am running version 4.2.2.2151.
    But I can’t find any setting that resembles deleting orphan entries in the database. Where is it located?
     
  7. 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
    I had something similar to this happening to me, with MovingPictures.

    I have all my movies separated in to folders of the movie name, once I deleted a movie, the other files (subs, folder jpgs, etc.) were left in the folders so MP thought the movies were still there - even thought the actual movie file itself was gone.

    Do you think that you having a similar thing?

    I had to manually find the erroneous entries and remove the folders - then everything came back properly!
     
  8. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,699
    Likes Received:
    1,118
    Gender:
    Male
    Ratings:
    +2,400 / 22
    Home Country:
    Germany Germany
    Show System Specs
    That's not a setting but actually a manual operation.

    Open TVSeries Configuration, enter the "Details" tab and delete undesired entries. Each time you delete, a dialogue will appear where you are prompted whether you want to delete the database entry, the physical file or both. In case of orphaned entries, i.e. no physical file left, only "delete form database" can be selected.
     
  9. octane
    • Premium Supporter

    octane MP Donator

    Joined:
    March 11, 2005
    Messages:
    31
    Likes Received:
    0
    Gender:
    Male
    Location:
    Uppsala
    Ratings:
    +3 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Thanks

    So there is now way to do this automic I assume?
     
  10. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,699
    Likes Received:
    1,118
    Gender:
    Male
    Ratings:
    +2,400 / 22
    Home Country:
    Germany Germany
    Show System Specs
    No, there is not.

    The philosophy behind this probably is that there may be situations where the remote file storage is temporarily unavailable. You wouldn't want to have all your database cleared at this moment. Could this be somehow addressed? Probably, but the author might have thought that this is not occurring very frequently. But I am speculating. He may see this post and reply for himself.
     
  11. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    Online data is never deleted unless it also does not exist online, only local episode references are removed from the database if its detected during an import that the files are no longer locally available.

    The only time it would not remove a local reference is if the drive is offline, if its online and the files no longer exist on that drive then the references are removed.

    Would need an additional setting to allow deletion of online data as well, it would probably make sense to do it automatically for series that have also ended, in other cases users will probably want those references in the database so they can monitor when the next season starts.
     
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!