Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ func errorStatus(err error) int {
return http.StatusServiceUnavailable
case strings.Contains(msg, "could not parse YouTube page"):
return http.StatusBadGateway
case strings.Contains(msg, "no transcript found"):
case strings.Contains(msg, "no caption tracks"),
strings.Contains(msg, "no transcript found"):
return http.StatusNotFound
default:
return http.StatusBadGateway
Expand Down