Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Felix Paul Kühne
MetaDataFetcherKit
Commits
736dbdee
Commit
736dbdee
authored
Nov 13, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TMDb fetcher: don't double encoding search requests
parent
4fd4ab8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Pod/Classes/MDFMovieDBFetcher.m
Pod/Classes/MDFMovieDBFetcher.m
+2
-2
No files found.
Pod/Classes/MDFMovieDBFetcher.m
View file @
736dbdee
...
...
@@ -82,7 +82,7 @@
}
NSMutableDictionary
*
parameters
=
[
NSMutableDictionary
dictionaryWithObjectsAndKeys
:
sessionManager
.
apiKey
,
@"api_key"
,
[
searchRequest
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
newlineCharacterSet
]]
,
@"query"
,
nil
];
searchRequest
,
@"query"
,
nil
];
if
(
releaseYear
!=
nil
)
[
parameters
setObject
:
releaseYear
forKey
:
@"year"
];
...
...
@@ -174,7 +174,7 @@
}
NSMutableDictionary
*
parameters
=
[
NSMutableDictionary
dictionaryWithObjectsAndKeys
:
sessionManager
.
apiKey
,
@"api_key"
,
[
searchRequest
stringByAddingPercentEncodingWithAllowedCharacters
:[
NSCharacterSet
newlineCharacterSet
]]
,
@"query"
,
nil
];
searchRequest
,
@"query"
,
nil
];
if
(
firstAirYear
!=
nil
)
[
parameters
setObject
:
firstAirYear
forKey
:
@"first_air_date_year"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment