BitTorrent Forums: Add multiple torrents from a list of URLs and/or MAGNETs - BitTorrent Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add multiple torrents from a list of URLs and/or MAGNETs Need a command to add multiple torrents with a list of MAGNETs

#1 User is offline   BitTorrent48 

  • New User
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 09-January 12

Posted 09 January 2012 - 01:09 PM

Dear honorable creator & keeper of the grand great BitTorrent program,

This dedicated humble user has learned that the hot key Ctrl-U
and other equivalent point & click sequence can only request BitTorrent
to add one torrent at a time by entering text of only one URL or MAGNET.

Humble he also has searched the Internet and found that several other users,
more advanced and expert than himself, had already expressed this desire
for a feature to add torrents from a batch of multiple URLs and/or MAGNETs
in order to become more powerful and more efficient BitTorrent users
to glorify the all powerful BitTorrent program to its next level of ultimateness.

May humble me bow below you to beg you please, please, please; with
an innocent & naive C language lineage programming suggestion,
that perhaps may touch your highness' heart to grant our wishes to come true?

In the BitTorrent program code -
which implements the handler of key event for Ctrl-U,
the segment that reads the input text
from "Add Torrent from URL" dialog pop up window's
"Please enter the location of the .torrent you want to open:" text box -

instead of currently accepting and validating only one line of text
(lines separated by newline characters or carriage return & newline pairs)
and then add one torrent with one line of text,

by 100% reuse of the existing code, briefly enhanced it
into two simple steps

1) split the user input text into an array of texts, e.g.
PHP: $c = count( $a = explode("\n", $text) );

2) put the code that adds a new torrent into a small loop:
PHP: for ($i=0; $i<$c; $i++) {
$input_line = $a[$i];
// existing code segment that validates input text
// existing code segment that adds a new torrent from input text
/* These segments may already are encapsulated into a function
say zf( $input_text ) {...}, then even better,
just call zf($a[$i]);
*/
}

When this change is implemented and released,
we would be able to copy from a text file
that contains a list of URL/MAGNETs one per line,
and paste into the same existing "Please enter the location of
the .torrent you want to open:" text box,
to add multiple torrents with a single press of Ctrl-U.

Please edify whether this is a stupid idea.
Thank you SIR! for your attention to this tiny code change request!!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic