mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[PR #30] [CLOSED] Fixed browser opening issue #731
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/30
Author: @sepehr
Created: 10/8/2014
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
d9992eeFixed browser opening issuec7f8d25Suppressing webbrowser's output to stderr as well.📊 Changes
1 file changed (+20 additions, -8 deletions)
View changed files
📝
spotipy/util.py(+20 -8)📄 Description
There is an i-donno-what issue when
spotipy.uitl.prompt_for_user_token()tries to open the browser using thesubprocess.call. #29 issue might be related to this.This pull request intends to fix this by utilizing
webbrowser.openinstead. It also works around the unnecessary verbose output ofwebbrowser.openand programmatically redirects it to the/dev/null.The code is tested on both OSX and Linux.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.