(feat): added global video/audio file format selection settings and other minor improvements

This commit is contained in:
2025-07-10 23:31:40 +05:30
parent 9f423e717a
commit 7f79fc8761
6 changed files with 131 additions and 11 deletions

View File

@@ -12,5 +12,8 @@ export interface Settings {
prefer_video_over_playlist: boolean;
use_proxy: boolean;
proxy_url: string;
video_format: string;
audio_format: string;
// extension settings
websocket_port: number;
}

View File

@@ -58,6 +58,8 @@ export interface DownloadActionStatesStore {
export interface SettingsPageStatesStore {
activeTab: string;
activeSubAppTab: string;
activeSubExtTab: string;
appVersion: string | null;
isFetchingAppVersion: boolean;
ytDlpVersion: string | null;
@@ -72,6 +74,8 @@ export interface SettingsPageStatesStore {
isUpdatingApp: boolean;
appUpdateDownloadProgress: number;
setActiveTab: (tab: string) => void;
setActiveSubAppTab: (tab: string) => void;
setActiveSubExtTab: (tab: string) => void;
setAppVersion: (version: string | null) => void;
setIsFetchingAppVersion: (isFetching: boolean) => void;
setYtDlpVersion: (version: string | null) => void;