Skip to content

Commit

Permalink
polish #194
Browse files Browse the repository at this point in the history
  • Loading branch information
sokomishalov committed Aug 25, 2021
1 parent 2cbf286 commit 495c923
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ fun YoutubeSkraper.getUserPosts(username: String): Flow<Post> {
return getPosts(path = "/user/${username}/videos")
}

suspend fun YoutubeSkraper.getUserInfo(username: String): PageInfo? {
return getPageInfo(path = "/user/${username}")
}

fun YoutubeSkraper.getSearchPosts(keyword: String): Flow<Post> {
return getPosts(path = "/results?search_query=${keyword.replace(" ", "+")}")
}

suspend fun YoutubeSkraper.getUserInfo(username: String): PageInfo? {
return getPageInfo(path = "/user/${username}")
}

0 comments on commit 495c923

Please sign in to comment.