Skip to content

Commit c42a44e

Browse files
fix: download subtitles only for Luf-Mp4 and m3u8 videos
1 parent c818631 commit c42a44e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ani-cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
version_number="4.10.3"
3+
version_number="4.10.4"
44

55
# UI
66

@@ -282,10 +282,10 @@ update_history() {
282282
}
283283

284284
download() {
285-
# download subtitle if it's set
286-
[ -n "$subtitle" ] && curl -s "$subtitle" -o "$download_dir/$2.vtt"
287285
case $1 in
288286
*m3u8*)
287+
# download subtitle if it's set
288+
[ -n "$subtitle" ] && curl -s "$subtitle" -o "$download_dir/$2.vtt"
289289
if command -v "yt-dlp" >/dev/null; then
290290
yt-dlp --referer "$m3u8_refr" "$1" --no-skip-unavailable-fragments --fragment-retries infinite -N 16 -o "$download_dir/$2.mp4"
291291
else

0 commit comments

Comments
 (0)