From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id aK4EJn2rRmP7UgAAbAwnHQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 12 Oct 2022 13:56:45 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id 6KMrJX2rRmNBowAAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 12 Oct 2022 13:56:45 +0200
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 57446114F2
	for <larch@yhetil.org>; Wed, 12 Oct 2022 13:56:45 +0200 (CEST)
Received: from localhost ([::1]:40246 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1oiaLr-0003Gb-UU
	for larch@yhetil.org; Wed, 12 Oct 2022 07:56:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39786)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@gmail.com>)
 id 1oiaHK-0008LE-L7
 for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 07:52:05 -0400
Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:38755)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <yantar92@gmail.com>)
 id 1oiaHI-0002iv-PE
 for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 07:52:02 -0400
Received: by mail-pl1-x631.google.com with SMTP id c20so6422387plc.5
 for <emacs-orgmode@gnu.org>; Wed, 12 Oct 2022 04:52:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:message-id:date:references:in-reply-to:subject:cc:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=v1jKcEQneor2lal1TQAqU8gf7zTRahErow3khlo0QiU=;
 b=JOQxq5rUOKvzmzoULPJ1RaGXixIn63+H0niaNzk1pmiTxGffabzO0C0b6I4EPv6wtD
 RwbtBNsdw5zS+r0MG/6FGUar2/NAVrLNYQIm6pAjex6kXClFAQHNeqYhcvVnVqJXHAab
 S6GpYi7US189We2axx/zKGIKGHwcJBALybVNv4+Z7/CPa4XSJfCXcvkY1/ScHOUi3LWy
 kuCfoTJji5eyHCPI27ksWG9rqzA7HrkK13PBpBMPpcmncYeT50QrB9rOtje2ULDAELTm
 04P8fPQufmdCwivg6qKnyj5tT5GSajiRgNDGjXTeDIF91bn1IwE5nDzaKn/cstXUzDMj
 MlzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:message-id:date:references:in-reply-to:subject:cc:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=v1jKcEQneor2lal1TQAqU8gf7zTRahErow3khlo0QiU=;
 b=Tyfydm/Ix/BA/mgyLzsdXt17FoudqyAHZtpUWZceEPA++jEKDMYsabAAN6JScgqfZ7
 fStqk7KZsmR/UFqvAb8mPpQHUDtg5ZIl5Y0QSa3bdUijcxHE75qGJSkqytJlj5tGOZ7k
 4Z/rbctbDuq2dIactmRlIjE79gX6DgJ4553gRWYk9D5U7B1TzFyefFaWWdH+bRv+rpPM
 74iwR4o+mVBYz2tIKXW1nkmUZjWxzox5XXOQqiy4yjuriNQ91Z0o+x64e6V+q8qtj92O
 GRCvBTGDPW2QW8VQFS1tbBEZpd5rqQ8nD/04SWQiCWutL89r8WJUlXY64g/qgzxwyUId
 VohA==
X-Gm-Message-State: ACrzQf2cOUJ83M+uZc4tkwyDq/X+JiibGnVE+3uvxKuWNfP+QVQJGeOW
 fBVAPsRe4t0Xe8Y1BF7Nu0hJAJ5i9Zasxl3h2x8fCw==
X-Google-Smtp-Source: AMsMyM44AANRobSCyhoo8RLrRANalfNMzGUL8+WAgYAULnd5G199Q29dFwFz0+dZDUHwb+MMS9OKqQ==
X-Received: by 2002:a17:90b:4c8b:b0:203:5db5:8b71 with SMTP id
 my11-20020a17090b4c8b00b002035db58b71mr4804832pjb.51.1665575519473; 
 Wed, 12 Oct 2022 04:51:59 -0700 (PDT)
Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b])
 by smtp.gmail.com with ESMTPSA id
 n12-20020a170902e54c00b0017ca9f4d22fsm10491202plf.209.2022.10.12.04.51.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 12 Oct 2022 04:51:58 -0700 (PDT)
From: Ihor Radchenko <yantar92@gmail.com>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: watch YT videos through in Emacs [Was: Interest in an Org video
 meetup?]
In-Reply-To: <ti64kr$9fv$1@ciao.gmane.io>
References: <Yz7WCJTmJonuuiMr@tahm> <87a668emt3.fsf@posteo.net>
 <87a6684ddw.fsf@localhost> <Yz+FHAkZdOOJ/Cd3@tahm>
 <87czb3syv9.fsf@posteo.net> <52cf28741d1e497e68a419bd4952fd0d@riseup.net>
 <878rlliea5.fsf@localhost> <ti64kr$9fv$1@ciao.gmane.io>
Date: Wed, 12 Oct 2022 19:52:41 +0800
Message-ID: <875ygpw96e.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::631;
 envelope-from=yantar92@gmail.com; helo=mail-pl1-x631.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1665575805;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=v1jKcEQneor2lal1TQAqU8gf7zTRahErow3khlo0QiU=;
	b=At+5OeddWW4hDUJu+DKcae6M95KKH2U1YNNSY+/qp8N8vpy5OJgQJiRR5ve7US0R2S6EtP
	tkVnl8Yr8/yvQlIzSRwsikS+HhZvVL5qKeYt94v26DAXN4ok/PmGhoxsmjNoYTkuvJ+nyQ
	Us1vBesrSbmwyuS8NOZk34JDSIrpiqAMZXwHFZZD94mYmTaCkj5XVwC626CGBj5TejIXsb
	WM41Rzlv3fLiVrB6gKYX+eParnZtZFi+KZsJY4LeaP/uNiWty4A4bPeYbH4dBDcJ4BkypS
	2k3lIeeqpDqntrdQm+SNpRGzOGYTaj0/lUYdqd0lSl248aYnz7GMcVNJ/9A/LA==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665575805; a=rsa-sha256; cv=none;
	b=soD49uAzaLloN8nt0qNNH8eMi7swNN2U0I5DCFtrgHS5IUjQ2ZugtX/ElXutJa6psv3ukk
	8AhR/14puiE2U1yTQerz4nxm06m2pW7DJhOaayopgW2y47oY6tlUU0c04d2u+mH6zZiJjq
	I/04WJNPDQysbxNNaZDCVUKVeQ1BYm5srJQuWDaeCRDHaQoVnKfCIAocW5QrpMM0QMafnR
	FVoyaKszZTwIkYktyXPTKor9wifhDmSoBqhuvazBPvX6sFYlCbSwGwvd34o9BvORvcufU1
	4Irm0hHLu9tbSj1rLumKqtjhm0/PpX6dvqvcHZn+HnBMf6Dgj1JlZ5wjYIwW1w==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=JOQxq5rU;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Spam-Score: -3.40
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20210112 header.b=JOQxq5rU;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"
X-Migadu-Queue-Id: 57446114F2
X-Spam-Score: -3.40
X-Migadu-Scanner: scn1.migadu.com
X-TUID: RShMQ74s+7Tb

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>