From 337a0ec8a55692f44031b00391a48a7b4b8c71b6 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 26 May 2026 16:54:47 +0200 Subject: add licensing --- src/audio.rs | 7 +++++++ src/cli.rs | 7 +++++++ src/config.rs | 7 +++++++ src/daemon.rs | 7 +++++++ src/database.rs | 9 ++++++++- src/lib.rs | 7 +++++++ src/main.rs | 7 +++++++ src/notification.rs | 7 +++++++ src/playback.rs | 7 +++++++ src/queue.rs | 7 +++++++ src/scrobbler.rs | 7 +++++++ 11 files changed, 78 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/audio.rs b/src/audio.rs index 62d13ff..e3d88bc 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use crate::notification; use std::path::PathBuf; use std::sync::atomic::{AtomicBool, Ordering}; diff --git a/src/cli.rs b/src/cli.rs index 4590f57..05cd61f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use crate::config::Config; use crate::database::Database; use clap::{Command, CommandFactory, Parser, Subcommand}; diff --git a/src/config.rs b/src/config.rs index 63b0164..67cb366 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use directories::ProjectDirs; use serde::{Deserialize, Serialize}; use std::fs; diff --git a/src/daemon.rs b/src/daemon.rs index 48330ae..63510ea 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use crate::audio::AudioEngine; use crate::config::Config; use crate::notification; diff --git a/src/database.rs b/src/database.rs index b7b8e88..cd839b1 100644 --- a/src/database.rs +++ b/src/database.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use directories::ProjectDirs; use rusqlite::{Connection, Result as SqlResult}; use std::fs; @@ -43,7 +50,7 @@ impl Database { rusqlite::Error::InvalidPath("Failed to get project directories".into()) })?; - let data_dir = if let Ok(xdg) = std::env::var("XDG_CONFIG_HOME") { + let data_dir = if let Ok(xdg) = std::env::var("XDG_DATA_HOME") { PathBuf::from(xdg).join("rsplayer") } else { proj_dirs.data_dir().to_path_buf() diff --git a/src/lib.rs b/src/lib.rs index 4cdbb9b..cc1f70a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + #[inline(always)] pub fn debug_eprintln(args: core::fmt::Arguments<'_>) { if cfg!(debug_assertions) { diff --git a/src/main.rs b/src/main.rs index fe450dd..d472b2d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + mod audio; mod cli; mod config; diff --git a/src/notification.rs b/src/notification.rs index 2c8d80f..b2d2b56 100644 --- a/src/notification.rs +++ b/src/notification.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use crate::queue::Track; pub fn notify_track(track: &Track, format: Option<&str>) { diff --git a/src/playback.rs b/src/playback.rs index f16bf8f..1db91c5 100644 --- a/src/playback.rs +++ b/src/playback.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use std::path::PathBuf; #[derive(Debug, Clone, PartialEq)] diff --git a/src/queue.rs b/src/queue.rs index 9d09fec..fc30c86 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use rand::seq::SliceRandom; use std::path::{Path, PathBuf}; diff --git a/src/scrobbler.rs b/src/scrobbler.rs index 93cb3c2..e133669 100644 --- a/src/scrobbler.rs +++ b/src/scrobbler.rs @@ -1,3 +1,10 @@ +/* + * This file is a part of RSPlayer + * Licensed under the GPL-3.0 License + * Copyright (C) 2026 Salmonik @ salmonik@tuta.io + * https://codeberg.org/salmonik/RSPlayer +*/ + use md5::{Digest, Md5}; use reqwest::blocking::Client; use std::collections::BTreeMap; -- cgit v1.2.3