:+1:
On 25 Dec 2013 14:48, "Antonio Bertucci" <notifications@github.com> wrote:

> In core/src/main/java/uk/co/ataulm/mijur/core/model/GalleryItem.java:
>
> > +    @Override
> > +    public String toString() {
> > +        StringBuilder builder = new StringBuilder(GalleryItem.class.getSimpleName());
> > +        builder.append('{')
> > +                .append("id:").append(id).append(',')
> > +                .append("title:").append(title).append(',')
> > +                .append("is_album:").append(is_album).append(',')
> > +                .append("link:").append(link).append('}');
> > +
> > +        return builder.toString();
> > +    }
> > +
> > +    public static String getImageUrlFor(GalleryItem item) {
> > +        if (item.is_album) {
> > +            // worried it's not a jpg? The jpg extension also works for gifs on Imgur (2013.12.24)
> > +            return String.format("http://i.imgur.com/%s.jpg", item.cover);
>
> Given: you have a .gif image for an album on imgur
> When: you try to download the image using "http://i.imgur.com/%s.jpg"
> Then: it finishes correctly without throwing any exception.
>
> Makes sense?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ataulm/mijur/pull/13/files#r8550988>
> .
>