MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-09-27, 12:55   #81 (permalink)
Portal Member
 
Join Date: Jul 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

They are missing in the DB as well, so you're right it's the import.

I have attached my XML file.
jake78 is offline   Reply With Quote
Old 2007-09-27, 12:56   #82 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 713
Thanks: 19
Thanked 2 Times in 2 Posts

My System

Default

Quote:
Originally Posted by dvdfreak View Post
Thanks, this was very helpful as I'm pretty sure it's this that gives the error on your SQL:

CAST('2007/09/25' AS DATETIME)

Must be a locale thing, I'm going to look for a more correct locale-independant way of converting this date.

To confirm this, can you try to execute the following in your SQL Management Studio:

SELECT CAST('2007/09/25' AS DATETIME)

SELECT CAST('2007/25/09' AS DATETIME)

I wouldn't be surprised if the first one fails, and the second one works...

EDIT

Does the following work?

SELECT CONVERT(DATETIME, '2007.09.25', 102)
SELECT CAST('2007/09/25' AS DATETIME) -> not working. Message is:

"Meldung 242, Ebene 16, Status 3, Zeile 1
Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs."

SELECT CAST('2007/25/09' AS DATETIME) -> working

SELECT CONVERT(DATETIME, '2007.09.25', 102) -> working too
__________________
Some say he works as a tester for Team Mediaportal and some say that he smells bugs, even before they are written into the Code. All we know is, he's called
The Stig.
The_Stig is offline   Reply With Quote
Old 2007-09-27, 13:12   #83 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 527
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

Quote:
Originally Posted by jake78 View Post
They are missing in the DB as well, so you're right it's the import.

I have attached my XML file.
Thanks! Seems I have some XMLTV fixing to do Will definitely fix this by the next release.

Quote:
Originally Posted by The_Stig View Post
SELECT CONVERT(DATETIME, '2007.09.25', 102) -> working too
OK, that's the one I'm gonna use then since this is totally independant of the locale settings. Thanks for the help.

Last edited by dvdfreak; 2007-09-27 at 13:13. Reason: Automerged Doublepost
dvdfreak is offline   Reply With Quote
This User Say Thank You:
Old 2007-09-29, 19:34   #84 (permalink)
Portal Member
 
Join Date: Aug 2006
Age: 24
Posts: 142
Thanks: 3
Thanked 3 Times in 3 Posts

Country:

My System

Default

I just installed your scheduler, this has to be integrated with mediaportal. 1 feature request: on adding a schedule
and when using "contains" for the title, make it possible to give muliple keywords.

example:

that AND 70 AND show

will record: That '70s Show



groeten uit België
ocram is offline   Reply With Quote
Old 2007-09-29, 20:15   #85 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 527
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

Quote:
Originally Posted by ocram View Post
I just installed your scheduler, this has to be integrated with mediaportal. 1 feature request: on adding a schedule
and when using "contains" for the title, make it possible to give muliple keywords.

example:

that AND 70 AND show

will record: That '70s Show
Well, this is actually already possible, but unfortunately not (yet) from the user interface. If a schedule is added with several "TitleContains" rules you will get the effect you ask for.
dvdfreak is offline   Reply With Quote
Old 2007-10-02, 09:11   #86 (permalink)
MP Donator
 
MoPhat's Avatar
 
Join Date: Jun 2007
Location: Berg, Switzerland
Age: 35
Posts: 664
Thanks: 4
Thanked 43 Times in 10 Posts

Country:

My System

Default

Does this work with DVB-EPG or only with XMLTV?

Thanks
MoPhat
MoPhat is online now   Reply With Quote
Old 2007-10-02, 11:34   #87 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 527
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

Quote:
Originally Posted by MoPhat View Post
Does this work with DVB-EPG or only with XMLTV?

Thanks
MoPhat
Both are possible, even a combination of both (you can configure which source you consider the most important, and the other source will then simply enrich the guide if possible).

So to give a pratical example, say you get "The Simpsons" from DVB-EPG but it lacks the description, when you import XMLTV and that one does have the description the guide data will be updated with this new information.

All that being said, the test-version I uploaded only imports XMLTV, since DVB-EPG will have to be provided by MediaPortal (and passed on to TvScheduler through its ImportProgram() service method).
dvdfreak is offline   Reply With Quote
Old 2007-10-04, 12:26   #88 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 527
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

Just a quick status update. I broke my laptop last weekend, so I'm trying to get back up and running to continue development (new machine is on its way ), but here's what's already done:
  • Implemented caching for calculating upcoming programs -- this enormously speeds up repeated calls.
  • TvScheduler.WindowsService will now delete old guide data every day (everything before yesterday).
  • Added Settings panel, with e.g. global pre- and post-record settings.
  • Added "Edit Schedule" item to popup in TV Guide.
  • Added new and more icons.
  • Added icons to upcoming programs grids.
  • Implemented preferred guide source and pre- and post-record settings.
  • Added "IsCancelled" to UpcomingProgram and UpcomingGuideProgram (always false for now).
  • Bug fix: Fixed problem with datetime casting in SQL Express for OnDate rule.
  • Bug fix: time in Upcoming Programs grid is now also displayed for midnight (00:00).
  • Bug fix: XMLTV import was broken when two programmes with the same title were right after one another.
What I'd like to do before I upload a new test-version is implement the logic to cancel/uncancel specific programs for a schedule. So you can simply right-click on a program that is scheduled and "remove" just that one, while leaving the rest of the schedule intact.

Another thing I'd like to start looking at, is what patches/changes would be required to the core code of TVE3 to make it query TvScheduler about what needs to be recorded, instead of only the internal TVE3 database. This would be the first big step for integration, since that would mean program would really be recorded, and not just appear on your screen for fun
dvdfreak is offline   Reply With Quote
Old 2007-10-04, 12:38   #89 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 713
Thanks: 19
Thanked 2 Times in 2 Posts

My System

Default

Sounds nice! Keep it coming :-)
__________________
Some say he works as a tester for Team Mediaportal and some say that he smells bugs, even before they are written into the Code. All we know is, he's called
The Stig.
The_Stig is offline   Reply With Quote
Old 2007-10-04, 15:09   #90 (permalink)
Portal Member
 
Join Date: Jul 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I'm looking forward to the next test version.

Keep up the good work!
jake78 is offline   Reply With Quote
Reply

Bookmarks

Tags
rulebased, service, tvscheduler

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug Report: Error when editing logo rule ccMatrix My TVSeries 1 2007-05-09 09:29
One remote to rule them all? fathead General Support 5 2006-01-06 17:37
Media Portal Developers Rule! Jaguarius MediaPortal 1 Talk 1 2005-11-11 16:00


All times are GMT +1. The time now is 22:16.


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