For The Record - The rule-based scheduling suite (6 Viewers)

dvdfreak

Portal Pro
June 13, 2006
979
178
Home Country
Belgium Belgium
hi,

something for you ...

<rules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><rule type="TitleContains"><args><anyType xsi:type="xsd:string">Navy CIS</anyType></args></rule><rule type="DaysOfWeek"><args><anyType xsi:type="days">Saturdays</anyType><anyType xsi:type="xsd:dateTime">2007-11-30T00:00:00</anyType></args></rule><rule type="AroundTime"><args><anyType xsi:type="time">729000000000</anyType></args></rule><rule type="TvChannels"><args><anyType xmlns:q1="http://microsoft.com/wsdl/types/" xsi:type="q1:guid">91eeaf82-0341-4752-a944-3dac99fa6f1a</anyType></args></rule></rules>

i see saturday here .... hmm in the tvguide i can see navy cis on sunday

wunschkind

Indeed, very interesting :) Can you send me the guide data you imported? Perhaps I can try to reproduce this then.

Or a backup of your SQL Express database would be even better.
 

visteon

Portal Pro
October 19, 2007
94
2
The link is ok I have other schedules on BBC TWO. and they have recorded fine.
Data for BBC TWO in the guide is complete until midnight on the 2nd Dec then no more.
I will try 1.0.0.8.
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,646
    776
    Göteborg
    Home Country
    Sweden Sweden
    Some systems have First Day of Week set to Sunday and not Monday. Could this be the source of wunschkind's problem?
     

    Ernie-c

    Portal Member
    July 31, 2007
    42
    5
    Belgium
    Home Country
    Belgium Belgium
    Some systems have First Day of Week set to Sunday and not Monday. Could this be the source of wunschkind's problem?

    I think this is a good pointer ! The first day of the week is indeed culture dependent : see sample

    on wunschkind's system, monday is the first day of the week, because in the calendarcontrol on the TvGuide screen, the left column is monday, and this is retrieved from the system by the calendar control on the page. But anyhow, no matter what that first day is (I tested with en-US culture where it is sunday), the correct day for the query is selected from the calendar, so the problem is not in that part. So what's left to examine is the query, and xmlImport ...
     

    wunschkind

    Portal Pro
    January 10, 2005
    186
    0
    hi,

    dvd_freak has my tvscheduler.mdb now and i hope he can take a look into this problem. perhaps that´s really the "beginning-of-the-week-problem". thank you very much.

    dvd_freak ... could your tvscheduler plugin check if there are overlapping schedules and suggest an other schedule of the show? perhaps the tvscheduler could check all the tvserver schedules and then give us the warning of the overlapping schedules?

    have a nice day


    wunschkind
     

    StaticMan

    Portal Pro
    May 14, 2007
    118
    0
    Home Country
    Canada Canada
    So the missing piece of the puzzle is a way for you to edit TV Scheduler schedules from within MediaPortal :D I'm more than busy enough at the moment, and unfortunately noone has stepped forward so far to actually start on such a GUI plugin for MediaPortal.

    When MediaPortal II alpha is out I may start looking at this myself. In the mean time perhaps someone will start on a MediaPortal 1 plugin...

    So I started on it last weekend and unfortunately never noticed that MP is all C#. I do C and VB, really didn't want to learn another. Anyways, no biggie.

    I'm just setting up the initial plugin/skin templates.
    At this point I'm trying to figure out the easiest way to integrate this into MP / TV3. I'm not sure if I can use the MP guide and recording requests would be sent to TvS, seems like the easiest way to start.

    dvdfreak, any thoughts? Also, can you give me a quick summary of where'd (what dlls / calls) I'd need to start with - connecting to the TvS server, grabbing data, adding schedules?
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,175
    428
    So, I am back ;-)

    StaticMan, sounds nice. Would be great to have the ability to edit the schedules in MP.

    dvdfreak, will try to catch up the latest development and report back in later.
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Home Country
    Belgium Belgium
    Some systems have First Day of Week set to Sunday and not Monday. Could this be the source of wunschkind's problem?

    Yes, I thought of that myself during the night ;) I got wunschkind's database in the mean time and will try it out, but if it's locale-settings related I'll try to reproduce it like that.

    I'm just setting up the initial plugin/skin templates.
    At this point I'm trying to figure out the easiest way to integrate this into MP / TV3. I'm not sure if I can use the MP guide and recording requests would be sent to TvS, seems like the easiest way to start.

    dvdfreak, any thoughts? Also, can you give me a quick summary of where'd (what dlls / calls) I'd need to start with - connecting to the TvS server, grabbing data, adding schedules?

    Way cool that you're starting on this! Yes, I think taking the MP TV Guide screen and starting from there will be a huge timesaver. You "just" have to replace all calls to MP objects with calls to TvScheduler.

    There's three assemblies you need to reference:

    • TvScheduler.Entities.dll - this is the assembly with all data transfer objects like a TvChannel, a GuideProgram,...
    • TvScheduler.ServiceContracts.dll - this is the assembly with the API to TvScheduler
    • TvScheduler.ServiceAgents.dll - this is an assembly with classes that make it very easy to initialize the connection to TvScheduler and make calls to it (like calling methods on local classes).
    PM me your e-mail address (or do I already have that?), I'll send you some source code to get you started!

    on wunschkind's system, monday is the first day of the week, because in the calendarcontrol on the TvGuide screen, the left column is monday, and this is retrieved from the system by the calendar control on the page. But anyhow, no matter what that first day is (I tested with en-US culture where it is sunday), the correct day for the query is selected from the calendar, so the problem is not in that part. So what's left to examine is the query, and xmlImport ...

    Yes, perhaps it is the locale settings of the SQL database itself. Need to investigate further... :)

    dvd_freak ... could your tvscheduler plugin check if there are overlapping schedules and suggest an other schedule of the show? perhaps the tvscheduler could check all the tvserver schedules and then give us the warning of the overlapping schedules?

    Unfortunately I don't know anything about recording cards, so I can't do conflict management :( So you'll have to handle conflicts within MP.

    I am looking at implementing some methods into my API to suggest and select alternative showings, so in future some external system will be able to use this to "fix" conflicts.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,175
    428
    Probably I have missed it, but is there function about the re-runs inbuild now? I mean if I schedule a series recording which has re-runs in the morning with same epg-info, do they get recorded (if I dont make any limitations to the timeslot when it should be recorded)?

    EDIT: And again another suggestion: How about grouping the suggestions (maybe alerts too)? Reason: I created a suggestion with description contains "New York" and Genre "Dokumentation". Then I have about 30 Suggestions but 20 of them are re-runs. So what about the following view:

    - Show A
    +Show B
    - Show B (Date/Time)
    - Show B (Date/Time) and so.


    You only see the Reruns of Show B if you click on the + before Show B.

    You see what I mean?
     

    Users who are viewing this thread

    Top Bottom