File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22
3- LOBSTER_VERSION=" 4.5.8 "
3+ LOBSTER_VERSION=" 4.5.9 "
44
55# ## General Variables ###
66config_file=" $HOME /.config/lobster/lobster_config.sh"
605605
606606 final_url=" ${API_URL} /?url=${embed_link} &payload=${payload} &signature=${signature} &nonce=${nonce} "
607607 json_data=$( curl -s " ${final_url} " )
608-
609- case " $json_data " in
610- * " error" * )
611- api_error_msg=$( printf " %s" " $json_data " | $sed -n ' s/.*"error":"\([^"]*\)".*/\1/p' )
612- send_notification " API Error: $api_error_msg "
613- return 1
614- ;;
615- * ) ;;
616- esac
617-
618608 video_link=$( printf " %s" " $json_data " | $sed -nE " s_.*\" file\" :\" ([^\" ]*\.m3u8)\" .*_\1_p" | head -1)
619609
620610 [ -n " $quality " ] && video_link=$( printf " %s" " $video_link " | sed -e " s|/playlist.m3u8|/$quality /index.m3u8|" )
You can’t perform that action at this time.
0 commit comments