30 Commits
v1.0.2 ... dev

Author SHA1 Message Date
123c98bdbb Merge pull request 'chore(deps): update golang:1.26.2-trixie docker digest to c0074c7' (#68) from renovate/golang-1.26.2-trixie into dev
Reviewed-on: #68
2026-04-15 14:40:20 +00:00
3012f6c01b chore(deps): update golang:1.26.2-trixie docker digest to c0074c7
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 6m15s
2026-04-12 11:00:47 +00:00
b987f4775f Merge pull request 'chore(deps): update ad-m/github-push-action action to v1.1.0' (#66) from renovate/ad-m-github-push-action-1.x into dev
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 9s
Reviewed-on: #66
2026-04-10 12:09:12 +00:00
8ff5caaede chore(deps): update ad-m/github-push-action action to v1.1.0
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 4m25s
2026-04-10 06:01:25 +00:00
163a2af84b Merge pull request 'chore(deps): update golang docker tag to v1.26.2' (#65) from renovate/golang-1.x into dev
Reviewed-on: #65
2026-04-08 02:04:23 +00:00
88ced43981 chore(deps): update golang docker tag to v1.26.2
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 19s
2026-04-08 00:01:34 +00:00
f3cd0d0a89 Merge pull request 'chore(deps): update golang:1.26.1-trixie docker digest to 1d414b0' (#64) from renovate/golang-1.26.1-trixie into dev
Reviewed-on: #64
2026-04-07 23:10:24 +00:00
9ae57862a0 chore(deps): update golang:1.26.1-trixie docker digest to 1d414b0
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 4m31s
2026-04-07 20:01:44 +00:00
25eafe3959 Merge pull request 'chore(deps): update golang:1.26.1-trixie docker digest to e3474b9' (#63) from renovate/golang-1.26.1-trixie into dev
Reviewed-on: #63
2026-04-07 15:22:57 +00:00
a250bb7c9b Merge pull request 'chore(deps): update debian:13-slim docker digest to 4ffb3a1' (#62) from renovate/debian-13-slim into dev
Reviewed-on: #62
2026-04-07 15:22:47 +00:00
8768ea181c chore(deps): update golang:1.26.1-trixie docker digest to e3474b9
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 5m41s
2026-04-07 08:02:10 +00:00
7e0fd89e11 chore(deps): update debian:13-slim docker digest to 4ffb3a1
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m38s
2026-04-07 03:01:26 +00:00
445e10fa16 Merge pull request 'chore(deps): update golang:1.26.1-trixie docker digest to ce3f1c8' (#61) from renovate/golang-1.26.1-trixie into dev
Reviewed-on: #61
2026-03-21 15:37:35 +00:00
0b621acdfb chore(deps): update golang:1.26.1-trixie docker digest to ce3f1c8
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 15s
2026-03-21 08:01:04 +00:00
bdfd612fa0 Merge pull request 'chore(deps): update module github.com/lrstanley/go-ytdlp to v1.3.5' (#59) from renovate/github.com-lrstanley-go-ytdlp-1.x into dev
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 36s
Reviewed-on: #59
2026-03-18 01:54:56 +00:00
de6e50179a Merge pull request 'chore(deps): update dependency yt-dlp/yt-dlp to v2026.03.17' (#58) from renovate/yt-dlp-yt-dlp-2026.x into dev
Reviewed-on: #58
2026-03-18 01:54:37 +00:00
38691be66b chore(deps): update module github.com/lrstanley/go-ytdlp to v1.3.5
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 4m11s
2026-03-18 01:01:26 +00:00
46bbecb280 chore(deps): update dependency yt-dlp/yt-dlp to v2026.03.17
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 40s
2026-03-18 00:01:37 +00:00
772993a596 Merge pull request 'chore(deps): update golang:1.26.1-trixie docker digest to 96b2878' (#57) from renovate/golang-1.26.1-trixie into dev
Reviewed-on: #57
2026-03-17 17:39:14 +00:00
f809b08c37 chore(deps): update golang:1.26.1-trixie docker digest to 96b2878
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 6m56s
2026-03-17 11:02:10 +00:00
4f3b30885e Merge pull request 'chore(deps): update debian:13-slim docker digest to 26f98cc' (#55) from renovate/debian-13-slim into dev
Reviewed-on: #55
2026-03-17 03:34:11 +00:00
6c0316ac28 Merge pull request 'chore(deps): update golang:1.26.1-trixie docker digest to 9c51d8b' (#56) from renovate/golang-1.26.1-trixie into dev
Reviewed-on: #56
2026-03-17 03:33:57 +00:00
52cc00190b chore(deps): update golang:1.26.1-trixie docker digest to 9c51d8b
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 6m58s
2026-03-17 02:01:29 +00:00
a7765f90d9 chore(deps): update debian:13-slim docker digest to 26f98cc
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m52s
2026-03-17 00:01:49 +00:00
7b4d25d484 Merge pull request 'chore(deps): update module github.com/lrstanley/go-ytdlp to v1.3.4' (#53) from renovate/github.com-lrstanley-go-ytdlp-1.x into dev
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 4m42s
Reviewed-on: #53
2026-03-14 03:40:32 +00:00
b392048ca1 chore(deps): update module github.com/lrstanley/go-ytdlp to v1.3.4
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m47s
2026-03-13 23:01:09 +00:00
b0cb606afe Merge pull request 'chore(deps): update dependency yt-dlp/yt-dlp to v2026.03.13' (#52) from renovate/yt-dlp-yt-dlp-2026.x into dev
Reviewed-on: #52
2026-03-13 17:06:09 +00:00
f303eb3eb8 chore(deps): update dependency yt-dlp/yt-dlp to v2026.03.13
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 5m8s
2026-03-13 16:01:04 +00:00
e641e1d2a5 Merge pull request 'fix: resolve timeout issues and implement format retrieval retries' (#50) from fix-timeout-and-implement-retries into dev
Reviewed-on: #50
2026-03-13 01:00:21 +00:00
a6dc4e27b9 fix: resolve timeout issues and implement format retrieval retries
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m36s
2026-03-12 20:55:42 -04:00
6 changed files with 36 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ jobs:
fi
exit 0
- name: Push changes
uses: ad-m/github-push-action@v1.0.0
uses: ad-m/github-push-action@v1.1.0
with:
github_token: ${{ secrets.ACTIONS_TOKEN }}
repository: infrastructure/core-apps

View File

@@ -3,7 +3,7 @@
########################################
# Versions
ARG YT_DLP_VERSION="2026.03.03"
ARG YT_DLP_VERSION="2026.03.17"
################################################################################
# Deno builder stage
@@ -38,7 +38,7 @@ RUN case "$TARGETARCH" in \
################################################################################
# FFmpeg builder stage
FROM debian:13-slim@sha256:1d3c811171a08a5adaa4a163fbafd96b61b87aa871bbc7aa15431ac275d3d430 AS ffmpeg-builder
FROM debian:13-slim@sha256:4ffb3a1511099754cddc70eb1b12e50ffdb67619aa0ab6c13fcd800a78ef7c7a AS ffmpeg-builder
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg
COPY --from=yt-dlp-builder /rootfs/bin/yt-dlp /yt-dlp
@@ -54,7 +54,7 @@ RUN mkdir -p /rootfs/bin && \
################################################################################
# App builder stage
FROM golang:1.26.1-trixie@sha256:ab8c4944b04c6f97c2b5bffce471b7f3d55f2228badc55eae6cce87596d5710b AS app-builder
FROM golang:1.26.2-trixie@sha256:c0074c718b473f3827043f86532c4c0ff537e3fe7a81b8219b0d1ccfcc2c9a09 AS app-builder
COPY app/ /opt/app
WORKDIR /opt/app

View File

@@ -4,7 +4,7 @@ go 1.25.2
require (
github.com/bwmarrin/discordgo v0.29.0
github.com/lrstanley/go-ytdlp v1.3.3
github.com/lrstanley/go-ytdlp v1.3.5
)
require (

View File

@@ -16,6 +16,10 @@ github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0U
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/lrstanley/go-ytdlp v1.3.3 h1:Y9kJcdTwskPWDiwONMIl501Dhi+OrTF7HHY6J6+Lbco=
github.com/lrstanley/go-ytdlp v1.3.3/go.mod h1:VgjnTrvkTf+23JuySjyPq1iQ8ijSovBtTPpXH5XrLtI=
github.com/lrstanley/go-ytdlp v1.3.4 h1:x3ppgdeN3FbguT5ifc6ISrgjYN10+dVUAbprA7/dYrk=
github.com/lrstanley/go-ytdlp v1.3.4/go.mod h1:VgjnTrvkTf+23JuySjyPq1iQ8ijSovBtTPpXH5XrLtI=
github.com/lrstanley/go-ytdlp v1.3.5 h1:eT+29mK3Lp+XPMQOH25+jVerrrjifYW1o3IkTYJ9SMs=
github.com/lrstanley/go-ytdlp v1.3.5/go.mod h1:VgjnTrvkTf+23JuySjyPq1iQ8ijSovBtTPpXH5XrLtI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=

View File

@@ -6,6 +6,7 @@ import (
"os"
"os/signal"
"sort"
"strings"
"syscall"
"github.com/bwmarrin/discordgo"
@@ -365,8 +366,20 @@ func main() {
h(s, i)
}
case discordgo.InteractionMessageComponent:
if h, ok := componentHandlers[i.MessageComponentData().CustomID]; ok {
customID := i.MessageComponentData().CustomID
if h, ok := componentHandlers[customID]; ok {
h(s, i)
} else if strings.HasPrefix(customID, "retry:") {
url := strings.TrimPrefix(customID, "retry:")
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseUpdateMessage,
Data: &discordgo.InteractionResponseData{
Content: fmt.Sprintf("%s Fetching available formats...", loading_emoji),
Components: []discordgo.MessageComponent{},
Flags: discordgo.MessageFlagsEphemeral,
},
})
go fetchAndShowFormats(s, i, url)
}
}
})
@@ -444,6 +457,16 @@ func fetchAndShowFormats(s *discordgo.Session, i *discordgo.InteractionCreate, u
if err != nil {
_, err = s.InteractionResponseEdit(i.Interaction, &discordgo.WebhookEdit{
Content: ptr("❌ Error fetching formats: " + err.Error()),
Components: &[]discordgo.MessageComponent{
&discordgo.ActionsRow{
Components: []discordgo.MessageComponent{
discordgo.Button{
Label: "Retry",
CustomID: fmt.Sprintf("retry:%s", url),
},
},
},
},
})
if err != nil {
log.Printf("Error updating interaction: %v", err)

View File

@@ -19,7 +19,9 @@ func GetFormats(url string) (*FormatOptions, error) {
SkipDownload().
DumpJSON()
result, err := dl.Run(context.TODO(), url)
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()
result, err := dl.Run(ctx, url)
if err != nil {
return nil, err
}