Use :orig instead of :large in TwitterRipper

This patch will allow TwitterRipper to download the original image instead of the resized large image

Normal image (600×300) → https://pbs.twimg.com/media/CCiZIc-WgAAc9vx.jpg
Large image (1024×512) → https://pbs.twimg.com/media/CCiZIc-WgAAc9vx.jpg:large
Original image (1280×640) → https://pbs.twimg.com/media/CCiZIc-WgAAc9vx.jpg:orig
This commit is contained in:
i-cant-git 2016-01-09 06:19:51 +02:00
parent b9d5347262
commit f95e319585

View File

@ -184,7 +184,7 @@ public class TwitterRipper extends AlbumRipper {
media = (JSONObject) medias.get(i);
url = media.getString("media_url");
if (url.contains(".twimg.com/")) {
url += ":large";
url += ":orig";
addURLToDownload(new URL(url));
return true;
}