Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with Widget since update of Ubersicht to v0.9 #2

Open
blackley opened this issue May 29, 2016 · 3 comments
Open

Errors with Widget since update of Ubersicht to v0.9 #2

blackley opened this issue May 29, 2016 · 3 comments

Comments

@blackley
Copy link

blackley commented May 29, 2016

Hi Sam @roach0123, since the latest update was applied a few days ago - this widget is throwing and error.

curl -s 'http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=en-US' | grep -E -m 1 -o '(.)' | sed -e 's,.([^<]).,\1,g'
^
ParseError: octal escape sequences are not allowed \1

@tripflex
Copy link

I can confirm this is an issue i'm experiencing as well

@tripflex
Copy link

@blackley edit the file and remove the end section with the sed statement that's causing the error:

So change from this:

curl -s 'http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=en-US' | grep -E -m 1 -o '<url>(.*)</url>' | sed -e 's,.*<url>\([^<]*\)</url>.*,\1,g'

To this:

curl -s 'http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=en-US' | grep -E -m 1 -o '<url>(.*)</url>'

Worked for me because he has code at the bottom to remove/replace the <url> and </url> in the returned data.

@wrutkowski
Copy link

Thanks! Maybe create Pull Request with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants