Include subtitles #156

Open
opened 2025-06-20 08:10:36 +00:00 by webstreamr · 19 comments
webstreamr commented 2025-06-20 08:10:36 +00:00 (Migrated from github.com)

Many sources also link subtitles. Scraping and returning them as well would be quite useful.

https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/stream.md

Many sources also link subtitles. Scraping and returning them as well would be quite useful. https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/stream.md
GLlgGL commented 2026-01-16 21:05:27 +00:00 (Migrated from github.com)

Yes we need this :P

Yes we need this :P
webstreamr commented 2026-01-19 15:56:16 +00:00 (Migrated from github.com)

@GLlgGL which are the embed hosters you miss subtitles the most? some hls streams should have them included already, e.g. vixsrc. others, e.g. supervideo not I think. I can look into adding them one by one, but want to stat with the important ones

@GLlgGL which are the embed hosters you miss subtitles the most? some hls streams should have them included already, e.g. vixsrc. others, e.g. supervideo not I think. I can look into adding them one by one, but want to stat with the important ones
GLlgGL commented 2026-01-19 16:01:52 +00:00 (Migrated from github.com)

voe and vidmoly

https://github.com/webstreamr/webstreamr/issues/652

but we need for all which include subtitles

voe and vidmoly https://github.com/webstreamr/webstreamr/issues/652 but we need for all which include subtitles
webstreamr commented 2026-01-20 08:54:53 +00:00 (Migrated from github.com)

you added subtitle examples to the other ticket, yeah, but if you stumble over examples again please add an embed example if you can. I just tried briefly yesterday we 2 voe ones and they didn't have subtitles. and obviously I'm too lazy to search forever :D

you added subtitle examples to the other ticket, yeah, but if you stumble over examples again please add an embed example if you can. I just tried briefly yesterday we 2 voe ones and they didn't have subtitles. and obviously I'm too lazy to search forever :D
GLlgGL commented 2026-01-20 09:33:03 +00:00 (Migrated from github.com)

Sure.

Both are sq(Albanian language subtitles)

Embed Voe
https://lauradaydo.com/e/ulboixw1h5am

Subtitle Voe
https://lauradaydo.com/vtt/ulboixw1h5am_sq.srt

Embed Vidmoly
https://vidmoly.net/embed-a3g0r5g2awqn.html

Subs Vidmoly
https://srt.vidmoly.me/srt/02170/a3g0r5g2awqn_English.vtt

Sure. Both are sq(Albanian language subtitles) Embed Voe `https://lauradaydo.com/e/ulboixw1h5am` Subtitle Voe `https://lauradaydo.com/vtt/ulboixw1h5am_sq.srt` Embed Vidmoly `https://vidmoly.net/embed-a3g0r5g2awqn.html` Subs Vidmoly `https://srt.vidmoly.me/srt/02170/a3g0r5g2awqn_English.vtt`
GLlgGL commented 2026-01-21 10:08:37 +00:00 (Migrated from github.com)

For voe the srt file can be found on the final part after decoding where the final hls link lives...

So two things needed

  1. Update the voe extractor to decode the json and reach the final part where the hls final link lives
  2. Return the subtitles to be playable to stremio
Image
For voe the srt file can be found on the final part after decoding where the final hls link lives... So two things needed 1. Update the voe extractor to decode the json and reach the final part where the hls final link lives 2. Return the subtitles to be playable to stremio <img width="3028" height="1264" alt="Image" src="https://github.com/user-attachments/assets/7b659aba-cfa3-4741-83b3-fc8209ceeb39" />
GLlgGL commented 2026-01-21 10:52:40 +00:00 (Migrated from github.com)

I was able to make it work and return the subtitles to stremio so just dont lose your time with it...

I will do a PR for VOE so you can look and if interested you can do your edits and merge

I was able to make it work and return the subtitles to stremio so just dont lose your time with it... I will do a PR for VOE so you can look and if interested you can do your edits and merge
GLlgGL commented 2026-01-21 11:20:34 +00:00 (Migrated from github.com)

I will do atry with vidmoly as I already have it intagrated as extractor on my copy of your addon but the vidmoly is a bit tricky as it doesnt allow multiple requests(it shows a captcha window if detectes that)...

I will do atry with vidmoly as I already have it intagrated as extractor on my copy of your addon but the vidmoly is a bit tricky as it doesnt allow multiple requests(it shows a captcha window if detectes that)...
GLlgGL commented 2026-01-21 13:37:41 +00:00 (Migrated from github.com)

I was able to indentify also the subtitles link on the vidmoly

Image
I was able to indentify also the subtitles link on the vidmoly <img width="1778" height="272" alt="Image" src="https://github.com/user-attachments/assets/8799cd7b-3cd0-4ee5-b189-8bd04823a39d" />
GLlgGL commented 2026-01-21 13:53:06 +00:00 (Migrated from github.com)

Do you know if stremio plays .vtt files? Because on voe which had .srt is working but on vidmoly with .vtt something is wrong and the subtitles doesnt load

Do you know if stremio plays .vtt files? Because on voe which had .srt is working but on vidmoly with .vtt something is wrong and the subtitles doesnt load
GLlgGL commented 2026-01-21 14:07:44 +00:00 (Migrated from github.com)

Nevermind I was able to fix it.

Do you need my help with any other extractor which you need subtitles? And of course you have an embed link for it.

If not than we can close this for now.

Nevermind I was able to fix it. Do you need my help with any other extractor which you need subtitles? And of course you have an embed link for it. If not than we can close this for now.
webstreamr commented 2026-01-21 14:11:52 +00:00 (Migrated from github.com)

let's keep it open, I want to go through extractors one by one and add subtitle export where it's possible/needed.

