Skip to content

Commit

Permalink
update VidBomExtractor
Browse files Browse the repository at this point in the history
  • Loading branch information
adly98 committed Jul 15, 2024
1 parent adc6d71 commit 85a2915
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ class VidBomExtractor(private val client: OkHttpClient) {

return data.split("file:\"").drop(1).map { source ->
val src = source.substringBefore("\"")
var quality = "Vidbom: " + source.substringAfter("label:\"").substringBefore("\"")
if (quality.length > 15) {
quality = "Vidshare: 480p"
val quality = when {
"go" in url -> "Vidbom: " + source.substringAfter("label:\"").substringBefore("\"")
"sha" in url -> "Vidshare: SD"
else -> "Govad: " + source.substringAfter("label:\"").substringBefore("\"")
}
Video(src, quality, src)
}
Expand Down

0 comments on commit 85a2915

Please sign in to comment.