diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-26 16:54:47 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-26 16:54:47 +0200 |
| commit | 337a0ec8a55692f44031b00391a48a7b4b8c71b6 (patch) | |
| tree | 00268fe1bf2a5b167c94f77462808a557b64a91b /src | |
| parent | no need to ship completions anymore! (diff) | |
| download | rsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.tar.gz rsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.zip | |
add licensing
Diffstat (limited to '')
| -rw-r--r-- | src/audio.rs | 7 | ||||
| -rw-r--r-- | src/cli.rs | 7 | ||||
| -rw-r--r-- | src/config.rs | 7 | ||||
| -rw-r--r-- | src/daemon.rs | 7 | ||||
| -rw-r--r-- | src/database.rs | 9 | ||||
| -rw-r--r-- | src/lib.rs | 7 | ||||
| -rw-r--r-- | src/main.rs | 7 | ||||
| -rw-r--r-- | src/notification.rs | 7 | ||||
| -rw-r--r-- | src/playback.rs | 7 | ||||
| -rw-r--r-- | src/queue.rs | 7 | ||||
| -rw-r--r-- | src/scrobbler.rs | 7 |
11 files changed, 78 insertions, 1 deletions
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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use crate::notification; | 8 | use crate::notification; |
| 2 | use std::path::PathBuf; | 9 | use std::path::PathBuf; |
| 3 | use std::sync::atomic::{AtomicBool, Ordering}; | 10 | use std::sync::atomic::{AtomicBool, Ordering}; |
| @@ -1,3 +1,10 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use crate::config::Config; | 8 | use crate::config::Config; |
| 2 | use crate::database::Database; | 9 | use crate::database::Database; |
| 3 | use clap::{Command, CommandFactory, Parser, Subcommand}; | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use directories::ProjectDirs; | 8 | use directories::ProjectDirs; |
| 2 | use serde::{Deserialize, Serialize}; | 9 | use serde::{Deserialize, Serialize}; |
| 3 | use std::fs; | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use crate::audio::AudioEngine; | 8 | use crate::audio::AudioEngine; |
| 2 | use crate::config::Config; | 9 | use crate::config::Config; |
| 3 | use crate::notification; | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use directories::ProjectDirs; | 8 | use directories::ProjectDirs; |
| 2 | use rusqlite::{Connection, Result as SqlResult}; | 9 | use rusqlite::{Connection, Result as SqlResult}; |
| 3 | use std::fs; | 10 | use std::fs; |
| @@ -43,7 +50,7 @@ impl Database { | |||
| 43 | rusqlite::Error::InvalidPath("Failed to get project directories".into()) | 50 | rusqlite::Error::InvalidPath("Failed to get project directories".into()) |
| 44 | })?; | 51 | })?; |
| 45 | 52 | ||
| 46 | let data_dir = if let Ok(xdg) = std::env::var("XDG_CONFIG_HOME") { | 53 | let data_dir = if let Ok(xdg) = std::env::var("XDG_DATA_HOME") { |
| 47 | PathBuf::from(xdg).join("rsplayer") | 54 | PathBuf::from(xdg).join("rsplayer") |
| 48 | } else { | 55 | } else { |
| 49 | proj_dirs.data_dir().to_path_buf() | 56 | proj_dirs.data_dir().to_path_buf() |
| @@ -1,3 +1,10 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | #[inline(always)] | 8 | #[inline(always)] |
| 2 | pub fn debug_eprintln(args: core::fmt::Arguments<'_>) { | 9 | pub fn debug_eprintln(args: core::fmt::Arguments<'_>) { |
| 3 | if cfg!(debug_assertions) { | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | mod audio; | 8 | mod audio; |
| 2 | mod cli; | 9 | mod cli; |
| 3 | mod config; | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use crate::queue::Track; | 8 | use crate::queue::Track; |
| 2 | 9 | ||
| 3 | pub fn notify_track(track: &Track, format: Option<&str>) { | 10 | 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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use std::path::PathBuf; | 8 | use std::path::PathBuf; |
| 2 | 9 | ||
| 3 | #[derive(Debug, Clone, PartialEq)] | 10 | #[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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use rand::seq::SliceRandom; | 8 | use rand::seq::SliceRandom; |
| 2 | use std::path::{Path, PathBuf}; | 9 | use std::path::{Path, PathBuf}; |
| 3 | 10 | ||
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 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use md5::{Digest, Md5}; | 8 | use md5::{Digest, Md5}; |
| 2 | use reqwest::blocking::Client; | 9 | use reqwest::blocking::Client; |
| 3 | use std::collections::BTreeMap; | 10 | use std::collections::BTreeMap; |
