From 2745d85597f593d07a9b3a8b6cd9d23592d6fcc4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 23 Dec 2009 13:21:12 +0000 Subject: 2009-12-23 Tatsuhiro Tsujikawa Added --bt-save-metadata option. When true is given, it saves metadata as .torrent file. This option has effect only when BitTorrent Magnet URI is used. The filename is name in metadata with suffix .torrent. The directory to be saved is the same directory where download file is saved. If the same file already exists, metdata is not saved. * src/OptionHandlerFactory.cc * src/UTMetadataPostDownloadHandler.cc * src/UTMetadataPostDownloadHandler.h * src/message.h * src/prefs.cc * src/prefs.h * src/usage_text.h * test/UTMetadataDataExtensionMessageTest.cc --- src/UTMetadataPostDownloadHandler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/UTMetadataPostDownloadHandler.h') diff --git a/src/UTMetadataPostDownloadHandler.h b/src/UTMetadataPostDownloadHandler.h index 3e566d32..b4953733 100644 --- a/src/UTMetadataPostDownloadHandler.h +++ b/src/UTMetadataPostDownloadHandler.h @@ -40,9 +40,13 @@ namespace aria2 { +class Logger; + class UTMetadataPostDownloadHandler:public PostDownloadHandler { private: + Logger* _logger; + class Criteria:public RequestGroupCriteria { public: -- cgit