README.md |
First cummit. |
2023-03-28T10:11:14+09:00 | |
yt-linkifier |
Fix bad variable call |
2023-04-23T10:33:09+09:00 |
A little script made by Wrongthink (or BananaMulcher like how he's known as on The Crowhouse forum), with some adjustments done by me for portability sake.
Also applied his adjustments to my adjustments as he specified in a reply.
And also added 1 more adjustment, which is that it outputs files in the home directory regardless of where you execute it from.
Forum thread in question: https://thecrowhouse.community/viewtopic.php?t=9430
To run, download this script into your home directory, then in the Terminal do this ONLY for the first time, no longer needed to do so afterwards:
chmod +x yt-linkifier
Then to run it:
~/yt-linkifier https://www.youtube.com/watch?v=27jKi-tlmwA
This will output a text file and thumbnails in the home directory which you can then use in for forum posts.
You will only need to host the thumbnails somewhere, or attach them directly in threads/replies.
By the way, if you want to make it behave more like a normal command line program, add the following in your .xinitrc
file (not sure for Wayland, but I don't care anyway).
export PATH=$PATH:~/.local/bin
Then create a bin
folder in the .local
folder if you haven't done so already.
mkdir -p ~/.local/bin
And move the file into that folder.
mv yt-linkifier ~/.local/bin
So now you can run it like this:
yt-linkifier https://www.youtube.com/watch?v=27jKi-tlmwA
Quickly produce clean, sane PhpBB forum links to YT videos.
0
2
0