tizonia / tizonia-openmax-il

Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices.
https://tizonia.org
GNU Lesser General Public License v3.0
1.69k stars 85 forks source link

Spotify: Invalid username (an account name with a + sign in it) #599

Open subutux opened 5 years ago

subutux commented 5 years ago

Issue Template

Description

After configuring my username & password for spotify, I'm unable to login. Please note that my accountname on spotify contains a "+" sign.

Steps to Reproduce

  1. edit $HOME/snap/tizonia/current/.config/tizonia/tizonia.conf
  2. fill in spotify.user & password
  3. tizonia --spotify-playlist "Discover Weekly"

Expected behavior: Starts playing the playlist "Discover Weekly"

Actual behaviour:

tizonia 0.18.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

[Spotify] [Connecting] : 'email+address@gmail.com'.
[Spotify] [Playlist search] 'Discover Weekly' (owner: email+address@gmail.com).
[Spotify] (SpotifyException) : http status: 404, code:-1 - https://api.spotify.com/v1/users/email+address@gmail.com/playlists?limit=50&offset=0:
 Invalid username

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_source.spotify.pcm:port:0]
 [OMX_ErrorInsufficientResources]

Reproduces how often: 100%

Versions

Use the information obtained from tizonia --version and tizonia --debug. Also, please include the OS details and what version you are running (e.g. cat /etc/os-release).

tizonia --version
tizonia 0.18.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

tizonia --debug
tizonia 0.18.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

Debug Info:
        * [Boost 1_58]
        * [TagLib 1.9.1]
        * [MediaInfoLib - v0.7.82]

cat /etc/os-release
NAME=Fedora
VERSION="30 (Workstation Edition)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Installation Method Used

Snap

Additional Information

An account name with a + sign in it.

tizonia commented 5 years ago

@subutux

Thanks for taking the time to report an issue, this is always very welcome. And apologies for the delayed reply!

It looks like a genuine issue, so I'm marking it as a bug. I've been pretty busy recently (still am), but I will try to triage it properly soon.

jazzyeagle commented 4 years ago

Hello, I'm trying tizonia for the first time, I'm having the same issue. I figured I'd put that out there in hopes that priority would be raised. I know you said you're busy, so I understand if you can't get to it, but I really would like to be able to use Spotify without using Spotify's app. Thanks!!

juanrubio commented 4 years ago

Hi @jazzyeagle !

This issue has to do with a '+' sign in the spotify user name. Are you in the same circumstances (perhaps a '+' or '=' sign or similar)?

jazzyeagle commented 4 years ago

I'm not sure, as I can't see my username on Spotify. I always log in with my e-mail address through the Spotify app or website, so just my e-mail address is what I have been using. There are no pluses or equal signs in it, so not sure if I'm supposed to be adding one. Maybe that's the issue?

juanrubio commented 4 years ago

I'm not sure, as I can't see my username on Spotify.

You can actually, just go to https://www.spotify.com/account/overview/ . The Account Overview section shows the username of your account. For newer accounts, this could be a random 25-character long string, not the email address.

This could be good to read as well: https://docs.tizonia.org/manual/spotify.html

let me know how it goes

jazzyeagle commented 4 years ago

Ok, apparently I signed up under Facebook so long ago I didn't remember doing it!! lol Device signup & password got me past this issue. Now I just got to figure out my danged audio settings again, and I should be good to go.

Thanks again for your help!