Skip to content

Commit

Permalink
Catch bitrate from magnet BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan386 committed Jan 11, 2015
1 parent 8a89183 commit 94f09a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shareaza/DownloadWithTorrent.cpp
Expand Up @@ -321,6 +321,11 @@ BOOL CDownloadWithTorrent::SetTorrent(const CBTInfo* pTorrent)
m_nSize = m_pTorrent.m_nSize;
}

if ( m_pTorrent.m_nBitrate )
{
m_nBitrate = m_pTorrent.m_nBitrate;
}

if ( m_pTorrent.m_sName.GetLength() )
{
Rename( m_pTorrent.m_sName );
Expand Down
1 change: 1 addition & 0 deletions shareaza/ShareazaURL.cpp
Expand Up @@ -698,6 +698,7 @@ BOOL CShareazaURL::ParseMagnet(LPCTSTR pszURL)
{
pTorrent->SetTrackerMode( ( pTorrent->GetTrackerCount() > 1 ) ? CBTInfo::tMultiFinding : CBTInfo::tSingle );
m_pTorrent = pTorrent;
m_pTorrent->m_nBitrate = m_nBitrate;
m_pTorrent->m_oMD5 = m_oMD5;
m_pTorrent->m_oBTH = m_oBTH;
m_pTorrent->m_oSHA1 = m_oSHA1;
Expand Down

0 comments on commit 94f09a9

Please sign in to comment.