Compare commits

5 Commits

Author SHA1 Message Date
1a61e23204 Merge pull request 'Update dependency yt-dlp to v2025.8.11' (#4) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m7s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #4
2025-08-11 08:09:08 +00:00
319ffd2106 Update dependency yt-dlp to v2025.8.11 2025-08-11 05:00:44 +00:00
21f1da5cce Merge pull request 'Update python Docker tag to v3.13.6' (#3) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #3
2025-08-08 07:50:28 +00:00
2cb60ef696 Update python Docker tag to v3.13.6 2025-08-07 19:00:41 +00:00
c0a9422fbd exclude all untested formats
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m15s
Build and Push Docker Image / deploy-on-green (push) Successful in 10s
2025-08-02 15:43:53 -04:00
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.13.5-alpine3.22
FROM python:3.13.6-alpine3.22
COPY ./app /app
WORKDIR /app
RUN apk add ffmpeg

View File

@@ -1,3 +1,3 @@
discord.py==2.5.2
python-dotenv==1.1.1
yt-dlp==2025.7.21
yt-dlp==2025.8.11

View File

@@ -10,7 +10,7 @@ def get_formats(url: str):
for fmt in info['formats']:
# Video-only
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none':
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none' and fmt.get('__needs_testing') == None:
video_options.append({
'height': fmt.get('height'),
'resolution': fmt.get('resolution'),
@@ -19,7 +19,7 @@ def get_formats(url: str):
'tbr': fmt.get('tbr'),
})
# Audio-only
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none':
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none' and fmt.get('__needs_testing') == None:
audio_options.append({
'format': fmt.get('format'),
'format_id': fmt.get('format_id'),