ytdl-sub: init at 2024.10.26 (#351514)

This commit is contained in:
Aleksana 2024-10-27 21:41:21 +08:00 committed by GitHub
commit ab4b02958e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 56 additions and 0 deletions

View File

@ -12411,6 +12411,13 @@
githubId = 169170;
name = "Mathias Schreck";
};
loc = {
matrix = "@loc:locrealloc.de";
github = "LoCrealloc";
githubId = 64095253;
name = "LoC";
keys = [ { fingerprint = "DCCE F73B 209A 6024 CAE7 F926 5563 EB4A 8634 4F15"; } ];
};
locallycompact = {
email = "dan.firth@homotopic.tech";
github = "locallycompact";

View File

@ -0,0 +1,49 @@
{
python3Packages,
fetchPypi,
ffmpeg,
lib,
}:
python3Packages.buildPythonApplication rec {
pname = "ytdl-sub";
version = "2024.10.26";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "ytdl_sub";
hash = "sha256-qfEPHhCB/Avl+nUIk2+ZVseg8ATP/LQmLvX/H9rhp7M=";
};
build-system = with python3Packages; [
setuptools
wheel
];
dependencies = with python3Packages; [
yt-dlp
colorama
mergedeep
mediafile
pyyaml
];
makeWrapperArgs = [
"--set YTDL_SUB_FFMPEG_PATH ${lib.getExe' ffmpeg "ffmpeg"}"
"--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}"
];
meta = {
homepage = "https://github.com/jmbannon/ytdl-sub";
description = "Lightweight tool to automate downloading and metadata generation with yt-dlp";
longDescription = ''
ytdl-sub is a command-line tool that downloads media via yt-dlp and prepares it for your favorite media player, including Kodi, Jellyfin, Plex, Emby, and modern music players. No additional plugins or external scrapers are needed.
'';
changelog = "https://github.com/jmbannon/ytdl-sub/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
loc
];
mainProgram = "ytdl-sub";
};
}