From 1abc11b5fcf6cfcf6a42f2904e479ec43c0f0559 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 24 Dec 2022 11:04:46 +0000 Subject: [PATCH] Rollback to pip --- Dockerfile | 5 +++-- commands/pygg.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b6859e..6c1cea8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,11 @@ FROM linuxserver/ffmpeg:5.1.2-cli-ls71 RUN apt-get update && \ apt-get install -y \ vim p7zip* git rsync lftp speedtest-cli rename wget curl procps psmisc \ - openssh-client transmission-cli yt-dlp \ + openssh-client transmission-cli python3-pip \ python3-requests python3-bs4 && \ rm -rf /var/lib/apt/lists/* -RUN curl -sSL https://raw.githubusercontent.com/tremc/tremc/master/tremc -o /usr/local/bin/tremc && \ +RUN pip3 install yt-dlp && \ + curl -sSL https://raw.githubusercontent.com/tremc/tremc/master/tremc -o /usr/local/bin/tremc && \ curl -sSL https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar xvz && \ install -vt /usr/local/bin drone && rm -vf drone && \ update-alternatives --set editor /usr/bin/vim.basic diff --git a/commands/pygg.py b/commands/pygg.py index cf3ecfd..7ae454e 100644 --- a/commands/pygg.py +++ b/commands/pygg.py @@ -36,7 +36,7 @@ class FlareRequests(requests.Session): raise requests.RequestException(response) post_data = { - "cmd": f"request.{method.lower()}", + "cmd": f"request.{method}", "session": FLARESESSION, "url": url, }