1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-15 10:24:04 +02:00

RedditRipper: changed gallery condition

This commit is contained in:
Sheefip
2020-08-14 10:19:36 +02:00
parent eae9ecf37b
commit 8118287cdd

View File

@@ -196,7 +196,7 @@ public class RedditRipper extends AlbumRipper {
if (data.getBoolean("is_self")) {
// TODO Parse self text
handleBody(data.getString("selftext"), data.getString("id"), data.getString("title"));
} else if (data.has("is_gallery") && data.getBoolean("is_gallery")) {
} else if (!data.isNull("gallery_data") && !data.isNull("media_metadata")) {
handleGallery(data.getJSONObject("gallery_data").getJSONArray("items"), data.getJSONObject("media_metadata"), data.getString("id"), data.getString("title"));
} else {
// Get link