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

+ zeichen in artistname oder album name macht url fehler #14

Open
BaN4NaJ0e opened this issue Aug 4, 2011 · 2 comments
Open

+ zeichen in artistname oder album name macht url fehler #14

BaN4NaJ0e opened this issue Aug 4, 2011 · 2 comments

Comments

@BaN4NaJ0e
Copy link
Owner

wird in der URL der Artistname oder Albumname mit einem + übergeben, greift die datenbank ins leere und zeigt nichts an

Lösung:

  • ersetzten durch %2B

Weitere Sonderzeichen filtern?

@ghost
Copy link

ghost commented Aug 4, 2011

hmm... glaube in der urllib von python gibts ne methode die direkt alle doofen sonderzeichen umwandelt

@BaN4NaJ0e
Copy link
Owner Author

Ja gibt es wirklich.
urllib.urlencode({"abc" : [1,2,3], "def" : "ghi"}, True)
'abc=1&abc=2&abc=3&def=ghi'

erzeugt gültige Strings für URLs... werde ich demnächst mal einbauen!

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

1 participant