Skip to content

Commit

Permalink
fix(media_downloader): download from topics
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunk committed Aug 8, 2023
1 parent 9dc61b6 commit d07571e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam
}?.let { playlistGroup ->
val playlistGroupString = playlistGroup.toString()

val storyUserId = if (playlistGroupString.contains("storyUserId=")) {
val storyUserId = paramMap["TOPIC_SNAP_CREATOR_USER_ID"]?.toString() ?: if (playlistGroupString.contains("storyUserId=")) {
(playlistGroupString.indexOf("storyUserId=") + 12).let {
playlistGroupString.substring(it, playlistGroupString.indexOf(",", it))
}
Expand Down

0 comments on commit d07571e

Please sign in to comment.