[fixed] [MP2-767] Disappearing Daily/Weekly Recording Schedules (1 Viewer)

bryan52

Portal Member
March 10, 2012
8
6
New Zealand New Zealand
Country flag
MediaPortal 2 Version: 2.2

Description
I’ve recently moved from MP1 to MP2 2.2pre and find that series recordings that have been setup occasionally disappear. I’ve traced the problem to deleting an episode while it’s still recording. I normally delete recordings once I’ve viewed them.
The attached logs show this problem: I’ve setup a daily recording schedule for the news program “Prime News - First At 5.30” which occurs daily from 17:30 for 30 minutes (plus pre and post recording). Note I normally only watch the first half of this show.
[2018-10-19 17:52:34,092] [237044907] [101 ] [DEBUG] - Scheduler.CancelSchedule: Prime News - First At 5.30 10/19/2018 17:30:00
I believe this should be a Cancel Current Recording request?

Steps to Reproduce:
1) Schedule a series recording
2) View recording while recording an Episode
3) Delete current recording while it is still recording
 

Attachments

HTPCSourcer

Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    I can't confirm this here:
    1. I just scheduled to record a (already running) show on a channel every time it is broadcasted
    2. The recording is started immediately
    3. I then deleted the recorded file from the recording folder menu
    4. The file was deleted - and the recording immediately started again: the schedule with a dozen entried remained unchanged
    All in all exactly the behavior that is expected.

    I can only imagine that instead of scheduling a repeated recording you entered a single one. There are two places where you can verify that you did it right: one is in the above-mentioned Recordings Schedule screen of MP2, the other is the TV Configuration app under Schedules where all scheduled recordings are listed.
     
    Last edited:

    bryan52

    Portal Member
    March 10, 2012
    8
    6
    New Zealand New Zealand
    Country flag
    Did some more testing and find that schedule types "Every time on this channel" and "Weekly every time on this channel" behave as per your test results, however schedule types "Daily" and "Weekly" both cancel the schedule.

    Looks like MP2 is doing something special for "... every time on this schedule" schedule types as it's creating an additional schedule recording "Once" see bitmap.
     

    Attachments

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,698
    7,099
    Germany Germany
    Country flag
    Reference to code part: MediaPortal/MediaPortal-2.
    C#:
    var matchingSchedules = allSchedules.Where(schedule => schedule.[B]IsRecordingProgram[/B](canceledProgram, true));
    Possible cause: there could be multitple Schedules for "IsRecordingProgram = true" returned (both series and current single recording) and the later loop removes all occurrences. IIRC there was no direct link between ProgramId and ScheduleId, that's why there was a lookup logic required.
     

    Nikki Locke

    Portal Pro
    February 2, 2019
    459
    59
    69
    United Kingdom United Kingdom
    Country flag
    I am looking into this now. The MP2-Client code in DeleteRecordingFromStorage.cs always deletes the schedule that is making the recording before trying to delete the file.

    If the schedule is a series, I propose to alter it to get the list of programs for that schedule, and only cancel the one program that is currently recording from the schedule.
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    porky996t Outdated Tuning Parameters in MP2 TVServer Config TV-Server 0
    B IRSS shows button presses, nothing happening out-of-the-box in MP2 Newcomers Forum 1
    D MP2 DLNA status? General 10
    N [solved] MP2 TV-Server DD cine 2 V6, Astra keine deutschen Sender mehr General 4
    H MP2 - V2.4 [MP2-855] Extend Nereus HomeMenuEditor to allow configuration of HomeContent features MediaPortal 2 4
    M MP2 - V2.3 MP2 & USB Problems Submit: Bug Reports 43
    L MP2 - V2.3 Troubles upgrading from MP2 2.2.3 to 2.3 General 0
    T MP2 - V2.3 MP2 x64 won't run Submit: Bug Reports 5
    J Copying Old VHS tapes Newcomers Forum 8
    W MP2 - V2.3 MP2 2.3 Import von Audioquellen / Datenbankprobleme Allgemeines Support- und Diskussionsforum 26
    G MP2 - V2.3 New install and crashing MP2-2.3 General 6
    S MP2 - V2.3 MP2 No video General 6
    W [solved] MP2 Server stürzt immer nach kurzer Zeit ab Allgemeines Support- und Diskussionsforum 89
    toricred MP2 - V2.3 MP2 2.3 Client won't start General 7
    Grisu002 MP2 - V2.3 MP2 2.3 Client startet nicht - bleibt beim Laden hängen Allgemeines Support- und Diskussionsforum 64
    M [solved] MP2 PROBLEME Standby Allgemeines Support- und Diskussionsforum 2
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 42
    S Programmierte Aufnahme in MP2 - kein Aufwachen des PC Allgemeines Support- und Diskussionsforum 5
    morpheus_xx [Finished] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    morpheus_xx MP2 - V2.4 Porting MP2 to .Net (Core) 5 MediaPortal 2 47
    da3dsoul Does MP2 not have any active devs? General 8
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    rainbowforest [solved] Kein Player registriert Allgemeines Support- und Diskussionsforum 1
    -Merkur- MP2 Client startet nicht, "libXBMC_addon.dll" fehlt Allgemeines Support- und Diskussionsforum 1

    Similar threads

    Top Bottom