forked from premiere/premiere-libtorrent
export session_settings_map and fix rss issue in client_test
This commit is contained in:
parent
ad779a569c
commit
f221b3d931
|
@ -897,7 +897,8 @@ bool handle_alert(libtorrent::session& ses, libtorrent::alert* a
|
||||||
std::vector<char> buffer;
|
std::vector<char> buffer;
|
||||||
bencode(std::back_inserter(buffer), te);
|
bencode(std::back_inserter(buffer), te);
|
||||||
std::string filename = ti.name() + "." + to_hex(ti.info_hash().to_string()) + ".torrent";
|
std::string filename = ti.name() + "." + to_hex(ti.info_hash().to_string()) + ".torrent";
|
||||||
save_file(combine_path(monitor_dir, filename), buffer);
|
filename = combine_path(monitor_dir, filename);
|
||||||
|
save_file(filename, buffer);
|
||||||
|
|
||||||
files.insert(std::pair<std::string, libtorrent::torrent_handle>(filename, h));
|
files.insert(std::pair<std::string, libtorrent::torrent_handle>(filename, h));
|
||||||
non_files.erase(h);
|
non_files.erase(h);
|
||||||
|
|
|
@ -278,7 +278,7 @@ namespace aux {
|
||||||
|
|
||||||
#define TORRENT_SETTING(t, x) {#x, offsetof(session_settings,x), t},
|
#define TORRENT_SETTING(t, x) {#x, offsetof(session_settings,x), t},
|
||||||
|
|
||||||
bencode_map_entry session_settings_map[] =
|
TORRENT_EXPORT bencode_map_entry session_settings_map[] =
|
||||||
{
|
{
|
||||||
TORRENT_SETTING(std_string, user_agent)
|
TORRENT_SETTING(std_string, user_agent)
|
||||||
TORRENT_SETTING(integer, tracker_completion_timeout)
|
TORRENT_SETTING(integer, tracker_completion_timeout)
|
||||||
|
|
Loading…
Reference in New Issue