summaryrefslogtreecommitdiff
path: root/ar/.local/bin/ylog
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-06 17:15:19 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-06 17:15:19 +0900
commit24abae8d7d52072d6f33298cd59e5c720a51f38f (patch)
tree69f09cb1563d95becd98d0924fbc737521d3aa20 /ar/.local/bin/ylog
parent324bc895a7a0aeb2c2b84469e4816e391018f74c (diff)
modified shell/aliasrc, modified bin/ylog
Diffstat (limited to 'ar/.local/bin/ylog')
-rwxr-xr-xar/.local/bin/ylog21
1 files changed, 20 insertions, 1 deletions
diff --git a/ar/.local/bin/ylog b/ar/.local/bin/ylog
index 8ea8808..89f4715 100755
--- a/ar/.local/bin/ylog
+++ b/ar/.local/bin/ylog
@@ -28,13 +28,14 @@ Options:
us : recordings.us.log + recordings.access.log (and diary.us.log when -s diary)
-s SCOPE Select log scope (default: all)
- all : recordings + access + hidden + diary + peertube
+ all : recordings + access + hidden + diary + peertube + videos
access : access.* logs only
diary : diary.* logs only
hidden : hidden.access.* logs only
media : media.access.* logs only
peertube : peertube.* logs only
recordings : recordings.* logs only
+ videos : videos.* logs only
-n Disable Firefox exclusion (by default, Firefox lines are excluded)
@@ -58,6 +59,7 @@ Examples:
ylog -s media # Media logs only, last 10 lines each
ylog -s peertube # Peertube logs only, last 10 lines each
ylog -s recordings # Recordings logs only, last 10 lines each
+ ylog -s videos # Videos logs only, last 10 lines each
ylog -c kr -t 1.2.3.4 # Search specific IP in Korean logs
ylog -c kr -s diary # Korean diary logs only
ylog -t all -l 50 # All logs, last 50 lines each
@@ -178,6 +180,23 @@ pick_files() {
;;
esac
fi
+ # videos logs: similar structure to recordings
+ if [ "$SCOPE" = "videos" ] || [ "$SCOPE" = "all" ]; then
+ if [ "$COUNTRY" = "all" ]; then
+ for q in "$LOG_DIR/videos.access.log" "$LOG_DIR/videos.access.log".*; do
+ [ -e "$q" ] && printf "%s\n" "$q"
+ done
+ fi
+ case "$COUNTRY" in
+ kr) for q in "$LOG_DIR/videos.kr.log" "$LOG_DIR/videos.kr.log".*; do [ -e "$q" ] && printf "%s\n" "$q"; done ;;
+ us) for q in "$LOG_DIR/videos.us.log" "$LOG_DIR/videos.us.log".*; do [ -e "$q" ] && printf "%s\n" "$q"; done ;;
+ all)
+ for p in videos.kr.log videos.us.log; do
+ for q in "$LOG_DIR/$p" "$LOG_DIR/$p".*; do [ -e "$q" ] && printf "%s\n" "$q"; done
+ done
+ ;;
+ esac
+ fi
}
# build exclude regex