Compare commits

..

29 Commits

Author SHA1 Message Date
1ef217f9dd Merge pull request 'chore(deps): update actions/checkout action to v6' (#26) from renovate/actions-checkout-6.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 20s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #26
2025-11-21 18:46:07 +00:00
373348a336 chore(deps): update actions/checkout action to v6 2025-11-20 17:00:51 +00:00
db488e06ab fix syntax
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m58s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-11-11 22:29:39 -05:00
e124ea31de aaaaaargh, _ instead of -
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m57s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-11-11 22:21:49 -05:00
2f47bbd848 hotfix: specify ejs:github remote component
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m8s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-11-11 22:11:43 -05:00
709ccddf82 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.11.12' (#25) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m0s
Build and Push Docker Image / deploy-on-green (push) Successful in 41s
Reviewed-on: #25
2025-11-12 02:48:11 +00:00
37dfa7c208 chore(deps): update dependency yt-dlp to v2025.11.12 2025-11-12 02:00:43 +00:00
8eb6bf3abc Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.1' (#24) from renovate/python-dotenv-1.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m41s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #24
2025-10-26 18:15:07 +00:00
d98e96b4e2 chore(deps): update dependency python-dotenv to v1.2.1 2025-10-26 16:00:35 +00:00
0c21a854d2 add Deno to image
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m39s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-10-22 19:04:11 -04:00
0c1e715f98 Revert "use yt-dlp[default] to ensure Deno will be included"
Some checks failed
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
This reverts commit a3a74571b4.
2025-10-22 18:17:23 -04:00
a3a74571b4 use yt-dlp[default] to ensure Deno will be included
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 28s
Build and Push Docker Image / deploy-on-green (push) Has been skipped
2025-10-22 18:13:36 -04:00
d29c0453e4 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.10.22' (#23) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m34s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #23
2025-10-22 21:33:07 +00:00
84f38f39e3 chore(deps): update dependency yt-dlp to v2025.10.22 2025-10-22 20:00:42 +00:00
c2c228d8de chore: sign deploy commits
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 16s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-10-22 11:03:48 -04:00
cef71e1ba3 Merge pull request 'Update dependency yt-dlp to v2025.10.14' (#22) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m37s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #22
2025-10-15 02:16:05 +00:00
5ace6b5c91 Update dependency yt-dlp to v2025.10.14 2025-10-15 00:01:02 +00:00
7f1182f5c7 Merge pull request 'Update python Docker tag to v3.14.0' (#20) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m58s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #20
2025-10-09 12:48:51 +00:00
f81346b678 Merge pull request 'Update dependency discord.py to v2.6.4' (#21) from renovate/discord.py-2.x into master
Some checks failed
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Reviewed-on: #21
2025-10-09 12:48:42 +00:00
8f0e9f8b96 Update dependency discord.py to v2.6.4 2025-10-08 22:00:47 +00:00
f52505ccb6 Update python Docker tag to v3.14.0 2025-10-08 14:00:44 +00:00
0cf1b4a6df Revert "install zstd for it to work on 3.14"
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 21s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
This reverts commit 0821359792.
2025-10-08 09:21:04 -04:00
0821359792 install zstd for it to work on 3.14
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m54s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-10-08 09:16:48 -04:00
7c3905e65f Revert "Update python Docker tag to v3.14.0"
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
This reverts commit 59f6bcb22e.
2025-10-08 09:07:46 -04:00
2d9241ba6e Merge pull request 'Update python Docker tag to v3.14.0' (#18) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m55s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #18
2025-10-08 13:02:04 +00:00
59f6bcb22e Update python Docker tag to v3.14.0 2025-10-07 22:00:49 +00:00
236ef0dcda revert feb99c0dc1
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
revert add args due to new update
2025-09-29 16:46:15 +00:00
f7cb27b166 Merge pull request 'Update dependency yt-dlp to v2025.9.26' (#17) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #17
2025-09-27 04:19:53 +00:00
2c746eff68 Update dependency yt-dlp to v2025.9.26 2025-09-26 23:00:48 +00:00
4 changed files with 16 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ jobs:
steps:
# Checkout the repository code
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Set outputs
id: vars
@@ -55,7 +55,7 @@ jobs:
if: ${{ success() }}
steps:
- name: Checkout target repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: infrastructure/core-apps
token: ${{ secrets.ACTIONS_TOKEN }}
@@ -68,8 +68,13 @@ jobs:
- name: Commit changes
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
git config --local user.email "actions@noreply.dubyatp.xyz"
git config --local user.name "actions[bot]"
git config --local user.signingkey ~/.ssh/id_ed25519
git config --local gpg.format ssh
git config --local commit.gpgsign true
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
- name: Push changes

View File

@@ -1,6 +1,6 @@
FROM python:3.13.7-alpine3.22
FROM python:3.14.0-alpine3.22
COPY ./app /app
WORKDIR /app
RUN apk add ffmpeg
RUN apk add ffmpeg deno
RUN pip install -r requirements.txt
CMD ["python", "/app/main.py"]

View File

@@ -1,3 +1,3 @@
discord.py==2.6.3
python-dotenv==1.1.1
yt-dlp==2025.9.23
discord.py==2.6.4
python-dotenv==1.2.1
yt-dlp==2025.11.12

View File

@@ -2,7 +2,9 @@ import yt_dlp
import asyncio
def get_formats(url: str):
ydl = yt_dlp.YoutubeDL()
ydl = yt_dlp.YoutubeDL(params={
'remote_components': ['ejs:github']
})
info = ydl.extract_info(url, download=False)
video_options = []
@@ -55,12 +57,7 @@ def download_video(url: str, format: str, out_path: str, temp_path: str, progres
opts = {
'format': format,
'paths': {'home': out_path, 'temp': temp_path},
'progress_hooks': [hook],
'extractor_args': {
'youtube': {
'player_client': ['default', '-tv_simply'],
}
}
'progress_hooks': [hook]
}
with yt_dlp.YoutubeDL(opts) as ydl:
ydl.download([url])