Skip to content

Commit ddd444e

Browse files
authored
Join string instead of putting list in URL (#60)
1 parent 5653367 commit ddd444e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "youtubeaio"
3-
version = "1.1.1"
3+
version = "1.1.3"
44
description = "Asynchronous Python client for YouTube V3 API."
55
authors = ["Joost Lekkerkerker <[email protected]>"]
66
maintainers = ["Joost Lekkerkerker <[email protected]>"]

src/youtubeaio/youtube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def get_videos(
191191
raise ValueError(msg)
192192
param = {
193193
"part": "snippet",
194-
"id": video_ids,
194+
"id": ",".join(video_ids),
195195
}
196196
async for item in self._build_generator(
197197
"GET",
@@ -234,7 +234,7 @@ async def get_channels(
234234
"""Return list of channels."""
235235
param = {
236236
"part": "snippet,contentDetails,statistics",
237-
"id": channel_ids,
237+
"id": ",".join(channel_ids),
238238
}
239239
async for item in self._get_channels(param):
240240
yield item

0 commit comments

Comments
 (0)