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

Fixes the old imgurpython issue #14

Merged
merged 2 commits into from Jun 7, 2017
Merged

Fixes the old imgurpython issue #14

merged 2 commits into from Jun 7, 2017

Conversation

SantiagoTorres
Copy link
Owner

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-25.7%) to 40.146% when pulling e8e444f on update-imgurapi into 7fdbc71 on master.

Copy link
Collaborator

@ElDeveloper ElDeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally and it seems to be working just fine 👍

src/info.json Outdated
@@ -0,0 +1 @@
{"description": null, "author": "N/A", "section": "EarthPorn", "views": 1351, "link": "http://i.imgur.com/NVoTiPC.jpg", "title": "Trinity Alps, CA "}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this file?

The title string as obtained from the imgur library doesn't encode
characters in either ascii or utf-8, but provides a Unicode object
(which I never seem to understand). This causes a crash when trying to
log a title that contains extraneous characters (as it can be seen
with the multiplication sign under https://imgur.com/6KswIQG).

We force UTF-8 encoding on the title string to avoid this issue.
The old imgur library didn't work anymore, and the logger messages we
had were pretty unclear/confusing. Update the api calls and the logger
format strings to fix this.
@coveralls
Copy link

Coverage Status

Coverage decreased (-25.7%) to 40.146% when pulling 7f66e36 on update-imgurapi into 7fdbc71 on master.

@ElDeveloper ElDeveloper merged commit 329050f into master Jun 7, 2017
@ElDeveloper
Copy link
Collaborator

Thanks @SantiagoTorres!

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

Successfully merging this pull request may close these issues.

None yet

3 participants