Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix(AudioData): fix some url case
Browse files Browse the repository at this point in the history
  • Loading branch information
kijk2869 committed Oct 13, 2020
1 parent 9bb9c1a commit 3575c8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion discodo/source/AudioData.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import yarl
import aiohttp
import youtube_dl

Expand Down Expand Up @@ -103,7 +104,8 @@ async def source(

if not self._source:
async with aiohttp.ClientSession() as session:
async with session.get(self.stream_url) as resp:
URL = yarl.URL(self.stream_url, encoded=True)
async with session.get(URL) as resp:
Status = resp.status

if Status == 403:
Expand Down

0 comments on commit 3575c8a

Please sign in to comment.