Compare commits
19 Commits
f81346b678
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ef217f9dd | |||
|
373348a336
|
|||
|
db488e06ab
|
|||
|
e124ea31de
|
|||
|
2f47bbd848
|
|||
| 709ccddf82 | |||
|
37dfa7c208
|
|||
| 8eb6bf3abc | |||
|
d98e96b4e2
|
|||
|
0c21a854d2
|
|||
|
0c1e715f98
|
|||
|
a3a74571b4
|
|||
| d29c0453e4 | |||
|
84f38f39e3
|
|||
|
c2c228d8de
|
|||
| cef71e1ba3 | |||
| 5ace6b5c91 | |||
| 7f1182f5c7 | |||
| f52505ccb6 |
@@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Checkout the repository code
|
# Checkout the repository code
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout target repository
|
- name: Checkout target repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: infrastructure/core-apps
|
repository: infrastructure/core-apps
|
||||||
token: ${{ secrets.ACTIONS_TOKEN }}
|
token: ${{ secrets.ACTIONS_TOKEN }}
|
||||||
@@ -68,8 +68,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
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.email "actions@noreply.dubyatp.xyz"
|
||||||
git config --local user.name "actions[bot]"
|
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 }}"
|
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM python:3.13.7-alpine3.22
|
FROM python:3.14.0-alpine3.22
|
||||||
COPY ./app /app
|
COPY ./app /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add ffmpeg
|
RUN apk add ffmpeg deno
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
CMD ["python", "/app/main.py"]
|
CMD ["python", "/app/main.py"]
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
discord.py==2.6.4
|
discord.py==2.6.4
|
||||||
python-dotenv==1.1.1
|
python-dotenv==1.2.1
|
||||||
yt-dlp==2025.9.26
|
yt-dlp==2025.11.12
|
||||||
@@ -2,7 +2,9 @@ import yt_dlp
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
def get_formats(url: str):
|
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)
|
info = ydl.extract_info(url, download=False)
|
||||||
|
|
||||||
video_options = []
|
video_options = []
|
||||||
|
|||||||
Reference in New Issue
Block a user