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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add watch time update function for VideoInfos classes #874

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Duell10111
Copy link
Contributor

@Duell10111 Duell10111 commented Jan 16, 2025

Seperation of PR: #872

I added a new function to adapt watched time for videos added to the watch list (history).

closes #825

Copy link
Collaborator

@absidue absidue left a comment

Choose a reason for hiding this comment

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

Please move the playedSeconds to the start of the parameter list, so that you don't have to write all the undefineds in VideoInfo.ts. Additionally as most users of these methods will be specifying a value for playedSeconds please make it mandatory and remove the default value.

src/core/mixins/MediaInfo.ts Outdated Show resolved Hide resolved
src/parser/youtube/VideoInfo.ts Outdated Show resolved Hide resolved
src/parser/ytmusic/TrackInfo.ts Outdated Show resolved Hide resolved
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
@Duell10111 Duell10111 requested a review from absidue January 17, 2025 14:57
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
@Duell10111 Duell10111 requested a review from absidue January 22, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to mark a video as completed in the user's history?
2 participants