mirror of https://github.com/aria2/aria2
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Show first URL in Download Results if file path is not available. * src/FileEntry.hpull/1/head
parent
130f830091
commit
e72c67a7ec
|
@ -1,3 +1,8 @@
|
||||||
|
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Show first URL in Download Results if file path is not available.
|
||||||
|
* src/FileEntry.h
|
||||||
|
|
||||||
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Throw exception if file path doesn't exist in FTP URL.
|
Throw exception if file path doesn't exist in FTP URL.
|
||||||
|
|
|
@ -273,19 +273,25 @@ void writeFilePath
|
||||||
o << "n/a";
|
o << "n/a";
|
||||||
} else {
|
} else {
|
||||||
if(e->getPath().empty()) {
|
if(e->getPath().empty()) {
|
||||||
|
std::deque<std::string> uris;
|
||||||
|
e->getUris(uris);
|
||||||
|
if(uris.empty()) {
|
||||||
o << "n/a";
|
o << "n/a";
|
||||||
|
} else {
|
||||||
|
o << uris.front();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(memory) {
|
if(memory) {
|
||||||
o << "[MEMORY]" << File(e->getPath()).getBasename();
|
o << "[MEMORY]" << File(e->getPath()).getBasename();
|
||||||
} else {
|
} else {
|
||||||
o << e->getPath();
|
o << e->getPath();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
size_t count = countRequestedFileEntry(first, last);
|
size_t count = countRequestedFileEntry(first, last);
|
||||||
if(count > 1) {
|
if(count > 1) {
|
||||||
o << " (" << count-1 << "more)";
|
o << " (" << count-1 << "more)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue