Compare commits
2 Commits
22249ecf7a
...
e7105f1828
Author | SHA1 | Date | |
---|---|---|---|
e7105f1828
|
|||
4f7bd903b8
|
@@ -7,4 +7,4 @@ COPY . .
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD ["python", "-OO", "main.py"]
|
||||
CMD ["python", "main.py"]
|
||||
|
@@ -46,6 +46,8 @@ class YTDLSource(PCMVolumeTransformer):
|
||||
if not data["entries"]:
|
||||
raise Exception("no results found!")
|
||||
data = data["entries"][0]
|
||||
if "url" not in data:
|
||||
raise Exception("no url returned!")
|
||||
|
||||
return cls(
|
||||
TrackedAudioSource(
|
||||
|
Reference in New Issue
Block a user