From f65cbb3a37a3b13359e6ad03f3b8827f838927e1 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Tue, 15 Mar 2022 21:25:52 -0400 Subject: [PATCH] Add connection parameters to database URL (#575) --- CHANGELOG.md | 1 + src/utils/create-database-url.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0a578b..bd97432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Fixed - The duration of live YouTube streams is now correctly formatted again +- Queueing massive YouTube playlists (4000+ tracks) now works ## [1.6.0] - 2022-03-13 ### Changed diff --git a/src/utils/create-database-url.ts b/src/utils/create-database-url.ts index d17789b..7647903 100644 --- a/src/utils/create-database-url.ts +++ b/src/utils/create-database-url.ts @@ -3,7 +3,7 @@ import {join} from 'path'; export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite'); const createDatabaseUrl = (directory: string) => { - const url = `file:${createDatabasePath(directory)}`; + const url = `file:${createDatabasePath(directory)}?socket_timeout=10&connection_limit=1`; if (process.platform === 'win32') { return url.replaceAll(/\\/g, '\\\\');