Skip to content

Commit d9fae7f

Browse files
authored
Fix encoding issue in get_video_ids_from_feed
change root = ET.fromstring(feed) to root = ET.fromstring(feed.encode("utf-8").strip()) line 59 in streamstypes.py
1 parent 1c660e6 commit d9fae7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redbot/cogs/streams/streamtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def rnd(url):
5656

5757

5858
def get_video_ids_from_feed(feed):
59-
root = ET.fromstring(feed)
59+
root = ET.fromstring(feed.encode("utf-8").strip())
6060
rss_video_ids = []
6161
for child in root.iter("{http://www.w3.org/2005/Atom}entry"):
6262
for i in child.iter("{http://www.youtube.com/xml/schemas/2015}videoId"):

0 commit comments

Comments
 (0)