emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: watch YT videos through in Emacs [Was: Interest in an Org video meet


From: Ihor Radchenko
Subject: Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]
Date: Wed, 12 Oct 2022 19:52:41 +0800

Max Nikulin <manikulin@gmail.com> writes:

> On 12/10/2022 16:26, Ihor Radchenko wrote:
>> 
>> if echo "$URL" | grep "ted.com/talks"; then
>>      mpv $URL && exit;
>> fi
>> 
>> # if echo "$URL" | grep "reddit.com"; then
>> #     URL="$(echo "$URL" | sed -rE 's/www\.reddit\.com/libredd.it/')"
>> # fi
>> 
>> if echo "$URL" | grep "bilibili.com"; then
>>      mpv $URL && exit;
>> fi
>
> case "$URL" in
> *ted.com/talks*|*bilibili.com*)
>          mpv "$URL" && exit
>          ;;
> esac

Thanks! I keep forgetting how to use case :)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]