1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 06:37:30 +00:00

Fix stories parsing

This commit is contained in:
Ammar Githam 2021-05-22 20:27:32 +09:00
parent 17fb608c34
commit dde8fd37e3
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ data class FeedStoryModel(
val profileModel: User,
var isFullyRead: Boolean,
val timestamp: Long,
val firstStoryModel: StoryModel,
val firstStoryModel: StoryModel?,
val mediaCount: Int,
val isLive: Boolean,
val isBestie: Boolean

View File

@ -161,7 +161,9 @@ public class StoriesService extends BaseService {
node.getInt("media_count"),
false,
node.optBoolean("has_besties_media")));
} catch (Exception e) {} // to cover promotional reels with non-long user pk's
} catch (Exception e) {
Log.e(TAG, "parseStoriesBody: ", e);
} // to cover promotional reels with non-long user pk's
}
final JSONArray broadcasts = new JSONObject(body).getJSONArray("broadcasts");
for (int i = 0; i < broadcasts.length(); ++i) {