nzbget / FakeDetector

Fake detection script for NZBGet
40 stars 13 forks source link

Script no longer working with NZBget Docker image #11

Open rosarch opened 4 years ago

rosarch commented 4 years ago

The linuxserver nzbget docker image (https://hub.docker.com/r/linuxserver/nzbget/) has been updated, they have dropped support for python 2.

The result of this is a broken script which no longer works with nzbget.

It will be great if someone with Python skills can update the script to be python 3 compatible.

dmce commented 4 years ago

As a short term fix you have 2 options:

Copy the script into here and use the converted version: https://www.pythonconverter.com/ Customise the linuxserver nzbget image: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

I used the first option and the script is at least running successfully

rojaxthegreat commented 4 years ago

As a short term fix you have 2 options:

Copy the script into here and use the converted version: https://www.pythonconverter.com/ Customise the linuxserver nzbget image: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

I used the first option and the script is at least running successfully

Thanks man

rosarch commented 4 years ago

Converting the scripts sounds like the easiest option, I did this via the pythonconverter site but still get a load of errors, is there anything else that needs to be done as well as the script conversion?

If I cant get it working I will go down the route of the second option.

simoncaron commented 4 years ago

@rosarch I updated the script to be Python3 compliant here, everything seems good on my side: https://github.com/skaro13/FakeDetector/blob/feature/python3-support/FakeDetector.py

rosarch commented 4 years ago

@skaro13 - Thanks, worked a treat!

jpartain89 commented 4 years ago

@skaro13 have you thought about trying to pull request that against this repo, so we all could benefit from it?

nemchik commented 4 years ago

@rosarch if you click here https://github.com/nzbget/FakeDetector/compare/nzbget:master...skaro13:feature/python3-support?expand=1 you can then just click the green button to Create pull request. Hopefully the maintainers here will accept it.

nemchik commented 4 years ago

Also to anyone who has cloned this repo for now you can pretty easily run:

git remote add skaro13 https://github.com/skaro13/FakeDetector.git
git fetch -p --all
git checkout skaro13/feature/python3-support

and then if that ever gets merged into this repo you can get switched back with:

git fetch -p --all
git reset --hard origin/master