Skip to content

plugin.api: remove support_plugin #3398

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

bastimeyer
Copy link
Member

As mentioned in #3366, plugin.api.support_plugin has never been used in the main Streamlink codebase and is therefore unnecessary to keep. It's a rather ugly way of using shared plugin code, especially because it modifies sys.modules with a dynamic module loading system based on the call stack of the importing module. This PR thus removes the support_plugin API, which is a breaking change and should be included in 2.0.0.


There's also the streamlink.plugin.api.http variable which gets removed by this PR.
It should have already been removed by #3366, as the overhauled plugin import system doesn't set the global HTTPSession instance anymore (technically another breaking change):
https://github.com/streamlink/streamlink/pull/3366/files#diff-6aad4096b88711d014b62443f4856dfed3bc2dab52e74822c62dae35e442da4bL448

@bastimeyer bastimeyer requested a review from back-to December 6, 2020 17:01
@back-to back-to merged commit db46759 into streamlink:master Dec 7, 2020
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Dec 7, 2020
@bastimeyer bastimeyer mentioned this pull request Dec 7, 2020
25 tasks
@bastimeyer bastimeyer deleted the remove-support-plugin branch January 19, 2021 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants