| Sponsored Ads |
|
|||||||
| Development You want to code something for the TV-Server? Share it in here! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#851 (permalink) |
|
Portal Member
|
Actually, if this is a common problem I can make "the new TV Scheduler" handle this situation automatically. If I understand correctly, this is what you did: if the previously-shown date matches the date of the program itself you remove the previously-shown tag, right?
So what I could change is that in this case I do not mark the program as being a repeat, only when the previously-shown date is in the past... |
|
|
|
|
|
#852 (permalink) |
|
Portal Member
Join Date: Mar 2008
Posts: 35
Thanks: 1
Thanked 1 Time in 1 Post
Country:
|
It's slightly more complicated than that. For whatever reason, most of my first-run programs have a "previously-shown" date that's about a day and 3 hours earlier than the actual run time (time zone issue?). Not even the 1 day 3hr difference is a constant, however... sometimes it's 1 day 4hrs earlier, and a few programs are a full 1 day, 23hrs earlier! I'm on Pacific Standard Time, btw.
Also, sometimes the "previously-shown" date is *in* the previously-shown tag, like: <previously-shown start="20080207000000" />) Other times the previously-shown tag is reduced to "<previously-shown />" and there's a <date></date> tag with the earlier runtime in it, minus the 6 trailing zeros. So my script checks for a full date in either place ("full date" because for movies the <date> tag often just has the release year of the movie in it), and removes any existing previously-shown tag if the broadcast date is 1 day, 23hrs after the "previously shown" date or closer. Hope that was clear... and hopefully my code's legible enough to explain better! Last edited by mrbenji; 2008-05-08 at 00:07. |
|
|
|
|
|
#854 (permalink) | |
|
Portal Member
|
Quote:
![]() But what's also clear after your explanation is that this seems to be a very specific tweak to your XMLTV source, so it wouldn't make much sense to add it directly into my code. |
|
|
|
|
|
|
#855 (permalink) | |
|
Portal Member
Join Date: Mar 2008
Posts: 35
Thanks: 1
Thanked 1 Time in 1 Post
Country:
|
Quote:
The only thing I suspect could be specific to my timezone is the permissible delta between the provided dates, but if that's the case then setting a delta of, say, 1 day, 7 hrs should work for 99% of the shows out there, for any user in any U.S. state. Hopefully some users in Hawaii or on the East Coast can confirm/disprove this theory? Well, you definitely wouldn't want to add it in except as a non-default option with adjustable delta... but hopefully we can get the XMLTV developers to look into why this is happening in the first place, in which case changes to TvScheduler wouldn't be needed. |
|
|
|
|
|
|
#856 (permalink) | ||
|
Portal Member
|
Quote:
Quote:
![]() Feedback from other users, especially about this strange time-offset, would be most interesting. And also, has anyone mentioned this to the author of the Schedules Direct plugin? Could there be something he can do to improve this? The closer to the source you fix a problem, the better of course. |
||
|
|
|
|
|
#857 (permalink) | |
|
Portal Member
Join Date: Oct 2005
Location: Nordborg
Age: 27
Posts: 105
Thanks: 3
Thanked 2 Times in 2 Posts
Country:
|
Quote:
Just an idea |
|
|
|
|
|
|
#859 (permalink) | |
|
Portal Member
|
Quote:
Because if that's the case there's no need to go and talk to the people behind the official XMLTV distribution, because all they did is define the spec. If's the Schedules Direct plugin that actually writes the data, things could possibly be fixed there. But the problem could very easily lie with the source of the data, the site where the Schedules Direct gets the data from... |
|
|
|
|
|
|
#860 (permalink) | |||
|
Portal Member
Join Date: Mar 2008
Posts: 35
Thanks: 1
Thanked 1 Time in 1 Post
Country:
|
Quote:
Quote:
Quote:
This does explain why the deltas varied by a few hours: the "programme start" value is in the format YYYYMMDDHHMMSS, while the embedded original air date is YYYYMMDD plus 6 added zeros for HHMMSS. Most of the first run shows I was looking at were Prime Time shows starting at 8:00 or 9:00, and (since I mistakedly considered hours & minutes instead of just y/m/d) the delta was different for 8:00 shows vs. 9:00 shows. Another factor: my timezone was set for UTC, which is what XMLTV recommends. The XMLTV configuration script says: "It is better to specify +0000 and let the final application deal with a local conversion (helps with DST issues), but you can specify a Time Offset if desired." However, if I manually specify my timezone as -0700 (Pacific Daylight Time) and ignore the hours & minutes part of the embedded date, the delta is completely gone... i.e. the y/m/d part of the "programme start" tag matches the embedded "original air date". So it seems I've boiled down the issue to one thing: it seems the tv_grab_na_dd grabber doesn't see "new" attributes for first run shows, so no matter what my timezone offset these shows always have previously-shown tags. My next stop is the Schedules Direct forum... hopefully they can determine whether my issue's caused by an error in the data they get from Tribune Media or an error in the way the XMLTV tv_grab_na_dd grabber queries or interprets that data. I've also posted to the XMLTV bug tracker for good measure. Last edited by mrbenji; 2008-05-13 at 17:32. |
|||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |