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

Could you add the feature to use an external database server? #176

Open
masukatto0281 opened this issue Aug 16, 2024 · 2 comments
Open

Could you add the feature to use an external database server? #176

masukatto0281 opened this issue Aug 16, 2024 · 2 comments

Comments

@masukatto0281
Copy link

Hello,
I found this great Web UI when managing my downloaded videos on yt-dlp.

One thing I am concerned about is the use of a local database (SQLite).
If this could use an external RDB server (e.g., PostgreSQL), it would be more resistant to data loss, etc., and more usable.

I am not too familiar with Golang, although I think just need to change one line here.

db, err := sql.Open("sqlite", cfg.DBPath)

As long as Connection settings, etc., I can be configurable in the config file (even if not in the UI).

Thank you.

@masukatto0281
Copy link
Author

Oops, I was mistaken.
The database was not used to manage the history of downloaded videos, only the templates, right?

I thought I could see the list of downloaded videos in the web UI. If not, the database seems to be fine with the traditional SQLite.

@marcopeocchi
Copy link
Owner

You're right @masukatto0281 the sqlite database is only for templates.

Downloads' statuses are periodically serialized to a file.
The file is used only for download-resuming purposes.

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

No branches or pull requests

2 participants