Skip to content

Stremio Support {Rough} #763

Merged
killergerbah merged 1 commit intokillergerbah:mainfrom
SpazzTL:main
Sep 16, 2025
Merged

Stremio Support {Rough} #763
killergerbah merged 1 commit intokillergerbah:mainfrom
SpazzTL:main

Conversation

@SpazzTL
Copy link
Copy Markdown
Contributor

@SpazzTL SpazzTL commented Aug 16, 2025

A rough, initial start for Stremio Support.

Subtitles MUST be enabled first on the site, before ASB will recognize them. (This is unavoidable AFAIK)
Subtitles are named Subtitle 1 -> Subtitle 2 and so on, as Stremio subs have same/no names...

Known Errors:

  • Certain Subtitle Sources Fail
  • Subtitles duplicate sometimes

Solves issue #716

Copy link
Copy Markdown
Owner

@killergerbah killergerbah left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, and sorry for taking so long to get to this. Been pretty busy IRL.

Just one comment - it would be ideal if we could get the language from somewhere.

if (!discoveredSubtitles.has(url)) {
const track = trackFromDef({
label: `Stremio ${trackIndex++}`,
language: '',
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

There's no way to extract some kind of language information? An empty string will probably break the "Remember these tracks on this site" feature.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will try and tinker tomorrow if I have time, but I can't think of any non-scuffed methods at the moment.

Currently thinking of finding out what buttons have been clicked/interacted with or just checking the subtitle text lol.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I see, then maybe we can just disable the "Remember these tracks" feature for this site. I can work on that.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Another idea: are the tracks usually in a specific order? Like English first then original?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Another idea: are the tracks usually in a specific order? Like English first then original?

Not really, subtitles can also change (be removed / added). I think its best to disable the "Remember these tracks".
Screenshots below if they help, showing the web.stremio subtitle options, and the asb player loaded subs.
image
image
image
image

The subtitles are ordered/numbered here in order loaded... not ideal, but for my use case, works very well.... `

@killergerbah killergerbah merged commit 149aaf0 into killergerbah:main Sep 16, 2025
@killergerbah
Copy link
Copy Markdown
Owner

Thanks @SpazzTL
To be honest I haven't tested this but I trust you. I'll share this on the Discord server before it's released as well.
BTW I do see language info in the screenshots you posted. Have you already tried intercepting HTTP response payloads for this info? There are examples of other page-* scripts doing this.

@SpazzTL
Copy link
Copy Markdown
Contributor Author

SpazzTL commented Sep 17, 2025

Thanks @SpazzTL To be honest I haven't tested this but I trust you. I'll share this on the Discord server before it's released as well. BTW I do see language info in the screenshots you posted. Have you already tried intercepting HTTP response payloads for this info? There are examples of other page-* scripts doing this.

I'll start refining this hopefully shortly. I haven't tried intercepting HTTP response payloads yet, I think?. I'll look into other scripts and see if I can come up with a more stable experience. I don't think remembering tracks should be enabled for this script, just due to how stremio handles subtitles. I haven't used this or asbplayer in general much recently, but I plan to work on this script while watching some media with it soon.

@killergerbah killergerbah added this to the Extension v1.12.0 milestone Sep 17, 2025
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.

2 participants