Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
main_list_file="$1"
base_dir="$2"
cd $base_dir
while :
do
dir=`shuf $main_list_file | head -1`
echo 'dir: ' "$dir"
@zwh8800
zwh8800 / bilibili-feed.sh
Last active June 26, 2021 14:33
将nas中的b站热门视频推成m3u8流,支持竖屏加边框,内嵌弹幕,内嵌av号,内嵌播放进度
#!/bin/bash
dir="/_ds3617xs/bilibili"
file_list=`find $dir -name "*.flv" | shuf | head -n 30`
list_file="$dir/live$1.list"
echo > $list_file
ass_file_list=""
for file in $file_list; do
@zwh8800
zwh8800 / live.sh
Last active February 22, 2020 11:11
#!/bin/bash
main_list_file="$1"
base_dir="$2"
lock_file="$base_dir/live.lock"
cd $base_dir
dir=''
function onExit() {
#!/bin/bash
base_dir="/_ds3617xs/bilibili/"
cd $base_dir
youget="/usr/local/bin/you-get"
rank_list=`curl -s $1 -L -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' | egrep 'https://www\.bilibili\.com/video/av[0-9]*' -o | shuf`
for b in $rank_list; do
@zwh8800
zwh8800 / README.md
Last active February 12, 2020 14:45
转换b站弹幕为ass字幕-quickjs/nodejs版

转换b站弹幕为ass字幕-quickjs/nodejs版

使用方法

nodejs 版

下载 bili-conv.js 到本地,需安装依赖xml2js

npm i xml2js
@zwh8800
zwh8800 / bj-unicom-iptv.m3u
Last active May 8, 2024 10:35 — forked from sdhzdmzzl/bj-unicom-iptv.m3u
北京联通iptv列表
#EXTM3U name="bj-unicom-iptv"
#EXTINF:-1,CCTV1
rtp://239.3.1.1:8000
#EXTINF:-1,CCTV2
rtp://239.3.1.2:8004
#EXTINF:-1,CCTV4
rtp://239.3.1.4:8216
#EXTINF:-1,CCTV7
rtp://239.3.1.7:8024
#EXTINF:-1,CCTV9