View Single Post
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#77
Originally Posted by jakoleh View Post
Can you send your current settings for that?
Thx for offering help - it really must have been too late for me yesterday evening... first i made some (as I see today: obvious) mistakes, then I didn't post the lines I needed help on... my dear.

Anyway, both sat1.at and sat1.ch are in the wiki now.

The one thing that would need testing is the original German sat1 site. Problem is: They use some weird 303 redirect, probably based on my IP address; whenever I try to get something from sat1.de, they redirect my browser to sat1.at.

If they follow the same URL scheme, it could be:
x\siteName=sat.1 Deutschland
x\imageUrl=http://www.sat1.de/service/teletext/cache_de/[page]_[2:subpage].png
x\predictionUrl=http://www.sat1.de/service/teletext/index.php?pagnr=[page]_[2:subpage]
x\subPredictionUrl=http://www.sat1.de/service/teletext/index.php?pagnr=[page]_[2:subpage]
x\previousPrediction="pagnr=(\\d+)_\\d+&trynext=-1\" class=\"teletext_numberBtn\">-</a>"
x\nextPrediction="pagnr=(\\d+)_\\d+&trynext=1\" class=\"teletext_numberBtn\">\\+</a>"
x\previousSubPrediction="pagnr=\\d+_(\\d+)\" class=\"teletext_numberBtn\">&lt;</a>"
x\nextSubPrediction="pagnr=\\d+_(\\d+)\" class=\"teletext_numberBtn\">&gt;</a>"
x\startPage=100

Maybe someone outside Austria/Switzerland (probably same redirect to sat1.ch) can test?

Oh, BTW, sat.1 introduces a new "feature" that you simply can't workaround with the current logic:
The link their previous/next-buttons point to is always page+1 (or page-1, respectively), not matter if this page exists or not. They even load a URL that refers to a non-existent page, but display the next existing page in it. Doesn't make sense to you? See page 484:

http://www.sat1.at/service/teletext/...p?pagnr=484_01

The link on the [+]-button takes you to 485, which doesn't exist. However, the browser loads
http://www.sat1.at/service/teletext/...5_01&trynext=1

and the image embedded within this "virtual" page 485 is page 499
http://www.sat1.at/service/teletext/cache_at/499_01.png

Also, the [+] button now points to 500, not to 486.

That's strange. Most complicated. I wonder how to best represent this in the UI? Do away with the previous/next buttons altogether, knowing they'll not work reliably? Not a good idea probably as long as they work at least sometimes. They're a good feature. Any other ideas?

Last edited by benny1967; 2010-02-09 at 19:06.