usma0118 / magnet2torrent Goto Github PK
View Code? Open in Web Editor NEWA python based utility to monitor and convert magnet links to torrents.
License: MIT License
A python based utility to monitor and convert magnet links to torrents.
License: MIT License
Is your feature request related to a problem? Please describe.
Only add missing trackers to existing torrents in transmission.
Additional context
As user i want to add new magnet(s) to queue for processing.
Describe the solution you'd like
OAuth2 support
I haven’t dug into history on this, but I was checking things out and finding that the logs were saying the Program was started, and then immediately shutting down. No errors.. just exiting. —monitor was being passed as the command in docker (per default).
I threw in some trace output, and found that the code in main.py was looking for args[‘monitor’] to equal the value ‘monitor’. But it is a True/False value.
if args['monitor'] is not None and args['monitor'] == 'monitor':
Changing that to the following seems to have resolved this for me.
if args['monitor'] is not None and args['monitor'] is True:
Am I correct that this is a bug? It just seems like something that would have been caught right away or something.
Tracking issue for:
After major updates, ReadMe requires rewrite with features and installation options.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Opens public page of the repo.
This one: https://hub.docker.com/r/antaresinc/magnet2torrent
Actual behavior
Opens docker login page.
I guess the link in the repo leads to repository management page.
Tracking issue for:
Hi, thank you for your work, and nice to see you using pre-commits! After creating the environment, and specifying the magnet and torrent watch folders with:
export magnet_watch=/some/dir
export torrent_blackhole=/some/other_dir
I was trying to convert a magnet link into a .torrent
file using:
python main.py -m some_magnet_link
And I got the error that the transmission_host was not found. It seems like the software tries to pass the magnet link into transmission, instead of downloading a .torrent
file. Would you be able to explain:
.torrent
file with this repository?.torrent
file would be?This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are pending. To force PRs open, click the checkbox below.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
installation/docker/docker-compose.yml
.devcontainer/Dockerfile
mcr.microsoft.com/vscode/devcontainers/python 0-3.10-bullseye
Dockerfile
python 3.11.0-alpine3.15
.github/workflows/ci-build.yml
actions/checkout v3
docker/setup-qemu-action v2
docker/setup-buildx-action v2
docker/metadata-action v4
docker/login-action v2
docker/build-push-action v3
anchore/scan-action dafbc97d7259af88b61bd260f2fde565d0668a72
github/codeql-action v3
.github/workflows/codeql-analysis.yml
actions/checkout v3
github/codeql-action v3
github/codeql-action v3
github/codeql-action v3
.github/workflows/release-docker-image.yml
actions/checkout v3
docker/setup-qemu-action v2
docker/setup-buildx-action v2
docker/metadata-action v4
docker/login-action v2
docker/build-push-action v3
anchore/scan-action dafbc97d7259af88b61bd260f2fde565d0668a72
github/codeql-action v3
pyproject.toml
setuptools >=42
Pipfile
MIT provides better contribution coverage.
Is your feature request related to a problem? Please describe.
In order to ensure, Docker user has required permissions when starting.
Is your feature request related to a problem? Please describe.
I'm trying to use this with unRaid, with a mounted bind volume for /torrents
.
Describe the solution you'd like
Support passing env vars PUID
and PGID
.
Additional context
Here's what the logs look like currently:
[2022-03-02 12:19:22] Processing file: 637818202878625691-LinuxTracker-Kali linux 2022 1 Virtualbox 64bit OVA.magnet
INFO:__main__:Processing file: 637818202878625691-LinuxTracker-Kali linux 2022 1 Virtualbox 64bit OVA.magnet
[2022-03-02 12:19:22] Acquiring torrent metadata for hash 1e4cc12d6117f7d1bce4d7df164eecf3c1875f8c
INFO:__main__:Acquiring torrent metadata for hash 1e4cc12d6117f7d1bce4d7df164eecf3c1875f8c
Traceback (most recent call last):
File "/app/main.py", line 100, in <module>
program.main()
File "/app/main.py", line 67, in main
torrent_path=client.magnet2torrent(magnet_contents,output)
File "/app/torrent/torrentclient.py", line 117, in magnet2torrent
with open(output, 'wb') as f:
PermissionError: [Errno 13] Permission denied: '/torrent/kali-linux-2022.1-virtualbox-amd64-ova.torrent'
This is a someone standard paradigm other docker images use:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.