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

thunar-upload-to-postimage.sh not working #12

Open
wincak opened this issue Sep 18, 2016 · 1 comment
Open

thunar-upload-to-postimage.sh not working #12

wincak opened this issue Sep 18, 2016 · 1 comment
Assignees
Labels

Comments

@wincak
Copy link

wincak commented Sep 18, 2016

The thunar-upload-to-postimage.sh script does not work for me (anymore?). After the "upload", the zenity popup just displays

https?://([^/

When I try to display the curl output file, it seems to be just the postimage front page.
It might be because they changed the website recently, there is even a "Return to the old site" link at the bottom of the page.
As a temporary hack, it is still possible to use the old interface. (I don't want to submit this as a pull request, because it is too nasty)

  1. Change curl upload address to old.postimage.org
  2. Change the grep pattern of resulting webpage
    ZTEXT="$(echo "${TEXT}" | grep -E -o '\w*.postimg.org/[[:alnum:]]+/[[:graph:]]+.(jpg|gif|png)' | awk 'NR==2')"
    This modification looks for image links according to a rough pattern and then uses the second one, because that seems to be the "Direct Link" image.
@cytopia cytopia self-assigned this Dec 31, 2016
@cytopia
Copy link
Owner

cytopia commented Mar 25, 2017

@wincak I will have a look.
For now use upload-to-imgur, that has been fixed already.

@cytopia cytopia added the bug label Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants