MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2005-01-18, 23:26   #1 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts


Default How can I make MP to notice changes in the database

I'm working on a scheduler for MP. But I have the same problem like Machine had:

Quote:
MP does not notice the changes in the database. So this whole thing does NOT work right now.
How did you solve this. Right now I add recordings like this:

Dim recording As New MediaPortal.TV.Database.TVRecording

recording.Title = Description
recording.Channel = CapChannel
recording.Start = datetolong(StartTime)
recording.End = datetolong(EndTime)

recording.RecType = MediaPortal.TV.Database.TVRecording.RecordingType. Once


MediaPortal.TV.Database.TVDatabase.AddRecording(re cording)

The thing is that the OnRecordingsChanged are not raised in MP, because I use an external plugin.
How did you solve this?[/code]
__________________

HTPC:
P3-S 1133@1133@1,1V passiv
ASUS TUSL2-M
Skystar 2
Creative Soundblaster
nVidia FX5200
120G Samsung SV1204
Toshiba SD-M1712 (Silent Firmware)
--------------------------------------------
PVR Scheduler with MediaPortal Plugin
http://www.pvr-scheduler.de
STSC is offline   Reply With Quote
Old 2005-01-19, 09:27   #2 (permalink)
Portal Developer
 
Join Date: Jun 2004
Location: Germany
Posts: 495
Thanks: 7
Thanked 3 Times in 3 Posts

Country:


Default

Hi STSC,

this part of the webscheduler was done by Sam (samuel337). He expanded his external control plugin to accept commands from a webservice. The php part of the webinterface just communicates with this webservice which sends the commands to the control plugin. So maybe you ask Sam directly. I'm sure, he will provide you the sourcecode of his plugin.

Maschine
Maschine is offline   Reply With Quote
Old 2005-01-23, 18:41   #3 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Does anybody know where Sam is? I wrote him a PM on January 19th, but he hasn't read it yet.
__________________

HTPC:
P3-S 1133@1133@1,1V passiv
ASUS TUSL2-M
Skystar 2
Creative Soundblaster
nVidia FX5200
120G Samsung SV1204
Toshiba SD-M1712 (Silent Firmware)
--------------------------------------------
PVR Scheduler with MediaPortal Plugin
http://www.pvr-scheduler.de
STSC is offline   Reply With Quote
Old 2005-01-24, 08:09   #4 (permalink)
Portal Developer
 
Join Date: Jun 2004
Location: Germany
Posts: 495
Thanks: 7
Thanked 3 Times in 3 Posts

Country:


Default

Yes, he's away for some days. Some kind of winter vacation I think ;-) He wrote me to be back around the end of this month.

Maschine
Maschine is offline   Reply With Quote
Old 2005-01-30, 10:03   #5 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by Maschine
Yes, he's away for some days. Some kind of winter vacation I think ;-) He wrote me to be back around the end of this month.

Maschine
Its summer over here... ;-) anyway, I'm back.

With regards to code, are you going to do this via my plugin (like the web interface), or are you going to do this using your own plugin?

Depending on the circumstance, I can give different code.

Basically, what I've done is to tell MP to update a non-existent recording (e.g. one with ID 9999999).

Sam
samuel337 is offline   Reply With Quote
Old 2005-01-30, 10:42   #6 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hi Sam,

I'm writing an independent program (PVR Scheduler) that can control the recordings of MP. I can add new recordings, but they never will start, because MP doesn't update them. I also add the recordings like you do in your webinterface and then you call this function:

<WebMethod(Description:="This command tells MediaPortal to refresh its recordings list.")> _
Public Function RefreshRecordingsInMP() As String
Dim eMPH As ExtControlAssembly.MPHandler = GetEMPH()

Return eMPH.RefreshRecordingsInMP
End Function

Now I would like to know which code you use in the ExtControlAssembly.dll to update the recordings. Maybe you can send me the sources.

The advantages of my scheduler are:
- NVRAM support (RTC Alarm)
- Start recordings without MP running
- Shutdown/Standby after recording
- support of tvinfo.de (for german users)
- support of different recording programs
Right now it has its own user interface, but I also want to program a plugin for MP later, so that you can control my PVR Scheduler completely in MP.

Thank you very much!
__________________

HTPC:
P3-S 1133@1133@1,1V passiv
ASUS TUSL2-M
Skystar 2
Creative Soundblaster
nVidia FX5200
120G Samsung SV1204
Toshiba SD-M1712 (Silent Firmware)
--------------------------------------------
PVR Scheduler with MediaPortal Plugin
http://www.pvr-scheduler.de
STSC is offline   Reply With Quote
Old 2005-01-30, 17:28   #7 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

Quote:
Originally Posted by STSC
.................
The advantages of my scheduler are:
- NVRAM support (RTC Alarm)
- Start recordings without MP running
- Shutdown/Standby after recording

- support of tvinfo.de (for german users)
- support of different recording programs
Right now it has its own user interface, but I also want to program a plugin for MP later, so that you can control my PVR Scheduler completely in MP.

Thank you very much!
Hi STSC,
this does as well mean, that recordings will/can be done by an extra recording prog like WinTVCap so directly in MPEG? Or with DVB directly to DVB-stream, so no more recording in 'DVR-MS shit' is needed? (I hate it to convert before cutting commercials out!)

I love this idea...
hope, we can try it out in the next days.... can't wait..... :wink:
doit
  Reply With Quote
Old 2005-01-30, 18:33   #8 (permalink)
Portal Member
 
Join Date: Dec 2004
Location: Germany
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Yes, right now it still has its own user interface and it can already schedule recordings for other recording programs.
But I also would like to integrate it in MP, so that you can schedule your recordings in MP. I think that I will start to do this in a couple weeks, because first of all I have to learn how to program plugins for MP.
__________________

HTPC:
P3-S 1133@1133@1,1V passiv
ASUS TUSL2-M
Skystar 2
Creative Soundblaster
nVidia FX5200
120G Samsung SV1204
Toshiba SD-M1712 (Silent Firmware)
--------------------------------------------
PVR Scheduler with MediaPortal Plugin
http://www.pvr-scheduler.de
STSC is offline   Reply With Quote
Reply

Bookmarks

Tags
database, make, notice

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(original thread) US/Canadian/Mexico EPG Zap2it Plugin Released bradsjm zap2it (discontinued) 513 2007-02-21 14:07
Help with TVServer and client rick78 Get Support 8 2006-12-12 18:48
0.2.1 and latest svn MyPictures thumbnails broken gloomyandy Codecs, External Players 1 2006-10-24 10:01
The Setup wizard crash when reaching the autotune step Wbunaarf The old Bugreport Forum 19 2006-07-20 01:55
Fusion HDTV5 Gold and external inputs nst6563 General Support 7 2006-05-27 19:05


All times are GMT +1. The time now is 06:31.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress