@@ -35,13 +35,13 @@ public FileList(string username, string passkey)
3535 /// var searchParams = new FileListSearchParams().Query("The Haunting of Hill House").Categories([21]).FreeLeech(true);
3636 /// </code>
3737 /// </example>
38- /// <exception cref="Exception">If API returns an error or rate limit is reached</exception>
38+ /// <exception cref="Exception">If the API returns an error or rate limit is reached</exception>
3939 /// <returns>FileListTorrent</returns>
4040 public async Task < List < FileListTorrent > ? > SearchAsync ( FileListSearchParams searchParams )
4141 {
42- var parameters = searchParams . ToString ( ) ;
43- parameters += "&action=search-torrents&output=json" ;
44- return await _query ( parameters ) ;
42+ var parameters = new StringBuilder ( searchParams . ToString ( ) ) ;
43+ parameters . Append ( "&action=search-torrents&output=json" ) ;
44+ return await _Query ( parameters . ToString ( ) ) ;
4545 }
4646
4747 /// <summary>
@@ -54,16 +54,16 @@ public FileList(string username, string passkey)
5454 /// var latestParams = new FileListLatestParams().Imdb("tt14527626").Categories([21]);
5555 /// </code>
5656 /// </example>
57- /// <exception cref="Exception">If API returns an error or rate limit is reached</exception>
57+ /// <exception cref="Exception">If the API returns an error or rate limit is reached</exception>
5858 /// <returns>FileListTorrent</returns>
5959 public async Task < List < FileListTorrent > ? > LatestAsync ( FileListLatestParams searchParams )
6060 {
61- var parameters = searchParams . ToString ( ) ;
62- parameters += "&action=latest-torrents&output=json" ;
63- return await _query ( parameters ) ;
61+ var parameters = new StringBuilder ( searchParams . ToString ( ) ) ;
62+ parameters . Append ( "&action=latest-torrents&output=json" ) ;
63+ return await _Query ( parameters . ToString ( ) ) ;
6464 }
6565
66- private async Task < List < FileListTorrent > ? > _query ( string parameters )
66+ private async Task < List < FileListTorrent > ? > _Query ( string parameters )
6767 {
6868 var url = $ "{ ApiUrl } ?{ HttpUtility . UrlDecode ( parameters ) } ";
6969 var response = await _client . GetAsync ( url ) ;
0 commit comments