Skip to content

Commit

Permalink
Changelog update + typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Jan 10, 2017
1 parent 1195cc8 commit 48d38c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions assets/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Ability to share image directly rather than link (thanks to Sérgio Sampaio)
Fix for saving images with no file extension (thanks to Luís Coelho)
Hungarian translation (thanks to András Lengyel-Nagy)
Various codebase improvements (thanks to Daniel Martí)
Removed unnecessary image download when opening in external browser (thanks to m3sv)

76/1.9.6.1
Removed all CAPTCHAs as they are no longer needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ private static ImageInfo getImageUrlPatternMatch(final String url) {

final String[] imageExtensions = {".jpg", ".jpeg", ".png"};

final String[] videoExtentsions = {".webm", ".mp4", ".h264", ".gifv", ".mkv", ".3gp"};
final String[] videoExtensions = {".webm", ".mp4", ".h264", ".gifv", ".mkv", ".3gp"};


for(final String ext: imageExtensions) {
Expand All @@ -591,7 +591,7 @@ private static ImageInfo getImageUrlPatternMatch(final String url) {
}
}

for(final String ext: videoExtentsions) {
for(final String ext: videoExtensions) {
if(urlLower.endsWith(ext)) {
return new ImageInfo(url, ImageInfo.MediaType.VIDEO);
}
Expand All @@ -612,7 +612,7 @@ private static ImageInfo getImageUrlPatternMatch(final String url) {
}
}

for(final String ext: videoExtentsions) {
for(final String ext: videoExtensions) {
if(urlBeforeQ.endsWith(ext)) {
return new ImageInfo(url, ImageInfo.MediaType.VIDEO);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static ImageInfo parseImgurV3(final JsonBufferedObject object)
Long width = null;
Long height = null;
Long size = null;
Boolean mp4 = false;
boolean mp4 = false;

if(object != null) {
id = object.getString("id");
Expand Down

0 comments on commit 48d38c8

Please sign in to comment.