This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
forked from L4GSP1KE/Upload-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from maksii/dev
impro
- Loading branch information
Showing
28 changed files
with
2,860 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
FROM alpine:latest | ||
FROM python:3.12.5-alpine3.20 | ||
|
||
# add mono repo and mono | ||
RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing | ||
|
||
# install requirements | ||
RUN apk add --no-cache --upgrade ffmpeg mediainfo python3 git py3-pip python3-dev python3-tkinter g++ cargo mktorrent rust | ||
# Install dependencies | ||
RUN apk add --no-cache --upgrade \ | ||
ffmpeg mediainfo python3 git py3-pip python3-dev python3-tkinter g++ cargo mktorrent rust \ | ||
&& apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing | ||
|
||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup | ||
|
||
# Set the timezone | ||
ENV TZ=Europe/Kiev | ||
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# create virtual environment | ||
RUN python3 -m venv /venv | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
# change workdir | ||
WORKDIR UTOPIA-Upload-Assistant | ||
WORKDIR /UTOPIA-Upload-Assistant | ||
|
||
# install reqs | ||
COPY requirements.txt . | ||
RUN pip3 install -r requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# copy everything | ||
COPY . . | ||
|
||
ENTRYPOINT ["python3", "/UTOPIA-Upload-Assistant/upload.py"] | ||
# Define volumes | ||
VOLUME /UTOPIA-Upload-Assistant/data | ||
VOLUME /UTOPIA-Upload-Assistant/tmp | ||
|
||
# Set file ownership | ||
RUN chown -R appuser:appgroup /UTOPIA-Upload-Assistant | ||
|
||
# Switch to the non-root user | ||
USER appuser | ||
|
||
CMD ["tail", "-f", "/dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[center][note][color=Dodgerblue][b]Source: [/b][/color][/note][/center] | ||
[center][note]%SCREENS%[/note][/center] | ||
[center][note][color=Dodgerblue][b] | ||
|
||
Thanks and other information about the release | ||
|
||
[/b][/color][/note][/center] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
chcp 65001 | ||
upload.exe "C:\upload\movie.mkv" --screens 12 --personal --qbit-tag UTP --qbit-cat releases --descfile "H:\upload\description.txt" | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"audio": { | ||
"DTS": "DTS", | ||
"AAC": "AAC", | ||
"AAC LC": "AAC", | ||
"AC-3": "DD", | ||
"E-AC-3": "DD+", | ||
"MLP FBA": "TrueHD", | ||
"FLAC": "FLAC", | ||
"Opus": "Opus", | ||
"Vorbis": "Vorbis", | ||
"PCM": "LPCM", | ||
"LPCM Audio": "LPCM", | ||
"Dolby Digital Audio": "DD", | ||
"Dolby Digital Plus Audio": "DD+", | ||
"Dolby TrueHD Audio": "TrueHD", | ||
"DTS Audio": "DTS", | ||
"DTS-HD Master Audio": "DTS-HD MA", | ||
"DTS-HD High-Res Audio": "DTS-HD HRA", | ||
"DTS:X Master Audio": "DTS:X" | ||
}, | ||
"audio_extra": { | ||
"XLL": "-HD MA", | ||
"XLL X": ":X", | ||
"ES": "-ES" | ||
}, | ||
"format_extra": { | ||
"JOC": " Atmos", | ||
"16-ch": " Atmos", | ||
"Atmos Audio": " Atmos" | ||
}, | ||
"format_settings_extra": { | ||
"Dolby Surround EX": "EX" | ||
}, | ||
"commercial_names": { | ||
"Dolby Digital": "DD", | ||
"Dolby Digital Plus": "DD+", | ||
"Dolby TrueHD": "TrueHD", | ||
"DTS-ES": "DTS-ES", | ||
"DTS-HD High": "DTS-HD HRA", | ||
"Free Lossless Audio Codec": "FLAC", | ||
"DTS-HD Master Audio": "DTS-HD MA" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.