Skip to content

Commit 5076c6c

Browse files
committed
add search to get channel options
1 parent fbf918b commit 5076c6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addons/talo/apis/channels_api.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ func get_channels(options: GetChannelsOptions = GetChannelsOptions.new()) -> Cha
7575
url += "&propValue=%s"
7676
url_data.append(options.prop_value)
7777

78+
if options.search != "":
79+
url += "&search=%s"
80+
url_data.append(options.search.strip_edges().uri_encode())
81+
7882
var res := await client.make_request(HTTPClient.METHOD_GET, url % url_data)
7983

8084
match res.status:
@@ -335,6 +339,7 @@ class GetChannelsOptions:
335339
var page: int = 0
336340
var prop_key: String = ""
337341
var prop_value: String = ""
342+
var search: String = ""
338343

339344
class GetSubscribedChannelsOptions:
340345
var prop_key: String = ""

0 commit comments

Comments
 (0)