-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken delete_torrents
on qbittorrent 4.5.0+
#174
Conversation
Noted that changing from GET to POST may break the compatibility to qbittorrent < 4.5. |
same as #160 ? |
I woud give so much for this just to be merged and usable with |
I used this branch because of the broken FROM python:3.9-slim
WORKDIR /app
# Install git
RUN apt-get update && apt-get install -y git
# Clone the specific branch from the GitHub repository
RUN git clone --branch patch-1 https://github.com/Jorman/autoremove-torrents.git
# Navigate into the cloned directory
WORKDIR /app/autoremove-torrents
# Install the package
RUN python setup.py install
# Navigate back to the app directory
WORKDIR /app
COPY . /app
COPY docker-entrypoint.sh /app
RUN chmod +x /app/docker-entrypoint.sh
ENTRYPOINT ["/app/docker-entrypoint.sh"] |
if you don't want to run docker and just run the code, please install the 'original' version. Then edit the files in the /autoremovetorrents/client/qbittorrent.py script. See the changed code from this commit. |
Tested this change on 2.8.19 |
@Piste Hey, i'm new to dockerfiles and trying to compile a container like you. Can you clarify what you put inside of your docker-entrypoint.sh file? thanks |
@SnippetSpace I think that the only change that I made was to #!/bin/bash
while true
do
# Check if the environment variable is set to true
if [ "$ART_VIEW" = "true" ]; then
echo "View deletion, do not execute."
autoremove-torrents --view --conf=/config/$ART_CONFIG_FILE
else
echo "Executing deletion."
autoremove-torrents --conf=/config/$ART_CONFIG_FILE
fi
sleep 3600
done |
Hi, As I have issues running the script locally, I created the docker: For people new to it: Next is to run it from CLI, figuring out now :) |
Thank you for your contribution! |
qbittorrent did not update their official web API doc, but according to the discussion in qBittorrent/issues/18097, I changed the GET method to POST.
Test pass in Unraid 6.11, qbittorrent 4.5.2, python 3.8.5.