From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 aD4oMZ6VRmMKTgAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 12:23:26 +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 GLVNMJ6VRmO3IgAAG6o9tA (envelope-from ) for ; Wed, 12 Oct 2022 12:23:26 +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 78F6FE619 for ; Wed, 12 Oct 2022 12:23:26 +0200 (CEST) Received: from localhost ([::1]:51786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiYtZ-0007AN-O1 for larch@yhetil.org; Wed, 12 Oct 2022 06:23:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiYsf-0007AB-9Y for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 06:22:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiYsc-0003rt-SS for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 06:22:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 11D78240104 for ; Wed, 12 Oct 2022 12:22:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665570143; bh=l+hhVeiyHD04xjwHraufFVbPk2VrKXzRfLXzI8Lt9kg=; h=From:To:Cc:Subject:Date:From; b=LpyDek7iOFZfavzumuqRB0q4YdUtD1Qrm1RoI9qxH6SUqZiKFrwSTXA/wZ+IGLiXh WSCi1jd2b9CddD54MCc5AQqRs61QptPTSe3Q84Oox+xYbATlyAc1HqGHfmgwSXdDEI 9HWcncgTgw2JDYkWlwb1ks71tbT8lk7PB0D2PXtMNuLdu0SeQQpm1EJPxHpZRIJIIz 1MUO0S7M5C83viuHw06XnkLZgtwqY+AcFBWJAF1h95j6mJp5KKduDVz0WmEJEeuWa7 a3vgmaveUBvsb7qw7IWhnXCf/sCk2d0nqFLl/N1xONFruLX7H8y5H8g7GzCY8SJJpD /UjVi431KPOOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MnTH22bVjz9rxG; Wed, 12 Oct 2022 12:22:22 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Quiliro =?utf-8?B?T3Jkw7PDsWV6?= , emacs-orgmode@gnu.org Subject: Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?] References: <87a668emt3.fsf@posteo.net> <87a6684ddw.fsf@localhost> <87czb3syv9.fsf@posteo.net> <52cf28741d1e497e68a419bd4952fd0d@riseup.net> <878rlliea5.fsf@localhost> Date: Wed, 12 Oct 2022 10:22:19 +0000 In-Reply-To: <878rlliea5.fsf@localhost> (Ihor Radchenko's message of "Wed, 12 Oct 2022 17:26:10 +0800") Message-ID: <87wn95ibok.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1665570206; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bhyrbBLSv4hLXTl4DAPlw2zCSHXhNyVwL2vHZEMD/8c=; b=IjNW8LXGb33TjqZMhhicv+ZOCYp2F2gr09kEvNyi53yhirJS+fPPoXqPrjqvTfUm7D8vpi UKSQd8UORFmkrfiJXCN9UpLUZGuNw2TV1ahlOIOVgF+WvI4ljfi7MajKJssIBEIu6s99GO AxDWbmW8/fXJx9etRRLyuEE+7Afu0Olb0zHrV3pAcYOvUijamKpZtpIr9L7hjz9VTsBg9j PPxUvl41u687KNdjrzTD0XuFx0VBrQZwI+3dYdIynRmB+P7SQAET4VxiiSA2o9ITBG7LyV iBSqjew8T7VMTUsXOGEV+leRS882ReCLl2CklHfIzVR84MpTgSHE8oCpJy2q4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665570206; a=rsa-sha256; cv=none; b=LtPV660KnfEX6kpmPI1APWVpfsD7W7eDnAGMUiM+A9/eayLE6wIzPHMgzkEVAs+FsUua2y z3X0O3azHuQsb2KS15px/4cQ/0anYSMcYfnyIXn+vroikZbjYI+H+Fy0x95EmurUKhs5FH nl1MnY9H6xx3ZGU7GEDROuSgKDlANM26xYtKmNYh5RuB/Ws4Pfva501u/WDsJ5fDRXKdAf wUwnwT+DrWXyuIaRpfEOC1hmiTWOZUreBnqi0jk4j1zDBGWqkplARsNKq53YDqf2FqM+8A mIqOh0VL9poFekK/ki3OvC2/16pXD5Jp+EyK0KFcQfHeRlMtJS1rE1eezR/mwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LpyDek7i; dmarc=pass (policy=none) header.from=posteo.net; 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: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LpyDek7i; dmarc=pass (policy=none) header.from=posteo.net; 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: 78F6FE619 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8fvMMXaekMda Ihor Radchenko writes: > Quiliro Ord=C3=B3=C3=B1ez writes: > >> Hola Juan Manuel. >> >>> There is the YouTube option, which I imagine no one would like (me >>> neither). The only thing in its favor is that Invidious can be used to >>> watch the videos. BTW, I watch YT videos through Invidious in Emacs, >>> with the Ytel package and EMMS/MPV. >> >> Nice. Is there a guide to do this specificly? > > I simply use > > #+begin_src bash :tangle ~/.local/bin/qutebrowser-call.sh :shebang #!/bin= /bash > URL=3D"$1" > > if echo "$URL" | grep "youtube.com"; then > # URL=3D"$(echo "$URL" | sed -r 's/\\(www\\)?youtube\.com/invidious.n= amazso.eu/')" > if [[ ! -z $(echo "$URL" | grep "/watch") ]]; then=20 > mpv $URL && exit; > fi > fi > > if echo "$URL" | grep "ted.com/talks"; then > mpv $URL && exit; > fi > > # if echo "$URL" | grep "reddit.com"; then > # URL=3D"$(echo "$URL" | sed -rE 's/www\.reddit\.com/libredd.it/')" > # fi > > if echo "$URL" | grep "bilibili.com"; then > mpv $URL && exit; > fi > > grep "$URL" ~/.data/web-mirror/sources/* >/dev/null 2>&1 &&\ > ARCHIVE_DIR=3D"$(echo "$URL" | archivebox-cmd list 2>/dev/null | tail= -n1 | cut -d' ' -f1 | sed -r 's|/data|~/.data/web-mirror|')" > > if [[ ! -z "$ARCHIVE_DIR" ]]; then > [[ -f "${ARCHIVE_DIR}/singlefile.html" ]] && URL=3D"${ARCHIVE_DIR}/si= nglefile.html"; > fi > > #from https://github.com/qutebrowser/qutebrowser/blob/master/scripts/open= _url_in_instance.sh > _url=3D"$URL" > _command=3D":later 4000 :jump-mark last-position" > > qutebrowser "${_command}" ":spawn -u untrack-url -r -O ${_url}" > > #+end_src > > and my mpv is configured to use youtube-dl. In this short video I show an example of my procedure to watch youtube videos without leaving Emacs: https://cloud.disroot.org/s/X3cfi2orT38CPyM I use: 1. Helm-google-suggest (set to use duckduckgo) 2. Ytel (based on elfeed). With a few hacks that I have added, in order to: - Display thumbnails in the searches. - Watch the video at point (via invidious) with EMMS/MPV, configured with yt-dlp, which is a fork of youtube-dl that works much better. - Download the video at point with yt-dlp (full video or only audio) - Create a bookmark of the video with org-capture More info on my blog in Spanish (if anyone is interested, I can translate i= t): https://gnutas.juanmanuelmacias.com/ytel_invidious.html Best regards, Juan Manuel=20