this post was submitted on 24 Jun 2023
62 points (100.0% liked)
Linux
50208 readers
1959 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I tried to substitute rofi with fzf in vim, and when I try Preferences - it says
😕 Selection canceled...
My main goal was to use this program on my server which has no GUI and I can access it from anywhere. For example, I successfully use
newsboat
andneomutt
remotely. When I saw TUI, I thought I could use that too headless, but you may wanna put a disclaimer that the script requires a GUI applicationrofi
.Anyways, thanks for the project, I will keep an eye on it if it keeps developing, great idea! While troubleshooting this program I came across
ytfzf
that also supposedly supports subscriptions and seems like can work headlesslyThis is clearly stated in the instructions, and in the dependencies.
https://imgur.com/Anr1SSh.png
You might consider always read the instructions before installing anything.
undefined> https://imgur.com/Anr1SSh.png
Don't get mad, I've read. It's a little unusual for me to see amongst 6 CLI dependencies on GUI one. But even installing a GUI application on a headless machine won't do any good
No worries! Thanks for the feedback anyway.
ytfzf is great. And if you don't mind the image support, give newsboat a try, it works great for youtube feeds.
I have made some updates that may concern you:
UPDATES:
~git/magic-tape/
, now various files and directories are kept in various places.This way,magic-tape.sh
is in~/.local/bin/
~/.cache/magic-tape/
~/.config/magic-tape/
rofi
, orfzf
(if the user wants to go full TUI).This can be configured during the P option of the misc menu.So if you want to go full tui, you can avoid
rofi
and go fullfzf
.Let me know how it goes if you try.
Thank you for the update. Can't wait to try. Looks like GitLab is down right now (503) - I will look as they restore service
I know, I have just found out. Last night I also added dmenu as well as an action selector (together with fzf and rofi). Let me know how it goes!
Actual git still worked. I was able to
git pull
I also figured out a way to launch the script using bash - needed to export $SHELL - the only way it worked. I could not update yt-dlp to the latest version - the latest I could install is 2023.06.22 from the side PPA repo. Official Ubuntu repo provides 2023.03 and pip breaks my system with compatibility issues that I don't have desire to troubleshoot. I could try in the future downloading their binary but I don't like when stuff doesn't auto-update. The preferences worked this time and I was able to save them.yt-dlp gives me an error every time I try to browse either Trending or do a search. I have a TV with a cross and 1 option to Abort Selection.
I have a question: is the script dependent on having browser cookies? Because I don't have any of the browsers installed on a headless machine. ANd I think that is what yt-dlp wasn't happy about...
Exactly that. Yt-dlp works with browser cookies, You need one of the browsers, and to log in to your yt account.
Ah, yeah that's what I figured.
Unfortunately, (or fortunately for me) I have not used YouTube in a traditional way in a very long time. I use FreeTube, Piped, Invidious, NewPipe, VueTube depending on the platform I currently am. And that is why I don't have any cookies for it. I don't really care for liking or commenting the videos as just watching them. All the above mentioned programs support own "offline" subscription lists, and most have interest-based profiles which you cannot achieve with a traditional YouTube account.
But yeah, sadly this not for me in its current form, I will join whoever added a comment here earlier about waiting for support of
json
- based subscription lists - that is, of course, if you decide to go that route, or at least as bare minimum if you could remove the cookie requirement and have "anonymous search and view" functionality. I believe many of us here on Lemmy that are concerned about privacy will greatly appreciate that. YouTube itself,mpv
, andyt-dlp
don't really need cookies to watch a video.Thanks for troubleshooting this with me.
I was considering being full "offline", it is perfectly doable, working with yt xml requests.
The downside is that this process (so far for me) takes longer, gives less info, and mostly, although there is no image support there, is done better by terminal rss feeders like newsboat.
You cannot do everything at the same time. I may revisit this approach in the feature and put up something else.