Open hollownights opened 1 year ago
In the Preferences dialog under Transfers -> Management you can have Transmission call a script when a download completes.
I'd suggest writing a generic IPFS pinning script and sharing that with the community.
I tried writing something, but IPFS command line and API aren't really straightforward to me. Plus, I do think this should be a native setting within Transmission with a checkbox for "on/off" and fields to inform the port used for the local API or the location to an executable.
Here is a real situation when being able to easily import a downloaded file or folder from a BitTorrent client into a local IPFS node without duplicating the files or the need to use command line would be of great help: importing big dumps of files from a library repository. Below, two different posts from two different projects that describe this exact situation.
@hollownights, please we warned that posting links to content advertising copyright infringement is not welcome here.
@mikedld My bad. That link (even the website, I think) wasn't pointing to any copyrighted protected content, so I thought it wouldn't be a problem. Let me know if I can at least leave the title of the post here so people know what to lookup for.
Please don't. No one asked for any further proof to support your point, so none is necessary.
Got it! Thanks!
I tried writing something, but IPFS command line and API aren't really straightforward to me. Plus, I do think this should be a native setting within Transmission with a checkbox for "on/off" and fields to inform the port used for the local API or the location to an executable.
At first glance this feels like something that <1% of users would use; IDK how many people are using BitTorrent + IPFS in concert. (If I'm wrong about this, users feel free to emoji-vote this comment :smile_cat:) Why not use the IPFS cli tools in a script-torrent-done-filename
script? That would be a lot less work and would get the job done.
Even if this should be in Transmission, it's unlikely to be prioritized in the near term because we've already got a pretty big wishlist lined up for Transmission 5.
So, in order of preference:
If someone wants to write a script-torrent-done
script to act as glue between Transmission and IPFS, please make a PR for the FAQ so that users can copy & paste the sample script. IMO this would be great.
If someone wants to bake this into Transmission and can convince me that should happen (I'm not vetoing the idea; I just need to be persuaded), I'm happy to answer questions & do code review on PR submissions.
I also see no point in backing this rare need into Transmission while it's achievable by script-torrent-done
. I think this is the right place for the needed functionality. Now you just need to find someone (from the larger set - not just Transmission developers) who would do that. Would be great if you share the resulting script for others.
At first glance this feels like something that <1% of users would use; IDK how many people are using BitTorrent + IPFS in concert. (If I'm wrong about this, users feel free to emoji-vote this comment 😸) Why not use the IPFS cli tools in a
script-torrent-done-filename
script? That would be a lot less work and would get the job done.
@ckerr As long as a solution (any solution) makes for a really easy way to use a functionality (any functionality), I don't oppose it.
This discussion is more advanced here: frostwire/frostwire#997
Following the idea of making Transmission more IPFS-friendly, I propose that it should be possible to import a downloaded file or folder directly from Transmission to the users’ local IPFS node, pinning it to the node, and even better if this can be set up to be done automatically. Such a behavior, combined with IPFS URLs used as webseeds (#4483), would make for a more decentralized and resilient web with better interoperability between a decentralized web protocol (IPFS) and a decentralized but “files-only protocol” like BitTorrent.
Relevant links:
https://docs.ipfs.tech/basics/desktop-app/
https://docs.ipfs.tech/reference/kubo/cli/
https://docs.ipfs.tech/reference/kubo/rpc/
P.S.: I am not a developer, so I’m here as a user to propose such a feature, discuss it and test it if it gets implemented.