Skip to content

Conversation

@arbusam
Copy link
Contributor

@arbusam arbusam commented Jul 15, 2025

Will download captions to the same folder as the video when downloadCaptions flag is enabled.
If they are available when the video is first downloaded they will download with it. Otherwise, it will keep checking if any of the last videosToSearch has any new text tracks added every 5 minutes with the new video fetch.

Builds on #237 for issue #226 but adds a feature flag in settings to disable captions and downloads captions even if they are added after video download.

@arbusam arbusam marked this pull request as draft July 15, 2025 13:18
@arbusam arbusam marked this pull request as ready for review July 15, 2025 13:49
@arbusam
Copy link
Contributor Author

arbusam commented Jul 15, 2025

Sorry if it's a bit of a mess, I tried to combine code that existed on the dev and master branches as well as adding new functionality. Please let me know if I should change anything.

@Inrixia
Copy link
Owner

Inrixia commented Jul 15, 2025

I'll review this and the other pr in bit, thx ❤️

Copy link
Owner

@Inrixia Inrixia left a comment

Choose a reason for hiding this comment

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

Few changes needed but mostly good.

I also intend to have ffmpeg mux subtitles same as it does for the album art and other meta. But that is complex enough to warrent a seperate pr (or I'll handle it later) so don't do that here.

Thanks again for the help

src/lib/Video.ts Outdated
public readonly description: string;
public readonly artworkUrl?: string;
public readonly textTracks?: VideoContent["textTracks"];
private _textTracks?: VideoContent["textTracks"];
Copy link
Owner

Choose a reason for hiding this comment

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

Just make this public, no need for it to be private with a public getter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually doesn't need a public getter since it is only accessed within Video.ts, so I just made it fully private. This is also true for many other properties of Video which I also made private, but please let me know if you want this reversed.

@arbusam
Copy link
Contributor Author

arbusam commented Jul 15, 2025

Thanks for the feedback, everything should now be resolved, I just wanted you to double check that it was ok setting all of the properties of Video that aren't accessed elsewhere to private.

@Inrixia
Copy link
Owner

Inrixia commented Nov 8, 2025

I'm going to close this as its implemented on dev, I cant remember why this wasn't merged

@Inrixia Inrixia closed this Nov 8, 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