Upload 6 files
Browse files- Dockerfile +3 -2
- bae.sh +9 -0
- fauna.sh +9 -0
- supervisord.conf +4 -4
Dockerfile
CHANGED
@@ -12,13 +12,14 @@ COPY --chown=user:user . .
|
|
12 |
RUN curl -s https://i.jpillora.com/divyam234/filebrowser | bash \
|
13 |
&& curl -s https://i.jpillora.com/caddyserver/caddy | bash \
|
14 |
&& curl -s https://rclone.org/install.sh | bash \
|
15 |
-
&& wget -q https://github.com/
|
|
|
16 |
|
17 |
# Getting rclone config
|
18 |
RUN --mount=type=secret,id=GIST_RCLONE,mode=0444,required=true \
|
19 |
mkdir -p /home/user/.config/rclone \
|
20 |
&& wget -q $(cat /run/secrets/GIST_RCLONE) -O /home/user/.config/rclone/rclone.conf && chmod 777 /home/user/.config/rclone/rclone.conf && chown -R user:user /home \
|
21 |
-
&& mkdir -p /app/yta/
|
22 |
|
23 |
# Getting youtube cookies
|
24 |
RUN --mount=type=secret,id=YT_COOKIES,mode=0444,required=true \
|
|
|
12 |
RUN curl -s https://i.jpillora.com/divyam234/filebrowser | bash \
|
13 |
&& curl -s https://i.jpillora.com/caddyserver/caddy | bash \
|
14 |
&& curl -s https://rclone.org/install.sh | bash \
|
15 |
+
&& wget -q https://github.com/ImPeekaboo/ytarchive/releases/latest/download/ytarchive_linux_amd64.zip \
|
16 |
+
&& unzip -q ytarchive_linux_amd64.zip -d /usr/bin && chmod 777 /usr/bin/ytarchive && rm ytarchive_linux_amd64.zip
|
17 |
|
18 |
# Getting rclone config
|
19 |
RUN --mount=type=secret,id=GIST_RCLONE,mode=0444,required=true \
|
20 |
mkdir -p /home/user/.config/rclone \
|
21 |
&& wget -q $(cat /run/secrets/GIST_RCLONE) -O /home/user/.config/rclone/rclone.conf && chmod 777 /home/user/.config/rclone/rclone.conf && chown -R user:user /home \
|
22 |
+
&& mkdir -p /app/yta/mumei /app/yta/kronii
|
23 |
|
24 |
# Getting youtube cookies
|
25 |
RUN --mount=type=secret,id=YT_COOKIES,mode=0444,required=true \
|
bae.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
while true; do
|
4 |
+
|
5 |
+
ytarchive --cookies /app/cookies.txt -v -w -r 120 --threads 4 --merge --add-metadata -t -o "/app/yta/bae/[%(upload_date)s] %(title)s [%(channel)s] (%(id)s)" https://www.youtube.com/channel/UCgmPnx-EEeOrZSg5Tiw7ZRQ/live best
|
6 |
+
rclone copy --checkers 16 --onedrive-encoding "Slash" "/app/yta/bae/" "anime:YtArchive/bae/"
|
7 |
+
rm -rf /app/yta/bae/*
|
8 |
+
|
9 |
+
done
|
fauna.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
while true; do
|
4 |
+
|
5 |
+
ytarchive --cookies /app/cookies.txt -v -w -r 120 --threads 4 --merge --add-metadata -t -o "/app/yta/fauna/[%(upload_date)s] %(title)s [%(channel)s] (%(id)s)" https://www.youtube.com/channel/UCO_aKKYxn4tvrqPjcTzZ6EQ/live best
|
6 |
+
rclone copy --checkers 16 --onedrive-encoding "Slash" "/app/yta/fauna/" "anime:YtArchive/fauna/"
|
7 |
+
rm -rf /app/yta/fauna/*
|
8 |
+
|
9 |
+
done
|
supervisord.conf
CHANGED
@@ -20,10 +20,10 @@ autorestart=true
|
|
20 |
command=/app/filebrowser.sh
|
21 |
autorestart=true
|
22 |
|
23 |
-
[program:
|
24 |
-
command=/app/
|
25 |
autorestart=true
|
26 |
|
27 |
-
[program:
|
28 |
-
command=/app/
|
29 |
autorestart=true
|
|
|
20 |
command=/app/filebrowser.sh
|
21 |
autorestart=true
|
22 |
|
23 |
+
[program:yta_mumei]
|
24 |
+
command=/app/mumei.sh
|
25 |
autorestart=true
|
26 |
|
27 |
+
[program:yta_kronii]
|
28 |
+
command=/app/kronii.sh
|
29 |
autorestart=true
|