Preferred way to cancel a recording TVServerEvent (1 Viewer)

Kasimir9735

Portal Pro
July 19, 2010
36
30
53
Wetter (Ruhr)
Home Country
Germany Germany
Hello, currently i am developing a plugin for the tvserver. In some situations i just want to stop a recording after it has begun. So i registered the TVServerEvents and catch beginning recordings with TvServerEventType.RecordingStarted. Now i stop the recording with the following code:

Code:
// Get the recording
Recording beginningRecording = tvEvent.Recording;
// Get the card
VirtualCard card = tvEvent.Card;
// Stop the recording
card.StopRecording();
// Delete the recorded File
File.Delete(beginningRecording.FileName);
// Delete the recording entry
beginningRecording.Delete();

This works well. The recording stops and the file is gone. But with some exceptions:

- The EPG shows still that the program is being recorded with the red recording Image. How can i tell the tvserver that this program ist currently not recording
- In the logfile of the tvserver there a lot of Errors after:

Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:09.589946 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710
2013-06-10 18:55:09.590946 [scheduler thread(11)]: card: StopRecording subchannel null, skipping
2013-06-10 18:55:09.591947 [scheduler thread(11)]: Controller: epg start
2013-06-10 18:55:09.593951 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:24.669452 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710
2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording subchannel null, skipping
2013-06-10 18:55:24.671450 [scheduler thread(11)]: Controller: epg start
2013-06-10 18:55:24.672450 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:39.723970 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:39.726970 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710
2013-06-10 18:55:39.727971 [scheduler thread(11)]: card: StopRecording subchannel null, skipping
2013-06-10 18:55:39.730965 [scheduler thread(11)]: Controller: epg start
2013-06-10 18:55:39.732974 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:54.887667 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:55:54.887667 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710
2013-06-10 18:55:54.889675 [scheduler thread(11)]: card: StopRecording subchannel null, skipping
2013-06-10 18:55:54.889675 [scheduler thread(11)]: Controller: epg start
2013-06-10 18:55:54.892669 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:56:10.014393 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife
2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710
2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording subchannel null, skipping
2013-06-10 18:56:10.016319 [scheduler thread(11)]: Controller: epg start
Some ideas? Have i to update some more data like the schedule?
 

Users who are viewing this thread

Top Bottom