nekohayo / specto

Automatically exported from code.google.com/p/specto
0 stars 0 forks source link

Per-watch option to prevent URL redirects #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm monitoring a webpage on a site that regularly goes down for
maintenance. The URL of my watch is automatically updated to the error page
losing my the original URL of my watch.

Whilst I would like to be notified of when the site goes down for
maintenance I would like the original URL to be preserved. Been able to
select this behaviour per watch might be desirable.

Using Ubuntu Gutsy 7.10

Original issue reported on code.google.com by thomas.o...@gmail.com on 18 May 2008 at 10:31

GoogleCodeExporter commented 9 years ago
I *think* there is an option in gconf for that. Use gconf-editor and take a 
loot at
/apps/specto/follow_website_redirects. Does that solve the problem?

Original comment by nekoh...@gmail.com on 18 May 2008 at 3:27

GoogleCodeExporter commented 9 years ago
I've found that option but it applies the option globally when I really only 
want the
behaviour for one watch.

Original comment by thomas.o...@gmail.com on 18 May 2008 at 7:53

GoogleCodeExporter commented 9 years ago
Hm. I wonder if there's a smarter way. When your website goes down, it 
redirects? How
come? Shouldn't it just cause a refresh timeout on specto's side?

Original comment by nekoh...@gmail.com on 18 May 2008 at 11:10

GoogleCodeExporter commented 9 years ago
It's not a site I have any control over just one I'm monitoring. It basically 
when it
goes down for maintenance it redirects to a custom error page.

Anywho have modded a few of the files to add another option "follow_redirect" 
for
each site.
Haven't added control of the option to the gui, but looks like it should be a 
small
edit in the glade file.

Original comment by thomas.o...@gmail.com on 19 May 2008 at 8:30

GoogleCodeExporter commented 9 years ago
I would probably prefer that this is a poweruser option that can be added to 
watches
by editing the watch list, but not in the gui...

If I understand correctly, you already patched your setup for this?

Original comment by nekoh...@gmail.com on 19 May 2008 at 12:17

GoogleCodeExporter commented 9 years ago
It should be really easy to add this to my development specto (like i added the 
port
and folder options)

Original comment by woutclym...@gmail.com on 19 May 2008 at 12:20

GoogleCodeExporter commented 9 years ago
The patch was quite easy. Basically a few lines added to a few files.
Dunno if you would like me to send the files I patched so you can run a diff 
against
them or rather implement it yourselves!

Original comment by thomas.o...@gmail.com on 19 May 2008 at 4:45

GoogleCodeExporter commented 9 years ago
Fixed in development branch

Original comment by woutclym...@gmail.com on 19 May 2008 at 5:09

GoogleCodeExporter commented 9 years ago
wout, did you fix it with a gui option, or is it only in the watch list? if the
latter, I think you should begin writing a wiki page of all those "hidden" 
options
for specto power users, I can't even remember how many there are :)

Original comment by nekoh...@gmail.com on 19 May 2008 at 7:11