Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TOOL for STREAMRP] linkgrabber #808

Open
JustanerdFML opened this issue Mar 1, 2025 · 1 comment
Open

[TOOL for STREAMRP] linkgrabber #808

JustanerdFML opened this issue Mar 1, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@JustanerdFML
Copy link

Is the feature request related to a problem. Please describe it.

managing qobuz and deezer links for downloading

Describe the solution you would like.

hey,
I'm trying to create a little frontend.
right now i got a firefox addon for extracting qobuz links of your browser tabs.
Its far from done but if you want to try it out yourself or modify it e.g. filtering options feel free to do so.
source code link below:
https://github.com/JustanerdFML/linkgrabber

Describe alternatives you've considered.

No response

@JustanerdFML JustanerdFML added the enhancement New feature or request label Mar 1, 2025
@ghost
Copy link

ghost commented Mar 9, 2025

if you're on mac, save this shell script and make it run at login and it'll automatically run any url you copy to your clipboard

#!/bin/bash

# Variable to store the last copied link
LAST_LINK=""

while true; do
    # Get the current clipboard content
    CLIPBOARD=$(/usr/bin/pbpaste)

    # Check if clipboard contains a Deezer link
    if echo "$CLIPBOARD" | grep -qE '^https://(www\.)?deezer\.com|^https://dzr\.page\.link'; then
        # If the new clipboard content is different from the last copied link
        if [[ "$CLIPBOARD" != "$LAST_LINK" ]]; then
            echo "Deezer link detected: $CLIPBOARD"
            
            # Run the rip command in the background
            /opt/homebrew/bin/rip url "$CLIPBOARD" &
            RIP_PID=$!  # Get the PID of the rip command
            
            # Store the current clipboard content as the last detected link
            LAST_LINK="$CLIPBOARD"
        fi
    fi
    
    # Sleep for 2 seconds before checking the clipboard again
    sleep 2
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant