35 Commits

Author SHA1 Message Date
db0c0a3893 chore(deps): update dependency discord.py to v2.7.1 2026-03-03 19:01:27 +00:00
204404b761 update flake for latest yt-dlp
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m3s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
2026-03-02 20:10:03 -05:00
6e7fc73420 Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.2' (#37) from renovate/python-dotenv-1.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m51s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #37
2026-03-02 16:26:46 +00:00
67c85aebf9 chore(deps): update dependency python-dotenv to v1.2.2 2026-03-01 16:00:47 +00:00
b9088d932c Merge pull request 'chore(deps): update dependency discord.py to v2.7.0' (#36) from renovate/discord.py-2.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m39s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
Reviewed-on: #36
2026-02-28 21:38:46 +00:00
8c1d044f79 chore(deps): update dependency discord.py to v2.7.0 2026-02-27 19:02:10 +00:00
f688ee035f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.21' (#35) from renovate/yt-dlp-2026.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 7s
Reviewed-on: #35
2026-02-21 22:25:02 +00:00
7fd5d93b6d chore(deps): update dependency yt-dlp to v2026.2.21 2026-02-21 21:01:26 +00:00
d7ad90a1d5 actions: add duplicate detection
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m59s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-02-06 21:45:08 -05:00
ac5abffd74 Merge pull request 'chore(deps): update python docker tag to v3.14.3' (#34) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m40s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #34
2026-02-05 00:38:18 +00:00
1c43c62523 chore(deps): update python docker tag to v3.14.3 2026-02-04 23:00:45 +00:00
bef0a4d593 Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.4' (#33) from renovate/yt-dlp-2026.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 5m17s
Build and Push Docker Image / deploy-on-green (push) Successful in 15s
Reviewed-on: #33
2026-02-04 01:32:58 +00:00
bf7739228f chore(deps): update dependency yt-dlp to v2026.2.4 2026-02-04 01:01:00 +00:00
270934613f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.1.31' (#32) from renovate/yt-dlp-2026.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 6m27s
Build and Push Docker Image / deploy-on-green (push) Successful in 10s
Reviewed-on: #32
2026-02-01 14:55:05 +00:00
5cea64626c chore(deps): update dependency yt-dlp to v2026.1.31 2026-02-01 01:01:03 +00:00
70d72759ce Merge pull request 'chore(deps): update dependency yt-dlp to v2026' (#31) from renovate/yt-dlp-2026.x into master
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 9s
Reviewed-on: #31
2026-01-31 19:02:01 +00:00
c537874adb chore(deps): update dependency yt-dlp to v2026 2026-01-29 18:02:10 +00:00
b496d14cf7 flake: add go and yt-dlp for refactor
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 23s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2026-01-26 20:34:04 -05:00
c2de1abfd2 flake: check for existance of python project
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 8s
2026-01-26 20:28:23 -05:00
635d5d5113 nix dev environment: update flake and add deno
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
2026-01-21 15:42:47 -05:00
174ce1213a Merge pull request 'chore(deps): update python docker tag to v3.14.2' (#29) from renovate/python-3.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: #29
2025-12-10 04:10:26 +00:00
701aa345e4 chore(deps): update python docker tag to v3.14.2 2025-12-08 23:02:07 +00:00
29ea1740c2 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.12.8' (#28) 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: #28
2025-12-08 15:43:37 +00:00
de070a0c1f chore(deps): update dependency yt-dlp to v2025.12.8 2025-12-08 01:00:40 +00:00
3f476bc3a2 Merge pull request 'chore(deps): update python docker tag to v3.14.1' (#27) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m16s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #27
2025-12-03 16:44:08 +00:00
e76f082b0d chore(deps): update python docker tag to v3.14.1 2025-12-03 02:00:39 +00:00
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
6 changed files with 33 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 }}
@@ -75,8 +75,13 @@ jobs:
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 }}"
if [ -n "$(git status --porcelain)" ]; then
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
else
echo "No changes to commit, skipping..."
fi
exit 0
- name: Push changes
uses: ad-m/github-push-action@v1.0.0
with:

View File

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

View File

@@ -1,3 +1,3 @@
discord.py==2.6.4
python-dotenv==1.1.1
yt-dlp==2025.10.22
discord.py==2.7.1
python-dotenv==1.2.2
yt-dlp==2026.2.21

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 = []

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1751498133,
"narHash": "sha256-QWJ+NQbMU+NcU2xiyo7SNox1fAuwksGlQhpzBl76g1I=",
"lastModified": 1770537093,
"narHash": "sha256-pF1quXG5wsgtyuPOHcLfYg/ft/QMr8NnX0i6tW2187s=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d55716bb59b91ae9d1ced4b1ccdea7a442ecbfdb",
"rev": "fef9403a3e4d31b0a23f0bacebbec52c248fbb51",
"type": "github"
},
"original": {

View File

@@ -25,14 +25,26 @@
pkgs.python314
pkgs.virtualenv
pkgs.ffmpeg_6
pkgs.deno
pkgs.go
pkgs.yt-dlp
];
shellHook = ''
if [ -f .env ]; then
set -a
source .env
set +a
fi
if [ ! -d .venv ]; then
echo "Creating Python virtual environment in .venv"
python3 -m venv .venv
fi
if compgen -G "app/*.py" > /dev/null; then
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
fi
'';
};
});