Mediaportal will not delete Recorded TV items that do not exist

Discussion in '1.0 RC2 and SVN Builds' started by markius, September 23, 2008.

  1. markius

    markius Portal Pro

    Joined:
    December 26, 2006
    Messages:
    175
    Likes Received:
    4
    Occupation:
    IT
    Location:
    Maidstone, UK
    Ratings:
    +4 / 0
    Home Country:
    England England
    Mediaportal is not able to remove items from the Recorded TV list if the underlying .TS and/or .XML files are missing

    Steps to reproduce

    1. Record a TV or radio show
    2. Delete the corresponding .TS & .XML files from the recordings folder
    3. Go to the Recorded TV list
    4. Attempt to delete the recorded item

    Although this is not a "normal" situation it seems wrong that Mediaportal will not remove the entry from the Recorded TV list simply because the .TS and/or .XML file is missing. After all, Mediaportal was only going to delete these files anyway!


    For me this situation arises because I have some scripts that convert the .TS files of recorded radio shows into .MP3. To save on disk space I remove the .TS & .XML files after the conversion is complete.



    Logs attached. This bug has appeared somewhere between 1.0 RC2 and SVN 20268.






    TV-Server Version: 1.0 RC2
    MediaPortal Version: 1.0 RC2
    MediaPortal Skin: BlueTwo Wide
    Windows Version: XP Pro SP3
    CPU Type: Celeron M 360 (1.4GHz/400MHz/1Mb L2)
    HDD: Seagate 300Gb 7200RPM SATA 150
    Memory: 512MB PC4200
    Motherboard: MSI Speedster-FA4 (MS-9625)
    Video Card: Intel GMA 915
    Video Card Driver:
    Sound Card: Intel ICH6 HD Audio / Realtek ALC880
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card: Nebula DigiTV PCI
    1. TV Card Type: DVB-T
    1. TV Card Driver:
    2. TV Card: Terratec Cinergy 2400i Dual Tuner
    2. TV Card Type: DVB-T
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: PowerDVD
    MPEG2 Audio Codec: PowerDVD
    h.264 Video Codec:
    Satelite/CableTV Provider:
    HTPC Case: Antec Aria
    Cooling:
    Power Supply:
    Remote: MCE
    TV: Samsung 26in LCD LW26A33W
    TV - HTPC Connection: Sub-D
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. johnzered
    • Premium Supporter

    johnzered Retired Team Member

    Joined:
    April 20, 2008
    Messages:
    358
    Likes Received:
    37
    Ratings:
    +71 / 0
    Home Country:
    Finland Finland
    Hi,

    I just tried this out and for me it's deleting the item from db even if I've moved the .ts & .xml to another location.


    //johnzered
     
  4. markius

    markius Portal Pro

    Joined:
    December 26, 2006
    Messages:
    175
    Likes Received:
    4
    Occupation:
    IT
    Location:
    Maidstone, UK
    Ratings:
    +4 / 0
    Home Country:
    England England
    I've had another look... I think the problem might be that I've removed the folders which are created because these are recurring recordings.

    I think that the error handling logic could be refined but I'm not sure now if this really counts as a bug or not... Perhaps a dev could comment?

    Mark
     
  5. Paranoid Delusion
    • Premium Supporter

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Would be interesting to know if any further same named schedules existed, and if deleting them, would allow you to delete the database entry you previously tried.

    Also if above failed, if you go into TVServer config\Recordings\database import, there is a setting to remove non existant files, does that work for you.
     
  6. markius

    markius Portal Pro

    Joined:
    December 26, 2006
    Messages:
    175
    Likes Received:
    4
    Occupation:
    IT
    Location:
    Maidstone, UK
    Ratings:
    +4 / 0
    Home Country:
    England England
    I'm not quite clear what you mean here. When you say same named schedules do you mean .TS/.XML file pairs or scheduled recordings in the database.

    Yes, I'm able to remove the files using TvSetup as you describe although that's not ideal as the PC is inaccessible. What I've actually been doing as a workaround is deleting the rows from the Recording table using SQL Management Studio.

    I suppose armed with this knowledge I should really update my scripts to include code that will remove the entries from the database as well as the files on disk. Hell... in an ideal world I'd actually get round to learning C# and have a crack at writing a proper radio .TS to MP3 plugin. I suspect though that in that ideal world I'd be too busy driving my Ferarri to the dock to meet my yatch! :D

    Cheers
    Mark
    (Sadly sans yatch, Ferarri or C# development skills)
     
  7. Paranoid Delusion
    • Premium Supporter

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    If any scheduled recording existed for the titles you where trying to delete.

    LOL, we all got those problems :)

    But about the problem, if you can provide all the details regarding the files not being deleted and how they are scheduled, may be able to fix this, as really the code used by MP to delete those entries should be the same from wherever you have accessed it, ie TVServer config or MP\TV\recordings.
     
  8. markius

    markius Portal Pro

    Joined:
    December 26, 2006
    Messages:
    175
    Likes Received:
    4
    Occupation:
    IT
    Location:
    Maidstone, UK
    Ratings:
    +4 / 0
    Home Country:
    England England
    OK so I have the following:

    MP is configured to record a number of different radio shows on different channels using "every time on this channel" recurrance. Because these are recurring recordings they sit in subfolders of the recordings folder rather than in the root.
    For example, I get something like this:
    .\Recordings\John Digweed - KISS\John Digweed - - 2008-09-23 - 00_30.ts
    .\Recordings\John Digweed - KISS\John Digweed - - 2008-09-23 - 00_30.xml

    At 10am every day my script kicks off and moves all of the .TS files into a working folder. It also removes the associated .XML files and any then any empty subfolders in the recordings folder.


    I've done some testing and the issue is definately caused by the missing subfolder rather than the missing files.
    If I manually delete the .TS & .XML files but leave the folder in place I'm able to remove the recording from the list using the MP GUI. When I do this, MP removes the the empty folder.

    If I also manually remove the folder MP throws an error and leaves the entry in the list.


    Let me know if you need me to do any further testing.


    Mark
     
  9. caribou
    • Premium Supporter

    caribou MP Donator

    Joined:
    December 5, 2008
    Messages:
    32
    Likes Received:
    0
    Location:
    Nantes
    Ratings:
    +0 / 0
    Home Country:
    France France
    Hi everybody,

    seems a long time ago....

    I'm using 1.0.2. I agree with markius that this would be glad to be able to move files (or directories) from recorded TV to another directory
    and that no more existing directories or files would be automatically deleted entries from database....
    ?
    Is it planned ? has someone suggested this idea ?
     
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!