mirror of
https://github.com/transmission/transmission
synced 2025-03-04 18:48:06 +00:00
(trunk libT) #2110: "allow adding torrent files with no trackers" -- tr_torrentParse() shouldn't fail just because there aren't any announce URLs in the metadata
This commit is contained in:
parent
5e51618f83
commit
4df666bb22
1 changed files with 2 additions and 3 deletions
|
@ -258,8 +258,7 @@ tr_convertAnnounceToScrape( const char * announce )
|
|||
}
|
||||
|
||||
static const char*
|
||||
getannounce( tr_info * inf,
|
||||
tr_benc * meta )
|
||||
getannounce( tr_info * inf, tr_benc * meta )
|
||||
{
|
||||
const char * str;
|
||||
tr_tracker_info * trackers = NULL;
|
||||
|
@ -334,7 +333,7 @@ getannounce( tr_info * inf,
|
|||
inf->trackers = trackers;
|
||||
inf->trackerCount = trackerCount;
|
||||
|
||||
return inf->trackerCount ? NULL : "announce";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue