mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Added Portuguese and brazilian translations to desktop file
- Recursive torrent download now consider torrents with more than one file inside
This commit is contained in:
parent
3e90e56266
commit
e53c7aaea6
@ -16,6 +16,8 @@ GenericName[ja]=Bittorrent クライアント
|
|||||||
GenericName[ko]=비토렌트 클라이언트
|
GenericName[ko]=비토렌트 클라이언트
|
||||||
GenericName[nl]=Bittorrent client
|
GenericName[nl]=Bittorrent client
|
||||||
GenericName[pl]=Klient Bittorrent
|
GenericName[pl]=Klient Bittorrent
|
||||||
|
GenericName[pt]=Cliente Bittorrent
|
||||||
|
GenericName[pt_BR]=Cliente Bittorrent
|
||||||
GenericName[ru]=клиент Bittorrent
|
GenericName[ru]=клиент Bittorrent
|
||||||
GenericName[sk]=Klient siete Bittorrent
|
GenericName[sk]=Klient siete Bittorrent
|
||||||
GenericName[sv]=Bittorrent-klient
|
GenericName[sv]=Bittorrent-klient
|
||||||
|
@ -1236,21 +1236,23 @@ void bittorrent::readAlerts() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
h.save_resume_data();
|
h.save_resume_data();
|
||||||
// Check if there is a single torrent file inside
|
// Check if there are torrent files inside
|
||||||
QString torrent_relpath = misc::toQString(h.get_torrent_info().file_at(0).path);
|
for(int i=0; i<h.get_torrent_info().num_files(); ++i) {
|
||||||
if(torrent_relpath.endsWith(".torrent")) {
|
QString torrent_relpath = misc::toQString(h.get_torrent_info().file_at(i).path);
|
||||||
addConsoleMessage(tr("Recursive download of file %1 embedded in torrent %2", "Recursive download of test.torrent embedded in torrent test2").arg(torrent_relpath).arg(h.name()));
|
if(torrent_relpath.endsWith(".torrent")) {
|
||||||
QString torrent_fullpath = h.save_path()+QDir::separator()+torrent_relpath;
|
addConsoleMessage(tr("Recursive download of file %1 embedded in torrent %2", "Recursive download of test.torrent embedded in torrent test2").arg(torrent_relpath).arg(h.name()));
|
||||||
boost::intrusive_ptr<torrent_info> t;
|
QString torrent_fullpath = h.save_path()+QDir::separator()+torrent_relpath;
|
||||||
try {
|
boost::intrusive_ptr<torrent_info> t;
|
||||||
t = new torrent_info(torrent_fullpath.toLocal8Bit().data());
|
try {
|
||||||
QString sub_hash = misc::toQString(t->info_hash());
|
t = new torrent_info(torrent_fullpath.toLocal8Bit().data());
|
||||||
// Passing the save path along to the sub torrent file
|
QString sub_hash = misc::toQString(t->info_hash());
|
||||||
TorrentTempData::setSavePath(sub_hash, h.save_path());
|
// Passing the save path along to the sub torrent file
|
||||||
addTorrent(torrent_fullpath);
|
TorrentTempData::setSavePath(sub_hash, h.save_path());
|
||||||
} catch(std::exception&) {
|
addTorrent(torrent_fullpath);
|
||||||
qDebug("Caught error loading torrent");
|
} catch(std::exception&) {
|
||||||
addConsoleMessage(tr("Unable to decode %1 torrent file.").arg(torrent_fullpath), QString::fromUtf8("red"));
|
qDebug("Caught error loading torrent");
|
||||||
|
addConsoleMessage(tr("Unable to decode %1 torrent file.").arg(torrent_fullpath), QString::fromUtf8("red"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qDebug("Received finished alert for %s", h.name().toLocal8Bit().data());
|
qDebug("Received finished alert for %s", h.name().toLocal8Bit().data());
|
||||||
|
Loading…
Reference in New Issue
Block a user