Closed ghost closed 7 years ago
You can do it via a script using the 'execute on assign' tag feature (right-click on the tag in sidebar to set this)
For example
javascript( var ta = pi.getTorrentManager().getAttribute( com.biglybt.pif.torrent.TorrentAttribute.TA_NETWORKS); var StringArray = Java.type("java.lang.String[]"); var nets = new StringArray(1); nets[0] = com.biglybt.core.util.AENetworkClassifier.AT_I2P; download.setListAttribute( ta, nets ))
sets assigned downloads to just be the I2P network.
Has to be a single line of script if you enter it directly.
that sounds great - can trackers also be added with javascript ?
trackers can be added more simply by using 'tracker templates' - https://github.com/BiglySoftware/BiglyBT/wiki/Tags#Tracker_Templates
Yes i know - but in the stage of metadata download there is no option for this except scripts. Thanx for the support !
ah, metadata download... that's a quantum download, exists and doesn't. You could add an &tr=
so the javascript could append &tr= to the url in the metadata phase ?
no :( I meant you could manually add it to the magnet before entering it in BiglyBT (obviously not a very good solution)
I can add a 'isMagnet()' method to the Tag Constraints language that would allow you to use Tracker Templates to do this, that work for you?
it'll be in next beta
That would be fantastic - thanx for your excellent support ! Do you have a donation link for your project ? Many of the UI links don't work if you're on i2p only - any chance getting those using the i2phelper ?
There's the Donation Help menu option but that won't work with I2P only of course - good point about links in an I2P only setup - many of them allow you to right-click and select the URL which you can then manually paste into a TorBrowser (for example) - if you have the TorBrowser plugin installed then that's one way of getting that.
You can donate btc at 1BiGLYBT38ttJhvZkjGc5mCw5uKoRHcUmr - thanks :)
The isMeta works like a charm ! Thumbs up - hands down :-)
excellento!
It would be great to be able to toggle networks based on tags !