TV4Home - WCF Webservice for MediaPortal TV Server (1 Viewer)

Mike Lowrey

Portal Pro
February 4, 2009
638
124
Berlin
Home Country
Germany Germany
Well i didn't really get what the problem with the recordingfolder is, mainly because the behaviour of the tvbusinesslayer isn't very well documented ;) but ma be you can give me a hint :)

Another point is whether you know what the difference between schedule.Cancel() and schedule.Remove() is - however the solution with scheduleId will be implemented :)
 

Oxan

Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    Well i didn't really get what the problem with the recordingfolder is, mainly because the behaviour of the tvbusinesslayer isn't very well documented ;) but ma be you can give me a hint :)
    The name of the recording is built in this way: recording folder for tuner + directory property of schedule + configured recording name. The existence check only checks for the existence of the directory component, which isn't a full path but only a component. Also, the TvEngine automatically creates the directory if it doesn't exists, so a non-existent directory is nothing to worry about.

    Another point is whether you know what the difference between schedule.Cancel() and schedule.Remove() is - however the solution with scheduleId will be implemented :)
    I looked into the source and now I know ;-) Sorry, I'm not that much into the MediaPortal inner workings, I got the .Remove() from the source of MPWebServices which worked fine for me.
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Your explanation of the Directory Property leads me to think that it's not possible to changed the basic recording folder(per schedule), am i right here?

    I looked into the source and now I know ;-)
    And what is it? Because currently the Cancel method is used and i don't want to use two different methods without knowing what the difference is ;)
     

    Oxan

    Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    Your explanation of the Directory Property leads me to think that it's not possible to changed the basic recording folder(per schedule), am i right here?
    Yes, you're right.

    I looked into the source and now I know ;-)
    And what is it? Because currently the Cancel method is used and i don't want to use two different methods without knowing what the difference is ;)
    Sorry, I misunderstood your reaction and thought you already knew the difference. Anyway, it's a bit complicated:
    * The Schedule.Delete() method deletes the schedule from the Schedule table, all matcing schedules from the CanceledSchedule table and all matching conflicts from the Conflicts table.
    * The Schedule.Remove() method just deletes from the Schedule table
    * The CanceledSchedule.Persist() method creates an entry in the CanceledSchedule table, but doesn't seem to remove from the Schedule table.
    * The Schedule table holds all active schedules
    * The Conflicts table holds all times when two schedules conflicted (i.e. trying recording two different channels on the same card that doesn't support that).
    * The CanceledSchedule table holds all schedules that are canceled by a user (not deleted, but canceled, for example because he wants to watch something else or he already saw that episode of a serie).

    The SetupTv application and MediaPortal both use the Schedule.Delete() method, so I think we should follow that. Note though that I just got this from a quick look at the code, so if you want to be really sure you should ask a MP dev.
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Thanks for your advise. So i will add your patches to the tfs and modify the current CancelSchedule method and make the naming a bit more consistent.
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Now since a long time the first greater Update is coming ;)

    We've implemented:
    multiuser setup
    json interface
    some changes in the basic classes
    and some other small things

    hope you like it :)
    The new installer is in the first post ;)
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Now since a long time the first greater Update is coming ;)

    We've implemented:
    multiuser setup
    json interface
    some changes in the basic classes
    and some other small things

    hope you like it :)
    The new installer is in the first post ;)

    Awesome, thx... :)
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    sounds nice and promising... i am fiddling around with cassini atm but will give this one a try :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    big :D Mike & Alex :)

    just a small issue to report: Stopping the active Timeshift is not working, even with the correct Username.
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Yes that's a known bug. The problem is we only call the tvserver method, so their must be an issue with the tve which have to be checked...
     

    Users who are viewing this thread

    Top Bottom