Skip to content

keyboardInterupt should stop the program#1

Open
imacatburyme wants to merge 1 commit into
Kabeer2004:mainfrom
imacatburyme:main
Open

keyboardInterupt should stop the program#1
imacatburyme wants to merge 1 commit into
Kabeer2004:mainfrom
imacatburyme:main

Conversation

@imacatburyme

Copy link
Copy Markdown

keyboardInterupt should stop the program

@KaiserWilhelm23

KaiserWilhelm23 commented Dec 11, 2021

Copy link
Copy Markdown

Here is a great addition:

This code finds the the "user1" and builds a path automatically

def get_username():
    	return os.getlogin()


path = f'C:/Users/{get_username()}/AppData/Roaming/Spotify/Spotify.exe' 
print(f"Fetched Path: {path}")

--Things you have to change
SPOTIFY_ACCESS_TOKEN = ''  # I have a link on github, click that > Get token > check the topmost box > Copy paste that token here

@KaiserWilhelm23

Copy link
Copy Markdown

I am also working on a script that unpauses the music after Spotify restarts. Kind of want to do it via API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants