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

[Feature] Automatically download plugin, based on language setting #172

Merged
merged 13 commits into from
Nov 29, 2022

Conversation

Jacekun
Copy link
Contributor

@Jacekun Jacekun commented Oct 24, 2022

Todo: Waiting for setting re- implementation

Ready for merge.

@Jacekun Jacekun marked this pull request as draft October 24, 2022 12:35
@C10udburst
Copy link
Member

ngl i don't like that you're forcing users to download all the plugins of a given language w/o any option to prevent it

@Jacekun
Copy link
Contributor Author

Jacekun commented Oct 25, 2022

ngl i don't like that you're forcing users to download all the plugins of a given language w/o any option to prevent it

Its only if 'Auto update plugin' is on

@C10udburst
Copy link
Member

ngl i don't like that you're forcing users to download all the plugins of a given language w/o any option to prevent it

Its only if 'Auto update plugin' is on

it should be a separate setting

@Jacekun
Copy link
Contributor Author

Jacekun commented Oct 25, 2022

That's doable. Though I'd argue that updating plugins is the same as downloading missing ones. And less processing time for the user

@C10udburst
Copy link
Member

C10udburst commented Oct 25, 2022

That's doable. Though I'd argue that updating plugins is the same as downloading missing ones. And less processing time for the user

its not the same (eg it would force me to download all english movie providers when i use one or two)

@Jacekun Jacekun force-pushed the autoDownload branch 3 times, most recently from d45c900 to 423aefa Compare November 1, 2022 01:24
@Jacekun Jacekun marked this pull request as ready for review November 1, 2022 02:06
@LagradOst
Copy link
Contributor

🤨

@Jacekun
Copy link
Contributor Author

Jacekun commented Nov 2, 2022

🤨

Whenever a new extension is added to my repo, I wanna have my cloudstream to download it. More plugins = more options = less overload.

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.

Overall good PR!

@Jacekun Jacekun requested a review from Blatzar November 2, 2022 23:57
@Blatzar
Copy link
Contributor

Blatzar commented Nov 9, 2022

Looks good, I will test it later today 👍

@Blatzar
Copy link
Contributor

Blatzar commented Nov 12, 2022

Looks good 🙏

Copy link
Contributor

@LagradOst LagradOst left a comment

Choose a reason for hiding this comment

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

tbh I dont know much about the dex system, but check out UiText

@ahmedtn2021
Copy link

Salut
es qu'il ya des serveurs en français
Merci

@Jacekun Jacekun requested review from LagradOst and removed request for Blatzar November 19, 2022 03:06
@Blatzar
Copy link
Contributor

Blatzar commented Nov 28, 2022

@LagradOst you have one day to object before i merge 👍

//Omit NSFW, if disabled
sitePlugin.tvTypes?.let { tvtypes ->
if (!settingsForProvider.enableAdult) {
if (tvtypes.contains(TvType.NSFW.name)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty much everything is great besides unnecessary nested if statements here
if (!settingsForProvider.enableAdult && tvtypes.contains(TvType.NSFW.name)) {
does the same 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Micro optimization. If the toggle is off, no need to check if tvtype contains the NSFW type.

Copy link
Contributor

@Blatzar Blatzar Nov 29, 2022

Choose a reason for hiding this comment

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

No, the compiler already does that, && stuff is not executed fully if it can quit early

@C10udburst
Copy link
Member

@LagradOst you have one day to object before i merge +1

image

@Blatzar Blatzar merged commit 723c554 into recloudstream:master Nov 29, 2022
@Jacekun Jacekun deleted the autoDownload branch November 29, 2022 22:44
@Simpson65
Copy link

Hey, I'm new to this. Can you please help me with cloud storage repositories?

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

6 participants