Skip to content

Commit

Permalink
auto-update yt-dlp
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed Jun 26, 2024
1 parent 5409e14 commit d0c85d9
Show file tree
Hide file tree
Showing 8 changed files with 771 additions and 590 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ ADMIN_ID="123456789"

TELEGRAM_API_ROOT="http://127.0.0.1:8081"
TELEGRAM_WEBHOOK_PORT="8443"
TELEGRAM_WEBHOOK_URL="http://127.0.0.1:8443"
TELEGRAM_WEBHOOK_URL="http://127.0.0.1:8443"

# whether to automatically update yt-dlp
# defaults to "true", set to "false" to disable
YTDL_AUTOUPDATE="true"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ I recommend [Hetzner][hetzner] and you can get 20€ in credits for free using m
| `TELEGRAM_API_ROOT` | The URL of your Telegram bot API server (can probably be left unchanged) |
| `TELEGRAM_WEBHOOK_PORT` | The port the bot will listen on (can probably be left unchanged) |
| `TELEGRAM_WEBHOOK_URL` | The URL of your Telegram bot API server (can probably be left unchanged) |
| `YTDL_AUTOUPDATE` | Whether to automatically update yt-dlp (defaults to `"true"`, set to `"false"` to disable) |

- Run `docker compose up -d` in the folder you created.

Expand Down
4 changes: 4 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ services:
TELEGRAM_WEBHOOK_PORT: "8443"
TELEGRAM_WEBHOOK_URL: "http://127.0.0.1:8443"

# whether to automatically update yt-dlp
# defaults to "true", set to "false" to disable
YTDL_AUTOUPDATE: "true"

telegram-bot-api:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
network_mode: host
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"dependencies": {
"@grammyjs/parse-mode": "^1.10.0",
"@resync-tv/yt-dlp": "0.3.1",
"@resync-tv/yt-dlp": "0.4.1",
"croner": "^8.0.2",
"express": "^4.19.2",
"grammy": "^1.24.1"
}
Expand Down
Loading

0 comments on commit d0c85d9

Please sign in to comment.