Skip to content

Commit 7c777f6

Browse files
committed
add torrent downloader
1 parent b598fb0 commit 7c777f6

11 files changed

+11
-5
lines changed

HISTORY.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 07.05.2013
2+
3+
* add torrent downloader which will download torrents and store them in database or local file system
4+
* hash_reader now use local torrents first, if not it will download, and depends on the config it may save the file too
5+

ebin/config.beam

3 KB
Binary file not shown.

ebin/db_hash_reader.beam

964 Bytes
Binary file not shown.

ebin/db_hash_reader_sup.beam

104 Bytes
Binary file not shown.

ebin/db_loc_torrent.beam

32 Bytes
Binary file not shown.

ebin/dhtcrawler.app

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{application,dhtcrawler,
22
[{description,"A DHT crawler to index magnet hash to torrent"},
3-
{vsn,"0dcf085"},
3+
{vsn,"5b344c4"},
44
{registered,[dht_crawler_sup]},
55
{applications,[kernel,stdlib,crypto,public_key,ssl,inets,bson,
66
mongodb]},
77
{mod,{crawler_app,[]}},
8-
{modules,[bt_conn,bt_message,crawler_app,crawler_http,
8+
{modules,[bt_conn,bt_message,config,crawler_app,crawler_http,
99
crawler_stats,crawler_sup,db_frontend,db_hash,
1010
db_hash_reader,db_hash_reader_sup,db_loc_torrent,
1111
db_store_mongo,db_system,dht_monitor,
1212
hash_reader_stats,http_cache,http_handler,loc_torrent,
13-
loc_torrent_sup,string_split,time_util,tor_download,
14-
tor_download_stats,torrent_file,transfer,urldecode,
15-
vlog]}]}.
13+
loc_torrent_cache,loc_torrent_sup,string_split,
14+
time_util,tor_download,tor_download_stats,
15+
torrent_file,transfer,urldecode,vlog]}]}.

ebin/loc_torrent.beam

44 Bytes
Binary file not shown.

ebin/loc_torrent_cache.beam

2.44 KB
Binary file not shown.

ebin/loc_torrent_sup.beam

148 Bytes
Binary file not shown.

ebin/transfer.beam

2.93 KB
Binary file not shown.

win_start_torcache.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
erl -pa ebin -noshell -run loc_torrent_sup start_standalone localhost 27017 20

0 commit comments

Comments
 (0)