error videos
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -28,3 +28,5 @@ main
|
||||
zurg
|
||||
|
||||
config.yml
|
||||
|
||||
error_videos/*.mp4
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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:
|
||||
|
||||
25
error_videos/generate_error_videos.sh
Normal file
25
error_videos/generate_error_videos.sh
Normal 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
|
||||
Reference in New Issue
Block a user