1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 11:51:50 +08:00
This commit is contained in:
juan 2021-10-31 10:33:28 +08:00
parent c480abbb9d
commit be7c37a639
2 changed files with 8 additions and 9 deletions

View File

@ -173,10 +173,10 @@ function autosub_allowed()
if not bools.auto then
mp.msg.warn('Automatic downloading disabled!')
return false
-- elseif duration < 900 then
-- mp.msg.warn('Video is less than 15 minutes\n' ..
-- '=> NOT auto-downloading subtitles')
-- return false
elseif duration < 900 then
mp.msg.warn('Video is less than 15 minutes\n' ..
'=> NOT auto-downloading subtitles')
return false
elseif directory:find('^http') then
mp.msg.warn('Automatic subtitle downloading is disabled for web streaming')
return false

9
.zshrc
View File

@ -1,8 +1,7 @@
echo '\033[0;36m _ '
echo '\033[0;36m (_)_ _____ ____ '
echo '\033[0;36m / / // / _ `/ _ \'
echo '\033[0;36m __/ /\_,_/\_,_/_//_/'
echo '\033[0;36m|___/ '
echo '\033[0;36m _ ___ ___ _ '
echo '\033[0;36m| | | \ \ /\ / / | | |'
echo '\033[0;36m| |_| |\ V V /| |_| |'
echo '\033[0;36m \__,_| \_/\_/ \__,_|'
echo
echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' < /etc/os-release )
echo '\033[0;34m @ '$HOST