diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-08-24 14:21:12 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-08-24 14:21:12 +0000 |
| commit | 26bf5ab5e2fe43c48f0a1d693f86d870d282bc26 (patch) | |
| tree | 6c4833b444b6b200d1014de974109c5e76daa2a3 /src/UTMetadataPostDownloadHandler.cc | |
| parent | a977bffbf5264c823f24eb6ece1d2950f8b8dabc (diff) | |
2010-08-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added --bt-tracker and --bt-exclude-tracker option. In
--bt-tracker option, you can specify comma separated list of
additional BitTorrent tracker's announce URI. These URIs are not
affected by --bt-exclude-tracker option because they are added
after URIs in --bt-exclude-tracker option are removed. In
--bt-exclude-tracker option, you can specify comma separated list
of BitTorrent tracker's announce URI to remove. You can use
special value '*' which matches all URIs, thus removes all
announce URIs. When specifying '*' in shell command-line, don't
forget to escape or quote it.
* src/BtDependency.cc
* src/OptionHandlerFactory.cc
* src/UTMetadataPostDownloadHandler.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/download_helper.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/BittorrentHelperTest.cc
* test/DownloadHelperTest.cc
Diffstat (limited to 'src/UTMetadataPostDownloadHandler.cc')
| -rw-r--r-- | src/UTMetadataPostDownloadHandler.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/UTMetadataPostDownloadHandler.cc b/src/UTMetadataPostDownloadHandler.cc index c82e11c9..7a603d6b 100644 --- a/src/UTMetadataPostDownloadHandler.cc +++ b/src/UTMetadataPostDownloadHandler.cc @@ -93,8 +93,10 @@ void UTMetadataPostDownloadHandler::getNextRequestGroups } if(!requestGroup->getOption()->getAsBool(PREF_BT_METADATA_ONLY)) { std::vector<SharedHandle<RequestGroup> > newRgs; + // Don't adjust announce URI because it has been done when + // RequestGroup is created with magnet URI. createRequestGroupForBitTorrent(newRgs, requestGroup->getOption(), - std::vector<std::string>(), torrent); + std::vector<std::string>(), torrent, false); requestGroup->followedBy(newRgs.begin(), newRgs.end()); if(!requestGroup->getMetadataInfo().isNull()) { setMetadataInfo(newRgs.begin(), newRgs.end(), |
