Skip to content

Commit

Permalink
ctbcap: fetch_m3u() should not effect the file system
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Jan 4, 2025
1 parent 117c122 commit 6f21cc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ctbcap
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ edging() {
# If chatroom is changed to new name, return 2.
# If can't find chatroom at all, return 3.
fetch_m3u() {

rm -f "${LOG_PATH}/${MODEL}-${PLATFORM}.online"
unset STREAM_LINK_GENERIC STREAM_LINK

[ -n "${LINK_NEW_NAME}" ] && local CONNECT_DUMP="$(utils connect_dump "${LINK_NEW_NAME}")"
Expand Down Expand Up @@ -474,6 +472,7 @@ grab_stream() {

watchdog() {
while true; do
rm -f "${LOG_PATH}/${MODEL}-${PLATFORM}.online" # Init online flag file status
fetch_m3u
# See the notes above fetch_m3u() .
case $? in
Expand Down

0 comments on commit 6f21cc8

Please sign in to comment.