RemoteControl.Instance.IsAnyCardRecording() (1 Viewer)

lar282

Portal Pro
July 11, 2004
414
2
Hi
When using the function
RemoteControl.Instance.IsAnyCardRecording()
from a plugin it doesn't work. Worked for me in RC1 but not RC2


regards

//Lasse
 

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    erm.....

    that is not really a useful bugreport with that amount of info.....
    since you are allready a "coder" cant you debug the issue? :)
     

    lar282

    Portal Pro
    July 11, 2004
    414
    2
    coder?

    njae, wont call myself coder...

    well the thing is that it looks like the recording ENDS, and tvservice sends out a mess about the recording ended, BUT it wont release the cards until later. So if u ask the service if it is recording it tells u YES. One can see it in the log pretty clearly. I added the line isanycardrecording=True from the plugin and it gets there using the
    case TvServerEventType.RecordingEnded:


    2008-08-15 14:56:14.250000 [9]: ComSkipLauncher: Recording ended (\\192.168.0.192\recorded_tv\2008-08-15-14_30 Disney Channel Brandy & Herr Morris.ts on Disney Channel), launching program (C:\Program Files\Comskip\RuncomSkip.bat "\\192.168.0.192\recorded_tv\2008-08-15-14_30 Disney Channel Brandy & Herr Morris.ts" "Disney Channel") ...
    2008-08-15 14:56:24.296875 [9]: isanycardrecording=True
    2008-08-15 14:56:45.437500 [9]: ConflictManager: Updating conflicts list
    2008-08-15 14:56:45.437500 [9]: Schedules List built 0 ms
    2008-08-15 14:56:45.500000 [9]: ConflictManager: Update done within 62,5 ms
    2008-08-15 14:56:45.500000 [9]: Scheduler: stop record Disney Channel 2008-08-15 14:54:49-2008-08-15 14:55:00 Brandy & Herr Morris
    2008-08-15 14:56:45.515625 [10]: card: StopRecording 2
    2008-08-15 14:56:45.515625 [10]: card: StopRecording for card:2
    2008-08-15 14:56:45.515625 [10]: subch:0 StopRecord()
    2008-08-15 14:56:45.562500 [10]: card: remove user:scheduler16 sub:0
    2008-08-15 14:56:45.562500 [10]: user:scheduler16 remove
    2008-08-15 14:56:45.562500 [10]: card: free subchannel sub:0
    2008-08-15 14:56:45.578125 [10]: tvcard:FreeSubChannel:1 #0
    2008-08-15 14:56:45.578125 [10]: DVB subch:0 Decompose()
    2008-08-15 14:56:45.578125 [10]: tvcard:FreeAllSubChannels:
    2008-08-15 14:56:45.578125 [10]: dvb:confused:topGraph
    2008-08-15 14:56:46.078125 [10]: tvcard:FreeAllSubChannels:
    2008-08-15 14:56:46.093750 [4]: Controller: SetChannelStates for 21 channels


    Anyway, I tried something and it works.....

    in scheduler.cs line 678 moved to line 702

    _tvController.Fire(this, new TvServerEventArgs(TvServerEventType.RecordingEnded, new VirtualCard(_user), _user, recording.Schedule, recording.Recording));

    It should not fire the event until its done. So if u move that line to the bottom all works again.

    //Lasse
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Usa
    Home Country
    Ethiopia Ethiopia
    I'll move it as u described thx.


    ...<snip>...

    Log.Write("Scheduler: stop record {0} {1}-{2} {3}", recording.Channel.Name, recording.RecordingStartDateTime, recording.EndTime, recording.Schedule.ProgramName);
    _controller.StopRecording(ref _user);
    _tvController.Fire(this, new TvServerEventArgs(TvServerEventType.RecordingEnded, new VirtualCard(_user), _user, recording.Schedule, recording.Recording));
    }
    catch (Exception ex)
    {
    Log.Write(ex);
    }

    /gibman
     

    Users who are viewing this thread

    Similar threads

    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    432
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194 connections between 10:54 and 11:05 triggering a denial of service attack ban. The logs show it was lifted on 5/25, but I still see the entry in iptables. I reset fail2ban and hopefully you're working again." Weird...
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194...
    I'm using MediaPortal 1.38.1 x64 and have an SD-DD lineup account. In the last week, I have not been able to update my EPG, and...
    Replies
    3
    Views
    489
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others) have been using the latest NewZap2xml_6 and it has worked flawlessly. A few days ago it all died. I wonder if anyone is working a solution to save the masses. I am hoping the good citizen of past is...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Replies
    0
    Views
    1K
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    2K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    833
    Top Bottom