[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 17:26:10 +0800 |
Quiliro Ordóñez <quiliro@riseup.net> 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="$1"
if echo "$URL" | grep "youtube.com"; then
# URL="$(echo "$URL" | sed -r
's/\\(www\\)?youtube\.com/invidious.namazso.eu/')"
if [[ ! -z $(echo "$URL" | grep "/watch") ]]; then
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="$(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="$(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="${ARCHIVE_DIR}/singlefile.html";
fi
#from
https://github.com/qutebrowser/qutebrowser/blob/master/scripts/open_url_in_instance.sh
_url="$URL"
_command=":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.
--
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>
- Re: Interest in an Org video meetup?, (continued)
Re: Interest in an Org video meetup?, Tory S. Anderson, 2022/10/06
Re: Interest in an Org video meetup?, Juan Manuel Macías, 2022/10/06
- Re: Interest in an Org video meetup?, Russell Adams, 2022/10/06
- Re: Interest in an Org video meetup?, Ihor Radchenko, 2022/10/06
- Re: Interest in an Org video meetup?, Russell Adams, 2022/10/06
- Re: Interest in an Org video meetup?, Juan Manuel Macías, 2022/10/07
- watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Quiliro Ordóñez, 2022/10/07
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Juan Manuel Macías, 2022/10/07
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?],
Ihor Radchenko <=
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Juan Manuel Macías, 2022/10/12
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Robert Weiner, 2022/10/12
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Max Nikulin, 2022/10/12
- Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?], Ihor Radchenko, 2022/10/12
Re: Interest in an Org video meetup?, George Mauer, 2022/10/07
Re: Interest in an Org video meetup?, Leo Vivier, 2022/10/24
Re: Interest in an Org video meetup?, Jean Louis, 2022/10/09
Re: Interest in an Org video meetup?, Rudolf Adamkovič, 2022/10/06
Re: Interest in an Org video meetup?, Ihor Radchenko, 2022/10/07
Re: Interest in an Org video meetup?, Payas Relekar, 2022/10/06