dodanie jellyfin
This commit is contained in:
1 parent
6644a6aff7
commit
d0986a97f3
7 files changed
+12
-7
No files matched your search
@@ -142,7 +142,6 @@ _: {
|
||||
}
|
||||
|
||||
ffmpeg_dl() {
|
||||
# Sprawdzenie liczby argumentów
|
||||
if [ "$#" -ne 3 ]; then
|
||||
echo "Usage: ffmpeg_dl <url> <name> <fs_path>"
|
||||
return 1
|
||||
@@ -152,13 +151,10 @@ _: {
|
||||
local name="$2"
|
||||
local fs_path="$3"
|
||||
|
||||
# Tworzy katalog docelowy, jeśli nie istnieje
|
||||
mkdir -p "$fs_path"
|
||||
|
||||
# Pełna ścieżka do pliku wyjściowego
|
||||
local output="${"$"}{fs_path}/${"$"}{name}.mp4"
|
||||
|
||||
# Uruchamia ffmpeg – kopiowanie strumienia bez rekompresji
|
||||
ffmpeg -i "$url" -c copy "$output"
|
||||
}
|
||||
'';
|
||||
|
||||
Reference in new issue
Block a user