This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # this script is meant to be called from a kio service menu desktop file | |
| # and expects the path to be passed in as the first argument. | |
| # ex. Exec=/home/kilo/.scripts/dl_yt_to_path.sh %u "both" | |
| # an optional mode can be passed in as the second param, audio, video, or both. defaults to both | |
| # it reads your clipboard and tries to pull a youtube id from a standard yt link. ex. ?v=id | |
| # based on mode, it'll automate the process of any needed ripping, renaming, deleting, etc. | |
| # to keep the terminal up after the job, pass true as third arg to debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Type=Service | |
| MimeType=inode/directory; | |
| Actions=asBoth;asMp3;asMp4; | |
| X-KDE-Submenu=Paste Yt Link | |
| Terminal=true | |
| [Desktop Action asMp4] | |
| Name=as Mp4 | |
| Icon=video-mp4 |