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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix StreamSB stream break: support audiotracks #385

Closed
wants to merge 3 commits into from

Conversation

LikDev-256
Copy link
Contributor

The previous method,
M3u8Helper.generateM3u8()
caused the stream break, which caused the extractor to not be able to support multi-audio tracks.

My method involves not using M3u8Helper.generateM3u8() it uses ExtractorLink() (Psychopath Method)
Which allows the player to automatically detect audio tracks.

The code change,

safeApiCall {
            callback.invoke(
                ExtractorLink(
                    name,
                    name,
                    mapped?.streamData?.file ?: return@safeApiCall,
                    url,
                    Qualities.Unknown.value,
                    true,
                    headers
                )
            )
        }

Any my crappy code fixes are welcomed 馃檹馃徏

A proof of concept can be found Here

@LagradOst
Copy link
Contributor

I dont exactly get why you have safeApiCall, remove that

@LikDev-256
Copy link
Contributor Author

This PR is useless @hexated 's SoraStream heavily relies on M3u8Helper() and It works better.
I'm closing this.

About ,

I dont exactly get why you have safeApiCall, remove that

I actually don't remember why I used it

@LikDev-256 LikDev-256 closed this Feb 19, 2023
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