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

Add feature to remember video history with last viewed playlist when enabled #3006

Merged

Conversation

PikachuEXE
Copy link
Collaborator

@PikachuEXE PikachuEXE commented Dec 27, 2022

Add feature to remember video history with last viewed playlist when enabled

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

N/A

Description

This is a feature I want XD
I constantly listen to specific playlists and it's quite annoying to sometimes having to close the app
And after app restart I go back to history but unable to continue my playback progress with the last viewed playlist
So I write this feature for myself :D
There is a new option too which can be disabled (but enabled by default)

The playlist would only be applied when visited via history
If video viewed via URL pasted (with/without playlist) or non-history list it should not restore last viewed playlist

Screenshots

Settings
image

Testing

Disabled

Should be old behaviour

Enabled

  • Find a video (without playlist) to view, go to history, view that same video, no playlist restored
  • Find a video (with playlist PL-A) to view, go to history, view that same video, PL-A restored
    • Then close and restart the app, go to history, view that same video, PL-A restored
    • Then view the same video with different playlist (PL-B), go to history, view that same video, PL-B restored
    • Then view the same video with no playlist, go to history, view that same video, no playlist restored
  • Find a video (with playlist PL-A) to view, go to channel, view that same video, no playlist restored

If you need actual videos & playlists provided as test cases let me know

Desktop

  • OS: MacOS
  • OS Version: 12.6.2
  • FreeTube version: 7504677

Additional context

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 27, 2022
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: WIP and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Dec 27, 2022
@PikachuEXE PikachuEXE force-pushed the feature/history-remember-list branch from ebaf79a to ec06ff6 Compare December 28, 2022 04:35
@PikachuEXE PikachuEXE marked this pull request as ready for review December 28, 2022 04:35
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 28, 2022 04:35
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: WIP labels Dec 28, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2023

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jan 1, 2023
@PikachuEXE PikachuEXE force-pushed the feature/history-remember-list branch from ec06ff6 to 6a2de24 Compare January 2, 2023 02:11
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2023

Conflicts have been resolved. A maintainer will review the pull request shortly.

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 2, 2023
@PikachuEXE PikachuEXE marked this pull request as draft January 3, 2023 05:28
auto-merge was automatically disabled January 3, 2023 05:28

Pull request was converted to draft

@PikachuEXE PikachuEXE added PR: WIP and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jan 3, 2023
@PikachuEXE PikachuEXE force-pushed the feature/history-remember-list branch from 6a2de24 to e887729 Compare January 3, 2023 06:06
@PikachuEXE PikachuEXE added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: WIP labels Jan 3, 2023
@PikachuEXE
Copy link
Collaborator Author

Fixed & tested case for

  • Find a video (with playlist PL-A) to view, go to history, view that same video, PL-A restored
    • Then close and restart the app, go to history, view that same video, PL-A restored

@efb4f5ff-1298-471a-8973-3d47447115dc

I see that u changed the label from wip to waiting for review but the PR is still a draft. Did u forget to undraft it?

@PikachuEXE PikachuEXE marked this pull request as ready for review January 5, 2023 01:21
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 5, 2023 01:22
@PikachuEXE
Copy link
Collaborator Author

@efb4f5ff-1298-471a-8973-3d47447115dc Forgot!
image

@github-actions
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ChunkyProgrammer ChunkyProgrammer added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 12, 2023
@github-actions github-actions bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jan 15, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@PikachuEXE
Copy link
Collaborator Author

Gonna rebase this after #3066
Don't wanna rebase so many times -,-...

image

@github-actions
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 16, 2023
Copy link
Member

@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.

Did some basic testing and it worked. Hopefully someone else that uses the history functionality can do some more in-depth testing.

@PikachuEXE
Copy link
Collaborator Author

@ChunkyProgrammer @efb4f5ff-1298-471a-8973-3d47447115dc
This PR needs you!
image

@PikachuEXE
Copy link
Collaborator Author

Copy link
Member

Choose a reason for hiding this comment

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

Omg sorry for the delay!😢

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.

5 participants