Skip to content

Commit 37cc467

Browse files
committed
ctbcap: urgent adaptation of chaturbate updated backend
ugly implementation.
1 parent ba3cf5b commit 37cc467

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ctbcap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,12 @@ fetch_m3u() {
427427
2*|3*)
428428
local ROOM_STATUS="$(echo "${CONNECT_DUMP}" | grep -oE '"room_status":[ ]?"[^"]+"' | head -n 1 | cut -d '"' -f4)"
429429
[ -n "$(echo "${CONNECT_DUMP}" | grep -oE 'http[s]?://edge[^ ]+\.m3u8'| head -n 1)" ] && {
430-
STREAM_URL=$(echo "${CONNECT_DUMP}" | grep -oE 'http[s]?://edge[^ ]+\.m3u8' | head -n 1)
430+
STREAM_URL=$(echo "${CONNECT_DUMP}" \
431+
| grep -oE 'http[s]?://edge[^ ]+\.m3u8' \
432+
| head -n 1 \
433+
| sed 's|playlist.m3u8|playlist_sfm4s.m3u8|g' \
434+
| sed 's|live-hls|live-c-fhls|g'
435+
)
431436
true
432437
} || {
433438
echo "[$(date "+%Y%m%d-%H%M%S")] [${MODEL}] is ${ROOM_STATUS} now. [${CONNECT_STATUS}]"

0 commit comments

Comments
 (0)