maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Dexter - Text-TV Reader (https://talk.maemo.org/showthread.php?t=42207)

JKO65 2010-02-08 11:50

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by pillar (Post 515988)
@JKO65: That is most likely due to the changes to the config file parameters. You can either 1) delete your config file from ~/.config/Dexter/dexter.conf and start Dexter - it will regenerate Yle site with the correct values for the new version 2) Edit config file and change the values yourself (Wiki has working examples for Yle and Mtv3)

Great! That helped. I like this App. Fast and kind of retro feeling ...

pyykkhe 2010-02-08 14:22

Re: Dexter - Text-TV Reader
 
I'm pretty newbie with maemo. So, I'm wondering what is the way to update the dexter.conf?

-What editor I could use?
-if sudo is needed, what would be the password as default?

I combiled following from wiki in order to get MTV3 and nelonen available here in finland.

Thanks !

"
2\siteName=Mtv3
2\imageUrl=http://www.mtv3tekstikanava.fi/new2008/images/[page]-[2:subpage].gif
2\predictionUrl=http://www.mtv3tekstikanava.fi/new2008/[page]-01.htm
2\subPredictionUrl=http://www.mtv3tekstikanava.fi/new2008/[page]-[2:subpage].htm
2\previousPrediction="<a href=\"(\\d+)-01.htm\"><< Edellinen sivu</a>"
2\nextPrediction="<a href=\"(\\d+)-01.htm\">Seuraava sivu >></a>"
2\previousSubPrediction="<a href=\"\\d+-(\\d+).htm\"><< alasivu</a>"
2\nextSubPrediction="<a href=\"\\d+-(\\d+).htm\">alasivu >></a>"
2\startPage=100
3\siteName=Nelonen
3\imageUrl=http://www.nelonen.fi/teksti4/pages/[page]_[4:subpage].gif
3\predictionUrl=http://www.nelonen.fi/teksti4/?page=[page]
3\subPredictionUrl=http://www.nelonen.fi/teksti4/?page=[page]&subpage=[subpage]
3\previousPrediction="<a href=\".page=(\\d+)\"><img src=\"images/alalaita_edellinen.gif\".+></a>"
3\nextPrediction="<a href=\".page=(\\d+)\"><img src=\"images/alalaita_seuraava.gif\".+></a>"
3\previousSubPrediction="<a href=\".page=\\d+&subpage=(\\d+)\"><img src=\"images/alalaita_edellinen_ala.gif\".+></a>"
3\nextSubPrediction="<a href=\".page=\\d+&subpage=(\\d+)\"><img src=\"images/alalaita_seuraava_ala.gif\".+></a>"
3\startPage=101
"

famusc 2010-02-08 15:00

Re: Dexter - Text-TV Reader
 
Hello, that's really a great program.
I was trying to configure it for Rai tv teletext.
I have some problems with previous/next predictions:

prediction link is like

Code:

<a alt="Pagina Precedente" href="solotesto.jsp?pagina=769&sottopagina=1">
                                                       
                                                                <span style="font-family:Courier;font-size:8pt;color:#645e5e">Pagina Precedente

with several \r \n \t between <a> and <span>.
Should I escape those special characters? and what about &?

Thanks

benny1967 2010-02-08 21:43

Re: Dexter - Text-TV Reader
 
Added 3sat (Austria/Germany/Switzerland) to the Wiki.

Running into problems with
http://www.sat1.at/service/teletext/
http://www.sat1.ch/service/teletext/

Never finds the regex for the prediction urls. dont know what it is, but the whole thing is full of "?" and "+" and whatnot in the URLs and in the HTML, maybe I really don't know how to properly escape it. Maybe someone else has more luck.

jakoleh 2010-02-09 07:11

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by benny1967 (Post 516836)
Running into problems with
http://www.sat1.at/service/teletext/
http://www.sat1.ch/service/teletext/

Never finds the regex for the prediction urls. dont know what it is, but the whole thing is full of "?" and "+" and whatnot in the URLs and in the HTML, maybe I really don't know how to properly escape it. Maybe someone else has more luck.

Can you send your current settings for that?

jakoleh 2010-02-09 07:28

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by famusc (Post 516326)
Hello, that's really a great program.
I was trying to configure it for Rai tv teletext.
I have some problems with previous/next predictions:

prediction link is like

Code:

<a alt="Pagina Precedente" href="solotesto.jsp?pagina=769&sottopagina=1">
                                                       
                                                                <span style="font-family:Courier;font-size:8pt;color:#645e5e">Pagina Precedente

with several \r \n \t between <a> and <span>.
Should I escape those special characters? and what about &?

Thanks

Is the span needed?

<a alt=\"Pagina Precedente\" href=\"solotesto.jsp.pagina=(\d+).sottopagina=\d+\ ">

benny1967 2010-02-09 18:54

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by jakoleh (Post 517297)
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?

jakoleh 2010-02-09 20:22

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by benny1967 (Post 518113)
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. :)

That happens

Quote:

Originally Posted by benny1967 (Post 518113)
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.

...

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

German site is working the same as at.


Quote:

Originally Posted by benny1967 (Post 518113)
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:

Yes that is correct. When you go to page 485 you will see no change. If you then click next it will go to page 400. This happens because you are using predictionurl without &trynext=1 at the end. In the internet when you click next in page 484 you have that &trynext=1 at the end.

You would need two prediction urls. One for going down (&trynext=-1 at the end) and another one with (&trynext=1) at the end. Not so convenient.

For this site to work we would need to go through all the next images and when the image is not redirected to http://www.sat1.at/images/blind.gif then we would show that image.

Quote:

Originally Posted by benny1967 (Post 518113)
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?

For time being, just write information to wiki informing how this thing works.

benny1967 2010-02-09 20:28

Re: Dexter - Text-TV Reader
 
Quote:

Originally Posted by jakoleh (Post 518252)
For time being, just write information to wiki informing how this thing works.

Stop being pragmatic! ;)

... and thx for testing .de

copperviking 2010-02-10 18:54

Re: Dexter - Text-TV Reader
 
Can somebody help me? I manage to edit the confic file (mtv3 and yle), but I can only see yle in Dexter settings. Where is mtv3?


All times are GMT. The time now is 17:31.

vBulletin® Version 3.8.8