mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Fix stories parsing
This commit is contained in:
parent
17fb608c34
commit
dde8fd37e3
@ -10,7 +10,7 @@ data class FeedStoryModel(
|
|||||||
val profileModel: User,
|
val profileModel: User,
|
||||||
var isFullyRead: Boolean,
|
var isFullyRead: Boolean,
|
||||||
val timestamp: Long,
|
val timestamp: Long,
|
||||||
val firstStoryModel: StoryModel,
|
val firstStoryModel: StoryModel?,
|
||||||
val mediaCount: Int,
|
val mediaCount: Int,
|
||||||
val isLive: Boolean,
|
val isLive: Boolean,
|
||||||
val isBestie: Boolean
|
val isBestie: Boolean
|
||||||
|
@ -161,7 +161,9 @@ public class StoriesService extends BaseService {
|
|||||||
node.getInt("media_count"),
|
node.getInt("media_count"),
|
||||||
false,
|
false,
|
||||||
node.optBoolean("has_besties_media")));
|
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");
|
final JSONArray broadcasts = new JSONObject(body).getJSONArray("broadcasts");
|
||||||
for (int i = 0; i < broadcasts.length(); ++i) {
|
for (int i = 0; i < broadcasts.length(); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user