New table in MySQL ? / scheduling a recording? (1 Viewer)

nu_81

Portal Pro
November 15, 2009
315
74
Rheinberg
Home Country
Germany Germany
Hello,
for my project I need to save some own datasets by an own class.
This datasets must by read/write from my class and later by a MePo Plugin.
Is it usual to create a new table on the TV Database in MySQL or where should I save this lines?

I want to mark some programs for recording.
I found a solution to create a new schedule. Is there a method which creates the schedule by itself by marking a ProgramID for record?
Thank you in advance.
Nu
 

Edalex

Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,956
    1,265
    Saratov
    Home Country
    Russian Federation Russian Federation
    Most of plugins are using SQLite databases but nobody can stop you from using MySQL :)
     

    nu_81

    Portal Pro
    November 15, 2009
    315
    74
    Rheinberg
    Home Country
    Germany Germany
    Hallo,
    could someone give me a short code snippet how to mark a program for recording.
    Everythink I tried was not successful. :-(

    Thank you.
     

    nu_81

    Portal Pro
    November 15, 2009
    315
    74
    Rheinberg
    Home Country
    Germany Germany
    Hello,
    if someone is searching a solution in future here is my code for a new recording:

    TvBusinessLayer layer = new TvBusinessLayer();
    int preInterval = Int32.Parse(layer.GetSetting("preRecordInterval", "5").Value);
    int postInterval = Int32.Parse(layer.GetSetting("postRecordInterval", "5").Value);
    Schedule rec = new Schedule(this.idChannel, this.title, this.startTime, this.endTime);
    rec.ScheduleType = (int)TvDatabase.ScheduleRecordingType.Once;
    rec.PreRecordInterval = preInterval;
    rec.PostRecordInterval = postInterval;
    rec.Persist();

    Bye.
    Nu
     

    Users who are viewing this thread

    Top Bottom