[TV] Unable to delete schedules (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    MediaPortal Version: SVN24281
    MediaPortal Skin: Blue3 Wide
    Windows Version: XP Pro - SP3
    CPU Type: Intel E4500 2x2.2Ghz
    HDD: WD green 500Gb
    Memory: 2Gb DDR2-6400
    Motherboard: GIGABYTE GA-E7AUM-DS2H
    Video Card: Geforce 9400 IGP
    Video Card Driver: Nvidia 191.07
    Sound Card: Nvidia HDMI
    Sound Card AC3: Asus Xonar HDAV
    Sound Card Driver: Latest
    1. TV Card: Pinnacle 7010ix
    1. TV Card Type: Dual DVB-S and Dual DVB-T
    1. TV Card Driver: Latest
    2. TV Card:
    2. TV Card Type:
    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: NVidia
    MPEG2 Audio Codec: NVidia
    h.264 Video Codec: PowerDVD 7
    Satelite/CableTV Provider: Freeview (DVB-T) / Freesat (DVB-S)
    HTPC Case: Antec Fusion
    Cooling: Scythe Mini-Ninja
    Power Supply: Antec 300W
    Remote: MCE
    TV: Panasonic 42PZ80B
    TV - HTPC Connection: HDMI

    In the latest SVN I am unable to delete individual scheduled recordings in a schedule.

    so just
    • Schedule an advanced recording (say record at this time each week)
    • Go to scheduled recordings screen
    • bring up context menu and try to delete one episode

    The screen flickers as if the the recording is being deleted but it gets placed straight back again. As far as I can tell this has only started happening since the EPG changes in the latest SVN
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    This problem still exists and is proving a real pain over the xmas period.

    I have a few schedules like record every Wednesday at 9pm but over the holidays the program is taking a break. Previously (1.0.2 certainly) I could go into the upcoming schedules pick out the problem recordings and just cancel that episode.

    Now stuck with MP recording a program which is not even on and then having to delete it.....

    This has been introduced in 1.1 code
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    Problem still exists in latest SVN Logs attached, I went in and selected a program that is on this and next weekend and did an advanced record each time on this channel.

    In the scheuled page I can see the two episodes appear
    both.png
    notice both are there and screen showing 10 objects

    If I click on the first one (which is top of the list) and select cancel this show it does dissapear from list.
    cancelling.png
    gone.png
    notice schedule has gone and objects has dropped to nine

    If I try and click cancel this show on the other recording the screen flashes but the entry will not go.
    still_there.png

    Checked in TVServer config app and the schedule has a line through it but no idea what this actually means...

    Logs attached showing the above.

    Went back and tried to delete the second episode first and this produced a very off result. The first episode vanished from the schedule but the second (highlighted one) remains :confused:

    I am guessing this is related to the EPG changes to make it faster and the flags being added to the recordings. I think the correct action has posibly been taken but the GUI is showing the wrong info but I am not sure what to look for in the database. What should happen when one episode from a schedule is cancelled?
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    I am guessing this is related to the EPG changes to make it faster and the flags being added to the recordings. I think the correct action has posibly been taken but the GUI is showing the wrong info but I am not sure what to look for in the database. What should happen when one episode from a schedule is cancelled?
    ok looked in the database and there appears to lie the problem. Not looked at the code but I am guessing everything is driven off the canceledschedule table ?

    If so I am guessing that the time entry in here should the time of the cancelled episode ? It is not , it is the start time from the schedule (ie the first recording in the schedule) which would explain why the first recording disappeared when I cancelled wither first or second recording above.

    If I manually insert rows into the table with the correct start time of the episode I want to cancel it does disappear from the list.

    So the wrong dateTime is being inserted into canceledSchedule
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    282
    Moss
    Norway Norway
    Country flag
    Hi,
    Did a quick test with just adding a always on this channel & canceled 50% of the shows & this works just fine, but going to check more how you do it to see if it occurs in some specific way of doing things.

    Regards
    Roy
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    Did a quick test with just adding a always on this channel & canceled 50% of the shows & this works just fine, but going to check more how you do it to see if it occurs in some specific way of doing things.
    :D

    Odd as this is 100% reproducable on my system...

    Simply open up live TV (mine is set to start to TV will actually start plaing) go back to TV options screen and into schedules and bring up the context menu and cancel show.

    Just tried again to be 100% sure and I attempted to cancel the highlighted show
    to_cancel.png

    but the database table got
    Code:
    mysql> select * from canceledschedule;
    +--------------------+------------+---------------------+
    | idCanceledSchedule | idSchedule | cancelDateTime      |
    +--------------------+------------+---------------------+
    |                 41 |         60 | 2010-01-07 21:00:00 |
    +--------------------+------------+---------------------+
    1 row in set (0.00 sec)
    when should have been 2010-01-21 09:00:00
    (first epsode in schedule was 2010-01-07 21:00:00)

    Odd wonder what has triggered this then??
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    282
    Moss
    Norway Norway
    Country flag
    Hi,
    Finally some success in repro it, from the Scheduled menu i wasn't able to cancel at all & therefore went into TVGuide & clicked on the next one which is to come & from that record menu tried to cancel & everything else then the canceled was removed :p so seems like we actually have some weirdo going around in there, need to test all this again....

    Regards
    Roy
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    282
    Moss
    Norway Norway
    Country flag
    Hi,
    Some more clear up :D
    Pretoriano has helped out testing this & found out why it sometimes work & sometimes not. Seems like in Scheduled you're able to delete within today or some hours period but not next week etc as you can when viewing from TVGuide --> Show which is recorded every time on the channel (series rec) --> right click or menu + record --> in this record screen you're able to change what you like & thats how the one in Scheduled should do too, nice finding this one lets see if it cam be fixed :D


    Edit: Now added to Mantis


    Regards
    Roy
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Denmark Denmark
    Country flag
    Hi!

    plz test attached DLL.

    It should work with latest public SVN if I am not mistaken.

    I completely refactored the "PromptAndDeleteRecordingSchedule" method in tvhome.

    So please take this for a complete test ride.

    ex. of scenarious I can think of.

    You can start 2 different kind of schedules.

    1) one that starts recording right away, regardless of type.
    2) one that is scheduled in the future, regardless of type.

    for type1:
    a) try and stop the recording from various places, ex. active recording, tvguide, my schedules etc. recordedTV.
    it should stop the rec. and have that one episode canceled, meaning it should not restart the recording.

    b) also test what happens if u delete the entire schedule, while its recording.

    c) try and cancel a random episode in the future, the currently recording episode should not be stopped here.

    for type2:
    a) delete an entire schedule
    b) delete a future episode
    do this from various places.

    add more tests...

    repeat the tests for type1 and type2 for the various schedule types we have.

    what are the combinations ? hehe--

    It would be good if u can query the DB each time u perform one of the test actions.

    /gibman
     

    Attachments

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

    OP Similar threads Forum Replies Date
    R [solved] Unable to delete single recording General 2
    megahorst Unable to delete unseen recording while TV runs in the background 1.19 11
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    M MP 2.2.3 Unable to play .ts recordings and MediaPortal stops working for TV viewing General 31
    D Unable to install 1.22 on Win 10 Newcomers Forum 9
    H Unable to play stream - again... Television (MyTV frontend and TV-Server) 2
    V Unable to stream : 10 General Support 0
    B Suddenly MP is unable to play anything Watch / Listen Media 6
    M Unable to map virtual sent keys in the input device management General 6
    T [solved] "Unable To Play" (Videos) rears it's head again. Logs not possible... WatchDog error attached!! :( General Support 1
    porky996t Still Unable to play Live or Recorded TV General Support 4
    B Unable to play: Live3-0.ts issue General Support 7
    A Unable to play :stream 3 Television (MyTV frontend and TV-Server) 1
    badboyxx Unable to play BD-Iso watch/edit Videos 7
    Steve.Rayner61 TV "Unable to play" on Client - Working until Win 10 Server upgraded to Version 1803 Television (MyTV frontend and TV-Server) 5
    morpheus_xx Was this spam? I deleted it... Online Facilities 4
    P Recordings not showing up unless re-imported and not possible to delete General 0
    R [solved] MP will not delete recordings that are on NAS Television (MyTV frontend and TV-Server) 23
    N [Finished] [MP2-781] Enable one-click deletion of grouped TV recordings MediaPortal 2 70
    G MP 1.21 TVserver race condition when cant delete recording triggered by episode management General Support 0
    N [Finished] MP2-803 - Delete full series doesn't work when viewing a program in the extended schedule screen MediaPortal 2 12
    N [solved] Cannot delete recordings from remote client MediaPortal 2 32
    G [solved] How do you delete media in Mediaportal2? General 14
    R Mediaportal will not delete Recorded TV items that do not exist MediaPortal 1 Talk 0
    Frans Nijhuis [further infos missing] Deleting all TV channels and all channel groups in "MP 2 TV configuration" fails 2.2 Archive 1
    Similar threads

























    Top Bottom