View Single Post
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#64
Cool. Edited NOS and added ORF (Austria), which works fine now. Very happy!

Originally Posted by pillar View Post
subImageUrl to make it possible to use those sites that have different url for main pages and subpages. This is optional - if not set, imageUrl will be used. If subImageUrl doesn't work, it will fallback to imageUrl (thanks benny).
I think that was a misunderstanding - at least for Swiss Teletext, it should be just the other way round. See, I have:

imageUrl=http://www.teletext.ch/pics/SF1/[page]-00.gif
subImageUrl=http://www.teletext.ch/pics/SF1/[page]-[2:subpage].gif

This is the usual pattern. You go to [page]-00.gif, which doesn't have a sub-page. Only sometimes there is no [page]-00.gif. The next thing you'd have to do then is check for [page]-01.gif - because that's either the first sub-page or the page is "irregular".

So with the current setting ("If subImageUrl doesn't work, it will fallback to imageUrl"), I never get Dexter to try [page]-01.gif if [page]-00.gif fails. It should be "If imageUrl doesn't work, it will fallback to subImageUrl for sub-page #1".

I thought for a moment that I could simply ignore all this and switch the lines like this:

subImageUrl=http://www.teletext.ch/pics/SF1/[page]-00.gif
imageUrl=http://www.teletext.ch/pics/SF1/[page]-[2:subpage].gif

That wouldn't work though, would it? You couldn't go to sub.page -02, -03... etc then, if I understood it correctly.

Anyway, an updated config how SF1 could maybe work is on the talk page now.


EDIT: ... just thought: maybe it's a good idea to not change the direction of the fallback, but just add the other fallback. so if imageUrl fails, you try subImageUrl - and when subImageUrl fails, you try imageUrl. - Just to make it more error tolerant. That wouldn't break anything, right?

Last edited by benny1967; 2010-02-07 at 20:24.
 

The Following 3 Users Say Thank You to benny1967 For This Useful Post: