[TV] - Please clean up deleted TV recordings from DB.

Discussion in 'Improvement Suggestions' started by Al_Capone, August 13, 2015.

  1. Al_Capone
    • Premium Supporter

    Al_Capone MP Donator

    Joined:
    September 26, 2006
    Messages:
    527
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +19 / 1
    Home Country:
    Norway Norway
    Show System Specs
    Usually - I see some TV recordings at office, using SMplayer in Linux , then I delete the files from TV folder..
    (The Mediaportal in livingroom is the only thing infected with windows, so I don't use MP as client)

    The deleted episodes are not automatically removed from DB, instead, the feature to remove them is in TV config, needs to be run manually, and each show with missing file(s) must be confirmed.



    Please add a "clean up" daily.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Al_Capone, we used to have an automatic cleanup that ran when you enter the TV section inside MediaPortal. It was disabled because people using NAS informed us that the function was removing all their recordings if/when their NAS was offline/sleeping. The same issue would apply for your suggestion. Do you have any thoughts about what can be done to implement your suggestion while at the same time satisfying people that use NAS?
     
    • Like Like x 1
  4. 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
    Maybe making this a selectable option that you can tick or untick? This way, people who want their TVServer clean up the db at startup would tick it (and would need to live with undesired side effects as described by you).
     
    • Like Like x 3
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Yes, true... however it is always my preference to avoid adding options whenever possible. I was wondering if any other possibilities existed. :)
     
    • Agree Agree x 1
  6. Al_Capone
    • Premium Supporter

    Al_Capone MP Donator

    Joined:
    September 26, 2006
    Messages:
    527
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +19 / 1
    Home Country:
    Norway Norway
    Show System Specs
    Yes please. Make it selectable option.
    I know that it was working before, long time ago now, - and it will work just fine for me, because the main media center in the living room is where TV recordings are stored, it's on 24/7/365 , it's even on UPS power, so enabling it will solve the issue just fine as the files are always accessible.[DOUBLEPOST=1439460999][/DOUBLEPOST]mm1352000 - if you don't want another option the logic would be:
    for each DB entry for a certain TV_folder:
    if (file in DB exists) { for each DB entry (for this TV_folder && if file_not_found) delete DB entry }
    (end "for" once cleaned this TV folder)

    there, I hope you understood my mess :)
    see if any file in DB is found, if not - then don't delete. - This should make everybody happy. ?
     
    Last edited: August 13, 2015
    • Like Like x 1
  7. _Flo_

    _Flo_ New Member

    Joined:
    January 16, 2016
    Messages:
    1
    Likes Received:
    0
    Gender:
    Male
    Ratings:
    +0 / 0
    Home Country:
    Germany Germany
    +1 from me.

    Any progress since August last year?
    For the time being, would it be an option to put the cleanup procedure in an own executable ? With this, users would have all options to use it within scripts to ensure availability of the recorded file storage.

    Cheers,

    Flo
     
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    That is the check done before :)
    But Imagine this check is made while NAS or HDD spin up, TVServer check the file (offline at the scan check) and removed it from DB and while NAS is ready and UP, no more record in db lol.
     
    • Agree Agree x 2
  9. disaster123
    • Premium Supporter

    disaster123 MP Donator

    Joined:
    May 14, 2008
    Messages:
    3,546
    Likes Received:
    417
    Ratings:
    +431 / 2
    Home Country:
    Germany Germany
    I think we just have to check whether the recordings folder is accessible. If it is the NAS must be up and OK. May be creating a temp file and delete it.
     
    • Like Like x 2
  10. Timberwolf99

    Timberwolf99 Portal Pro

    Joined:
    November 20, 2015
    Messages:
    172
    Likes Received:
    25
    Gender:
    Male
    Ratings:
    +61 / 1
    Home Country:
    Australia Australia
    Show System Specs
    Why not do a scan every time the Tv section is entered, if nas is offline the recordings aren't shown, then when it comes online when the tv section is entered again they are added again. Not sure what the performance hit would be though.
     
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!