I tried kinoger 2 days ago and also wasn't able to make vtt work. but I didn't look much closer yet. I think they should work.

let's keep it open, I want to go through extractors one by one and add subtitle export where it's possible/needed. I tried kinoger 2 days ago and also wasn't able to make vtt work. but I didn't look much closer yet. I think they _should_ work.
GLlgGL commented 2026-01-21 14:20:38 +00:00 (Migrated from github.com)

Post embed here which has subtitles included

I made it work with vidmoly...They should work but we need to check if the link needs referer(headers or something).

Incase of vidmoly

I changed from this(not working) srt.vidmoly.me to vidmoly.net and worked.

Post embed here which has subtitles included I made it work with vidmoly...They should work but we need to check if the link needs referer(headers or something). Incase of vidmoly I changed from this(not working) srt.vidmoly.me to vidmoly.net and worked.
GLlgGL commented 2026-01-22 09:53:33 +00:00 (Migrated from github.com)

Can you do a test with my code for voe subtitles

For me this works
https://lauradaydo.com/e/ezihzkn6hiox

This doesnt
https://lauradaydo.com/e/wjebgnhvl1fa

Image

Using same code to debug shows the subtitles for both.

I am investigating why doesnt load for the second one...They doesnt load even if I do fallback by building the subtitles link manually with ID+language like wjebgnhvl1fa_sq.srt

Can you do a test with my code for voe subtitles For me this works `https://lauradaydo.com/e/ezihzkn6hiox` This doesnt `https://lauradaydo.com/e/wjebgnhvl1fa` <img width="2314" height="452" alt="Image" src="https://github.com/user-attachments/assets/ebfe65b5-82f2-4a0f-a2eb-8d8fba661cfd" /> Using same code to debug shows the subtitles for both. I am investigating why doesnt load for the second one...They doesnt load even if I do fallback by building the subtitles link manually with ID+language like `wjebgnhvl1fa_sq.srt`
GLlgGL commented 2026-01-22 11:32:21 +00:00 (Migrated from github.com)

I think is a cache thing or something because using new embeds which i didnt opened before they all work and show subtitles for voe and vidmoly .srt and .vtt...So code is correct

On the old embeds they dont show both for voe and vidomoly...is not that it doesnt work for voe but works for vidmoly...This means it might be a cache thingy...Anyway do your tests and let me know.

ps...I dont think is a cache problem...

The strange thing is that when the subtitles dont work, dont work for both of them, when they work, work for both...

This is very strange...

Maybe a formating issue inside subtitles which makes stremio dont load them?

Definitly a formating issue as observed also by Gemeni AI. Also from my observation because when they dont work they dont work on both vidmoly and voe together.

So the code I PR is working good. We just need to find out what is the formating issue .

In loading the subtitles in the vlc works though so it might be only a stremio issue

I think is a cache thing or something because using new embeds which i didnt opened before they all work and show subtitles for voe and vidmoly .srt and .vtt...So code is correct On the old embeds they dont show both for voe and vidomoly...is not that it doesnt work for voe but works for vidmoly...This means it might be a cache thingy...Anyway do your tests and let me know. ps...I dont think is a cache problem... The strange thing is that when the subtitles dont work, dont work for both of them, when they work, work for both... This is very strange... **Maybe a formating issue inside subtitles which makes stremio dont load them?** Definitly a formating issue as observed also by Gemeni AI. Also from my observation because when they dont work they dont work on both vidmoly and voe together. So the code I PR is working good. We just need to find out what is the formating issue . In loading the subtitles in the vlc works though so it might be only a stremio issue
webstreamr commented 2026-01-22 12:22:49 +00:00 (Migrated from github.com)

jfy if you do local development I suggest to configure CACHE_DIR=/dev/null and NODE_ENV=dev to rule out and avoid cache issues

jfy if you do local development I suggest to configure `CACHE_DIR=/dev/null` and `NODE_ENV=dev` to rule out and avoid cache issues
GLlgGL commented 2026-01-22 12:41:44 +00:00 (Migrated from github.com)

Yeah I should do that of course...Anyway its not a cache problem. I am also testing on a old version where you had that disable cache button.

The problem is the subtitle format inside.

And stremio might be strict about it and doesnt load them.

So this is not a thing we can fix. Maybe I will open an issue on stremio git about it and their devs might fix why one of them doesnt load.

image

Yeah I should do that of course...Anyway its not a cache problem. I am also testing on a old version where you had that disable cache button. The problem is the subtitle format inside. And stremio might be strict about it and doesnt load them. So this is not a thing we can fix. Maybe I will open an issue on stremio git about it and their devs might fix why one of them doesnt load. ![image](https://github.com/user-attachments/assets/331d13a5-e08f-43ef-8405-42f621d66733)
GLlgGL commented 2026-01-22 13:17:09 +00:00 (Migrated from github.com)

Anyway checking them inside doesn't seem to have any difference for me...

This is very strange...

Anyway checking them inside doesn't seem to have any difference for me... This is very strange...
GLlgGL commented 2026-01-22 13:26:49 +00:00 (Migrated from github.com)

I found what is the problem.

So its a format problem not a code or stremio problem(vlc and some other players are less restrictive and plays them and maybe stremio doesnt)

Image

Opened an issue on stremio for them to check

https://github.com/Stremio/stremio-bugs/issues/2161

I found what is the problem. So its a format problem not a code or stremio problem(vlc and some other players are less restrictive and plays them and maybe stremio doesnt) <img width="890" height="492" alt="Image" src="https://github.com/user-attachments/assets/6c27f5f7-b828-429b-a5e6-63166848f785" /> Opened an issue on stremio for them to check https://github.com/Stremio/stremio-bugs/issues/2161
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/webstreamr-github#156
No description provided.