FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Feature Request]: Add import/export buttons to Data Settings for the missing databases

Open efb4f5ff-1298-471a-8973-3d47447115dc opened this issue 7 months ago • 2 comments

Guidelines

Problem Description

https://docs.freetubeapp.io/usage/data-location/#notable-files lists 6 database files. We only provide import/export for Subscriptions, Playlists and History. An user might want to import/export the other files.

[!NOTE] Maybe we should also allow to export ~~History and~~ Playlist to prevent being locked in

Proposed Solution

Provide import/export buttons for:

  • [ ] settings.db
  • [x] search-history.db
  • [ ] subscription-cache.db

Alternatives Considered

None.

Issue Labels

ease of use improvement

Additional Information

No response

Importing the settings.db will be problematic if we try to do it in a similar way to our existing imports, as we block writing certain settings from inside a window for security reasons, such as the default download and screenshots folders (we should probably do something similar for the external player settings at some point too).

absidue avatar May 02 '25 21:05 absidue

wonder if it can be unified into single database file for import and export like

{
  "settings" : ...,
  "subscriptions": ...,
  "history": ...
}

while still able to make it individually exported and imported

{
  "settings" : ...,
}
{
  "subscriptions": ...,
}
{
  "history": ...
}

ArthurKun21 avatar May 03 '25 22:05 ArthurKun21