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

Added functionality to export a single playlist #5779

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

Zeabyte
Copy link

@Zeabyte Zeabyte commented Oct 1, 2024

Single Playlist Export

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

related to #5366

Description

This PR adds a button "Export Playlist" to the playlist-info component, that when clicked exports a single playlist with the file name "freetube-playlist-{playlistName}-{date}.db".

Screenshots

After:
image

Testing

I have tested this and found no problems. However, the UX is not perfect because this is only exporting. Importing currently requires going to data settings and there is no "Do you wish to overwrite the playlist" or "... add the videos to the local playlist" with the same name.

Desktop

  • OS: Fedora Workstation
  • OS Version: 40
  • FreeTube version: latest from development

Additional context

One could further abstract the way files are saved to disk. I have copied it from data-settings.js.
I have reused the locale token Settings.Data Settings.Unable to write file.

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 1, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 1, 2024 16:35
Co-authored-by: PikachuEXE <git@pikachuexe.net>
auto-merge was automatically disabled October 2, 2024 07:30

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 2, 2024 07:31
auto-merge was automatically disabled October 2, 2024 07:33

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 2, 2024 07:33
auto-merge was automatically disabled October 2, 2024 07:36

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 2, 2024 07:36
auto-merge was automatically disabled October 2, 2024 07:39

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 2, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: waiting for review For PRs that are complete, tested, and ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants