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

I want to study it #1

Open
ToulthG opened this issue Aug 3, 2020 · 12 comments
Open

I want to study it #1

ToulthG opened this issue Aug 3, 2020 · 12 comments

Comments

@ToulthG
Copy link

ToulthG commented Aug 3, 2020

No description provided.

@novatorem
Copy link
Owner

novatorem commented Aug 3, 2020

What about it do you want to study? It looks like you're simply using my profile's spotify.

Did you follow the setup instructions I posted?

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

您想学习什么?看来您只是在使用我的个人资料的spotify。

您是否遵循我发布的设置说明

Actually I am a beginner, if you want I can’t use the spotify of your profile right now, I can delete it immediately

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

What about it do you want to study? It looks like you're simply using my profile's spotify.

Did you follow the setup instructions I posted?

Where is Refresh Token?

@novatorem
Copy link
Owner

Hey, no worries. You can leave it as is while trying to set things up.

You need to use the refresh token in your vercel app to reauthenticate your spotify.
At what stage of the setup info are you stuck?

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

嘿,不用担心。您可以在尝试设置时保持原样。

您需要在Vercel应用程序中使用刷新令牌来重新认证Spotify。
您停留在设置信息的哪个阶段?

I only did the first step

Hey, no worries. You can leave it as is while trying to set things up.

You need to use the refresh token in your vercel app to reauthenticate your spotify.
At what stage of the setup info are you stuck?

I only did the first step

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

Hey, no worries. You can leave it as is while trying to set things up.

You need to use the refresh token in your vercel app to reauthenticate your spotify.
At what stage of the setup info are you stuck?

"You need to use the refresh token in your vercel app to reauthenticate your spotify." I opened it, but I don't know how to do it...

@novatorem
Copy link
Owner

I think for you it would be here:

https://vercel.com/toulgthg/toulgth-g/settings/environment-variables

Then I assume you got your Client ID, Secret, and Refresh token?
Don't paste them here, they should remain a secret to you and only you.

Also make sure you took the api folder and placed it in your ReadMe.

@novatorem
Copy link
Owner

So where there's {...}, you have to insert your variables. So {Spotify_Client_ID} is where you plug in your Client ID that you got from the dashboard. Also, you should delete your picture since it contains the variable.

Finally, Name is where Client ID, Client Secret, and Refresh Token go (but as defined in setup.md). Value is where the variables go.

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

So where there's {...}, you have to insert your variables. So {Spotify_Client_ID} is where you plug in your Client ID that you got from the dashboard. Also, you should delete your picture since it contains the variable.

Finally, Name is where Client ID, Client Secret, and Refresh Token go (but as defined in setup.md). Value is where the variables go.

Ok, wait for me to study slowly... (forgive me for being stupid) Thank you very much for your patience to answer me, I think I should learn enough knowledge before coming back (I am from China, I don’t understand some words when I see English ), I won’t waste your time anymore, thank you very much!

@ToulthG
Copy link
Author

ToulthG commented Aug 3, 2020

So where there's {...}, you have to insert your variables. So {Spotify_Client_ID} is where you plug in your Client ID that you got from the dashboard. Also, you should delete your picture since it contains the variable.

Finally, Name is where Client ID, Client Secret, and Refresh Token go (but as defined in setup.md). Value is where the variables go.

谢谢您!

@novatorem
Copy link
Owner

No worries, might be hard when a lot of these don't translate well.

Good luck, leaving this open for now.

saumiko referenced this issue in saumiko/spotify-now-playing Sep 8, 2020
@ch374n
Copy link

ch374n commented Oct 17, 2020

Hi, @novatorem
Looks like it breaks while playing podcast
[GET] /api/spotify-playing 20:18:03:30 [ERROR] 2020-10-17T14:48:03.537Z b708d79d-60da-4a4d-a04c-c9df8b84bf0c Exception on /api/spotify-playing [GET] Traceback (most recent call last): File "/var/task/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/var/task/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/var/task/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/var/task/flask/_compat.py", line 39, in reraise raise value File "/var/task/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/var/task/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "./api/spotify-playing.py", line 112, in catch_all svg = makeSVG(data) File "./api/spotify-playing.py", line 93, in makeSVG img = loadImageB64(item["album"]["images"][1]["url"]) TypeError: 'NoneType' object is not subscriptable

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

No branches or pull requests

3 participants