-
-
Notifications
You must be signed in to change notification settings - Fork 52
Download Captions #244
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
Download Captions #244
Conversation
|
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. |
|
I'll review this and the other pr in bit, thx ❤️ |
Inrixia
left a comment
There was a problem hiding this 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"]; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
|
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. |
|
I'm going to close this as its implemented on dev, I cant remember why this wasn't merged |
Will download captions to the same folder as the video when
downloadCaptionsflag 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
videosToSearchhas 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.