update readme and change setsid to nohup

change setsid to nohup for mac compatibility on ani-cli
This commit is contained in:
ksyasuda
2021-11-20 13:50:12 -08:00
parent 737d066ced
commit c72b3fdece
2 changed files with 31 additions and 12 deletions

View File

@@ -492,7 +492,8 @@ open_episode() {
# s/^${selection_id}\t[0-9]+/${selection_id}\t$((episode + 1))/
# " "$logfile" >"${logfile}.new" && mv "${logfile}.new" "$logfile"
setsid -f $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1
# setsid -f $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1
nohup $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1 &
else
printf "Downloading episode $episode ...\n"
printf "%s\n" "$video_url"