Hello, Andre!

On Mon, 2007-07-16 at 23:57 +0200, Andre Colomb wrote:
> Do you think there is a way to analyse wget's output and catch 401
> errors when adding the feed? It doesn't seem to return any meaningful
> value. This way, you could prompt for credentials without the user
> specifying them in the URL in the first place. That would bring it to
> perfection :-)

Short answer: Not at the moment, no.

Long answer: I think the only way we could identify 401 errors is to set
the environment variable "LC_ALL" of the wget process to "C" (i.e.
standard strings) and grep for "Auth.*failed". If the wget process
returns with a non-zero return value, chances are high that the download
failed because of that. Would be a bit hack-ish, but I guess if you've
subscribed to some authentication-only podcast, you should know so
anyway.

A dialog box informing the user about the failed download would be nice,
though.


Enjoy,
Thomas


_______________________________________________
gpodder-devel mailing list
gpodder-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to