CriticalElement / spotify-free-api-player

This allows you to modify the user's playback state through the spotify API, without needing premium.
13 stars 1 forks source link

Many errors in experminental.py #5

Closed ThatOneDev78601 closed 1 year ago

ThatOneDev78601 commented 1 year ago

Hey, it seems I cannot get this working, is this outdated now? I would like to contact you about this however it seems there is no contact info on your profile

CriticalElement commented 1 year ago

There was a breaking change a few months ago with the Spotify api, let me fix this in a couple hours

ThatOneDev78601 commented 1 year ago

okay thanks, let me know if you were able to fix it, appreciated btw

CriticalElement commented 1 year ago

yeah, i just have a lot of schoolwork lol definitely will get it fixed in like 6-8 hours

ThatOneDev78601 commented 1 year ago
Ye np me too lol, using this GitHub for a school project of mine too lol. Np though there isn’t any apparent due date Sent from Mail for Windows From: CriticalElementSent: Tuesday, February 28, 2023 11:35 AMTo: CriticalElement/spotify-free-api-playerCc: ThatOneDev; AuthorSubject: Re: [CriticalElement/spotify-free-api-player] Many errors in experminental.py (Issue #5) yeah, i just have a lot of schoolwork loldefinitely will get it fixed in like 6-8 hours—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
CriticalElement commented 1 year ago

hey, just got around to updating the code, and it should work for you now if it doesn't, try relogging in to "open.spotify.com" using a web browser (google chrome, edge, firefox) and make sure to check the "remember me" option

ThatOneDev78601 commented 1 year ago
Alright thanks so much, I gotta finish hw right now but ill let u know if it works tomorrow morning (EST for me) Sent from Mail for Windows From: CriticalElementSent: Tuesday, February 28, 2023 7:38 PMTo: CriticalElement/spotify-free-api-playerCc: ThatOneDev; AuthorSubject: Re: [CriticalElement/spotify-free-api-player] Many errors in experminental.py (Issue #5) hey, just got around to updating the code, and it should work for you nowif it doesn't, try relogging in to "open.spotify.com" using a web browser (google chrome, edge, firefox) and make sure to check the "remember me" option—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
ThatOneDev78601 commented 1 year ago

image same errors as before, maybe I'm doing something wrong? running the code with

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)-8s - %(name)-14s - %(message)s')

spotifyplayer = SpotifyPlayer()
spotifyplayer.command(spotifyplayer.play('5wilF6g0r4VpNqQsV8fWKr'))
ThatOneDev78601 commented 1 year ago

Also, might be worth noting that I'm using opera gx, not google chrome. Not sure if thats the issue though as opera uses chromium internally and it still uses chrome dev tools and all

CriticalElement commented 1 year ago

big oversight by me, try changing the browser_cookie3.chrome() call to browser_cookie3.opera_gx() in experimental.py

Screenshot_20230228-202457-035.png

ThatOneDev78601 commented 1 year ago

image there was no function named opera_gx() however there was one named opera() so i tried that, doing so resulted in this error

ThatOneDev78601 commented 1 year ago

OH, i also use microsoft edge, and tried changing it from opera to edge, and now it works! thanks so much for the fix

ThatOneDev78601 commented 1 year ago

not sure why opera doesnt work though, might just be bugged

CriticalElement commented 1 year ago

try reinstalling requirements with pip install -U -r requirements.txt

this could fix the opera gx problem

ThatOneDev78601 commented 1 year ago

okay