diff options
| -rw-r--r-- | README.md | 18 | ||||
| -rwxr-xr-x | lib/action/Rip | 19 | ||||
| -rwxr-xr-x | lib/action/Stream | 10 | ||||
| -rwxr-xr-x | rmt-action | 10 | ||||
| -rwxr-xr-x | util/notify | 2 |
5 files changed, 6 insertions, 53 deletions
@@ -14,10 +14,6 @@ After acquiring a link from the clipboard, by search or the search history you m - You may choose to **download** the video with **audio** or **video** format using **yt-dlp**. - You may choose to **torrent** the file using **qBitTorrent**. -There are however some actions that does not require a link, but instead a query: -- To **rip** music from YouTube with **metadata** from Spotify using **spotDL**. -- To **stream** a movie or series that's available directly online. - --- Once you've downloaded the media files to your offline digital library you can: @@ -43,7 +39,6 @@ Workflow specific automation of tasks: - xclip - jq - qbittorrent -- spotdl (pip package) #### Recommendation To create comfortable mpv settings. The command below creates a mpv.conf file that limits the quality of streamed videos to 1080p & always creates a 1440x810 mpv window. This might be good enough, but for the specific settings I use, it's available [here](https://git.exaltedelite.club/mpv-settings). @@ -80,14 +75,12 @@ All the scripts do require relative file paths to work, except for lcl-start & l - **Param Nº1:** Skip dmenu Nº1 (./lcl-system 'Shutdown') ## Usage Flow -By default, rmt-action uses links stored in the clipboard when used. But rmt-search & rmt-history can be used to discover links. The only actions that does not explicitly use links is the Rip & Stream actions that uses a query. Param Nº2 for rmt-action does also support queries, not only links for this reason. These actions are not in the rmt-search script because they only take a single query, & does not help with discovery. - -When using rmt-search without a correctly chosen item from the dmenu list, will automatically search YouTube. Therefore you can skip param Nº1 if you're searching YouTube. The command ./rmt-search 'YouTube' 'BugsWriter' 'Play' could be shortened to ./rmt-search 'BugsWriter' 'Play'. But in case you would search Odysee for example, you would explicitly have to specify the platform (./rmt-search 'Odysee' 'BugsWriter' 'Play'). +By default, rmt-action uses links stored in the clipboard when used. But rmt-search & rmt-history can be used to discover links. When using rmt-search without a correctly chosen item from the dmenu list, will automatically search YouTube. Therefore you can skip param Nº1 if you're searching YouTube. The command ./rmt-search 'YouTube' 'BugsWriter' 'Play' could be shortened to ./rmt-search 'BugsWriter' 'Play'. But in case you would search Odysee for example, you would explicitly have to specify the platform (./rmt-search 'Odysee' 'BugsWriter' 'Play'). -- You could for example bind CTRL+SHIFT+P to play copied video links automatically with the ./rmt-action 'Play' command. -- You could for example bind CTRL+SHIFT+B to search local files with the ./lcl-find command. -- You could for example bind CTRL+SHIFT+O to perform an action with the ./rmt-action command. -- You could for example bind SUPER+R to search PeerTube videos with the ./rmt-search 'PeerTube' command. +- You could for example bind Shift+Ctrl+P to play copied video links automatically with the ./rmt-action 'Play' command. +- You could for example bind Shift+Ctrl+B to search local files with the ./lcl-find command. +- You could for example bind Shift+Ctrl+O to perform an action with the ./rmt-action command. +- You could for example bind Super+R to search PeerTube videos with the ./rmt-search 'PeerTube' command. *This should help you get started & better understand the flow of the program.* @@ -97,7 +90,6 @@ This script may act as another key to the puzzle of unfiltered interactions when #### Sane Defaults - yt-dlp downloads in the .mp4 format & has a max quality of 1080p. - Notifications are shown upon errors & not upon appropriate behaviour. - - The default icon path for notifications is ~/.icons/EZown.png. - Magnet links are opened with qBitTorrent & may easily be modified in lib/action/Torrent. - You may easily change the default downloads directory & Invidious instance, in util/dpath & lib/search/YouTube. - You may modify the "find" command within the different scripts, it looks for files in ~/Desktop & ~/Downloads. diff --git a/lib/action/Rip b/lib/action/Rip deleted file mode 100755 index fbdc0e0..0000000 --- a/lib/action/Rip +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/bash - -source ./util/menu/deasy -source ./util/notify -source ./util/dpath - -query="$(deasy "$1" 'Rip Query')" -result="$(spotdl download "$query" --output "$DPATH" --no-cache)" - -if [[ "$result" =~ .*'No song matches found'.* ]] - then - notify 'Empty Response' -elif [[ "$result" =~ .*'already downloaded'.* ]] - then - notify 'Already Downloaded' -fi - -exit 0 - diff --git a/lib/action/Stream b/lib/action/Stream deleted file mode 100755 index 3cb2536..0000000 --- a/lib/action/Stream +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/bash - -source ./util/menu/deasy - -BASEURL='https://actvid.com/search/' -tailurl="$(deasy "$1" 'Stream Query' | tr ' ' '-' \ - | tr '[:upper:]' '[:lower:]')" - -xdg-open "$BASEURL$tailurl" - @@ -9,8 +9,6 @@ run() { 'Download' \ 'aDownload' \ 'Torrent' \ - 'Rip' \ - 'Stream' \ 'Open' \ 'Clipboard') @@ -55,14 +53,6 @@ run() { ./lib/action/"${CHOICES[7]}" "$2" ;; - "${CHOICES[8]}") - ./lib/action/"${CHOICES[8]}" "$2" - ;; - - "${CHOICES[9]}") - ./lib/action/"${CHOICES[9]}" "$2" - ;; - '') exit 0 ;; diff --git a/util/notify b/util/notify index a7a7e6c..81639de 100755 --- a/util/notify +++ b/util/notify @@ -1,6 +1,6 @@ #! /bin/bash notify() { - notify-send -t 4000 -i "$HOME/.icons/EZown.png" "$1 — Try Again!" + notify-send -t 4000 -i 'dialog-error' "$1 — Try Again!" } |
