<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="73395856" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/454" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/454/hovercard" href="https://github.com/bumptech/glide/issues/454">#454</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="73441267" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/456" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/456/hovercard" href="https://github.com/bumptech/glide/issues/456">#456</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72507902" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/451" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/451/hovercard" href="https://github.com/bumptech/glide/issues/451">#451</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(getActivity()).load(Utils.getYoutubeUrl(density, getArguments().getString(VIDEO_ID))).asBitmap().error(R.drawable.ic_error_icon).into(glideImageView);"><pre class="notranslate"><code class="notranslate">Glide.with(getActivity()).load(Utils.getYoutubeUrl(density, getArguments().getString(VIDEO_ID))).asBitmap().error(R.drawable.ic_error_icon).into(glideImageView);
</code></pre></div>
<p dir="auto">I wish I could get Exception listener for 404</p>
<p dir="auto">like if particular url returns 404 then retry with fallback url instead of drawable .</p>
<p dir="auto">Example Url1 - <a href="http://img.youtube.com/vi/watsQDZ3KNw/sddefault.jpg" rel="nofollow">http://img.youtube.com/vi/watsQDZ3KNw/sddefault.jpg</a></p>
<p dir="auto">if Url1 returns 404 then fallback</p>
<p dir="auto"><a href="http://img.youtube.com/vi/watsQDZ3KNw/mddefault.jpg" rel="nofollow">http://img.youtube.com/vi/watsQDZ3KNw/mddefault.jpg</a></p>
<p dir="auto">I am using Youtube Image API , which does always have mddefault.jpg and higher version might not available .</p>