error videos

This commit is contained in:
Ben Sarmiento
2023-11-07 12:25:11 +01:00
parent 568a9a9b70
commit d4f309072d
4 changed files with 37 additions and 2 deletions

2
.gitignore vendored
View File

@@ -28,3 +28,5 @@ main
zurg
config.yml
error_videos/*.mp4

View File

@@ -19,5 +19,9 @@ RUN CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags="-s -w" -o zur
FROM alpine:3
WORKDIR /app
COPY --from=builder /app/zurg .
RUN apk add --no-cache fuse3
RUN apk add --no-cache fuse3 netcat-openbsd
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD nc -z localhost 9999 || exit 1
ENTRYPOINT ["./zurg"]

View File

@@ -2,7 +2,7 @@
zurg: v1
token: YOUR_RD_API_TOKEN # https://real-debrid.com/apitoken
port: 9999
port: 9999 # do not change this if you are running it inside a docker container
concurrent_workers: 10
check_for_changes_every_secs: 15
info_cache_time_hours: 12
@@ -25,6 +25,10 @@ directories:
- regex: /\btv/i # anything that has TV in it is a TV show, right?
- contains: complete
- contains: seasons
- any_file_inside_regex: /s\d\d/i
- any_file_inside_regex: /\-\s\d\d\s\-/i
- any_file_inside_regex: /episode.?\d{1,4}/i
- any_file_inside_regex: /ep.?.?\d{1,4}/i
# Configuration for movies
movies:

View File

@@ -0,0 +1,25 @@
#!/bin/bash
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='File is no longer available, wait until zurg repairs it':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p no_longer_available.mp4
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='Cannot unrestrict file, wait until zurg repairs it':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p cannot_unrestrict_file.mp4
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='Returned file is different and not streamable, delete this torrent':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p not_streamable.mp4
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='Error creating a new request, try restarting zurg':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p error_new_request.mp4
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='Error downloading file, check if real-debrid.com is reachable from your network':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p error_downloading_file.mp4
ffmpeg -f lavfi -i color=c=black:s=1920x1080:d=30 -vf \
"drawtext=fontfile=roboto.ttf:text='Cannot stream the file, wait until zurg repairs it':fontcolor=white:fontsize=48:x=(w-tw)/2:y=(h-th)/2" \
-c:v libx264 -pix_fmt yuv420p status_code.mp4