Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[extractor] added Jeniusplay #183

Merged
merged 2 commits into from
Oct 31, 2022
Merged

Conversation

hexated
Copy link
Contributor

@hexated hexated commented Oct 28, 2022

No description provided.

Copy link
Contributor

@Blatzar Blatzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will probably merge tomorrow if that's okay 👍


private fun getLanguage(str: String): String {
return when {
str.lowercase().contains("indonesia") || str.lowercase()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.contains("indonesia", ignoreCase = true) is better imo

tryParseJson<List<Tracks>>("[$subData]")?.map { subtitle ->
subtitleCallback.invoke(
SubtitleFile(
getLanguage(subtitle.label.toString()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be "null" if there is no label, perhaps a fallback?

@hexated
Copy link
Contributor Author

hexated commented Oct 29, 2022

Yeah.. 👍

@Blatzar Blatzar merged commit 64303ea into recloudstream:master Oct 31, 2022
@hexated hexated deleted the extractor branch December 13, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants