zzz.i2p

Development discussions
Create I2PSnark torrents faster and easier with a graphical menu. « Bug Reports and Feature Requests « I2P Help, Hints, Advice
 
Sat, 26 Jun 2021, 10:58am #1
Little Grasshopper
Lurker

Hello i2p developers,

all files still need to be entered into I2PSnark with the keyboard to create a torrent.
Can not this be done through a graphical interface so that you only have to select the desired file to distribute with a mouse click?

This saves a lot of time, especially if you want to distribute several files quickly that also have a long name.

Thanks for the great development.
I2P is getting better and better!

Sat, 26 Jun 2021, 01:07pm #2
zzz
Administrator
Zzz

It's a good suggestion. I've tried to do it before, it's not easy, because i2psnark is a web UI, not a native application. The local filesystem (or the filesystem that the browser is on if it's different) isn't completely available due to security reasons in the browser. I wasn't happy with how it was going and I abandoned it.

However, you can't add each file name for a single torrent. Just put them all in a directory and provide the directory name.

Mon, 28 Jun 2021, 03:26pm #3
zab
I2P Legend

Something similar to what the OP wants can be achieved via a javascript "drop area" where the user drags-and-drops files or folders from the local filesystem. Then those can be automatically added to a torrent on the server filesystem.

There is no way to my knowledge to tell if the local and server filesystems are the same, so if that's the case data duplication is bound to occur, but that may not be a bad thing.

This is how I do it in MuWire: http://git.idk.i2p/zlatinb/muwire/-/blob/master...


email: zab@mail.i2p Irc2P/keybase: zlatinb
blog: http://zab.i2p
MuWire: http://muwire.i2p
MuCats: http://mucats.i2p
MuWire nickname: zlatinb@3k2gijdfdcuczkfypfddj4qsnnf744mj

Tue, 29 Jun 2021, 11:14am #4
Little Grasshopper
Lurker

zzz wrote:

It's a good suggestion. I've tried to do it before, it's not easy, because i2psnark is a web UI, not a native application. The local filesystem (or the filesystem that the browser is on if it's different) isn't completely available due to security reasons in the browser. I wasn't happy with how it was going and I abandoned it.

However, you can't add each file name for a single torrent. Just put them all in a directory and provide the directory name.

Seems that, I2PSnark can only create torrents via the I2PSnark root directory.
This makes it difficult if you have many TB of data on external hard drives.
You can move files to the menu item "Create Torrents" via the desktop interface and the directory will be recognized.
It looks like this:
file:///run/media/home/12TB HDD 4/Videos/Movie.......
but I2PSnark does not create a torrent on in the directory on the external harddisk.