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

Obtain stream length as a Duration #1106

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Isira-Seneviratne
Copy link
Member

@Isira-Seneviratne Isira-Seneviratne commented Sep 18, 2023

Extract stream lengths as Duration values. Duration provides convenience methods for converting to/from different time units, e.g. seconds, hours, etc.

Note: Previously, the existing methods' types were updated to Duration, which would have required changes in existing uses. To maintain compatibility, this PR has been updated to retain the existing methods and update them to call the new methods.


  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

@TobiGr TobiGr added the codequality Improvements to the codebase to improve the code quality label Sep 18, 2023
Copy link
Collaborator

@XiangRongLin XiangRongLin left a comment

Choose a reason for hiding this comment

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

I don't know what the policy around breaking changes is anymore, otherwise it looks fine. But it should be at least mentioned that its a breaking change in the PR itself

@Isira-Seneviratne
Copy link
Member Author

I made some changes, this should no longer break existing uses of the methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants