mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
(trunk web) #4446 "some trackerless torrents with magnet link don't update the name" -- fixed.
This commit is contained in:
parent
fd2eb5e2ec
commit
1d9ba2a21b
1 changed files with 11 additions and 4 deletions
|
@ -1009,13 +1009,20 @@ Transmission.prototype =
|
|||
|
||||
updateFromTorrentGet: function(updates, removed_ids)
|
||||
{
|
||||
var needinfo = [];
|
||||
var i, o, t, id, needed, needs,
|
||||
needinfo = [];
|
||||
|
||||
for (var i=0, o; o=updates[i]; ++i) {
|
||||
var t;
|
||||
var id = o.id;
|
||||
for (i=0; o=updates[i]; ++i)
|
||||
{
|
||||
id = o.id;
|
||||
if ((t = this._torrents[id]))
|
||||
{
|
||||
needed = t.needsMetaData();
|
||||
t.refresh(o);
|
||||
needs = t.needsMetaData();
|
||||
if (needed && !needs)
|
||||
needinfo.push(id);
|
||||
}
|
||||
else {
|
||||
var tr = this;
|
||||
t = tr._torrents[id] = new Torrent(o);
|
||||
|
|
Loading…
Reference in a new issue