Coder Social home page Coder Social logo

usma0118 / magnet2torrent Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 433 KB

A python based utility to monitor and convert magnet links to torrents.

License: MIT License

Python 62.94% Dockerfile 7.44% HTML 28.34% CSS 1.28%
magnet-link magnet2torrent torrent transmission

magnet2torrent's People

Contributors

aberaud avatar adeebnqo avatar chelmi98 avatar danfolkes avatar dependabot[bot] avatar faless avatar fieu avatar hackergaucho avatar jarvvski avatar makefu avatar parnmatt avatar renovate[bot] avatar schleumer avatar scommab avatar usma0118 avatar valentt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

magnet2torrent's Issues

sync trackers with transmission client

Is your feature request related to a problem? Please describe.
Only add missing trackers to existing torrents in transmission.

  • Add logic to sync missing trackers to transmission
  • Run sync mechanism periodically
  • Web solution should display torrents and sync status

Additional context

Allow user to add magnet to for processing.

As user i want to add new magnet(s) to queue for processing.

Describe the solution you'd like

  • List currently queued magnets
  • Provide magnet status and possible errors if any
  • Provide status of magnets and generated torrents.
  • Allow user to fetch generated torrent.

—monitor flag not working

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.

Update Read me

After major updates, ReadMe requires rewrite with features and installation options.

  • Update read me to include installation options with main focus on docker
  • Provide sample for kubernetes deployment

How to store .torrent file (without configuring transmission)?

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:

  1. Whether it is possible to directly convert a magnet link to a .torrent file with this repository?
  2. What the output folder of this .torrent file would be?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update mcr.microsoft.com/vscode/devcontainers/python Docker tag to v1

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
installation/docker/docker-compose.yml
dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/python 0-3.10-bullseye
Dockerfile
  • python 3.11.0-alpine3.15
github-actions
.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
pep621
pyproject.toml
  • setuptools >=42
pipenv
Pipfile

  • Check this box to trigger a request for Renovate to run again on this repository

Support PUID/PGID env vars

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.