Skip to content

Escape tvmaze URL query parameters#1699

Merged
liiight merged 1 commit intoFlexget:developfrom
pkoenig10:pkoenig/urlencode
Feb 18, 2017
Merged

Escape tvmaze URL query parameters#1699
liiight merged 1 commit intoFlexget:developfrom
pkoenig10:pkoenig/urlencode

Conversation

@pkoenig10
Copy link
Copy Markdown
Contributor

Motivation for changes:

When searching for shows using the TVmaze API, Flexget does not escape any query parameters. This leads to incorrect searches. My log file showing the error is linked below. You can see that Flexget attempted to search for "Law & Order: Special Victims Unit", but the "&" was not escaped. If you go to the requested URL you will see that the received search term was just "Law", resulting in the plugin returning Newton's Law instead of Law & Order SVU.

Detailed changes:

  • Pass any query parameters to requests as a dictionary so they are properly escaped.

Log output:

https://gist.github.com/anonymous/460c9231e44062b6ce0d9c354fbc6ea4

@liiight liiight merged commit 77a6410 into Flexget:develop Feb 18, 2017
@liiight
Copy link
Copy Markdown
Member

liiight commented Feb 18, 2017

Very nice, thanks for this!

@pkoenig10 pkoenig10 deleted the pkoenig/urlencode branch February 18, 2017 10:10
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

Successfully merging this pull request may close these issues.

2 participants