Update english.ini

Stop 0 size covers from being created
This commit is contained in:
yardape8000 2012-05-17 13:26:02 +00:00
parent f94e65a54d
commit 7c4bb1fa04
2 changed files with 79 additions and 76 deletions

View File

@ -590,7 +590,7 @@ int CMenu::_coverDownloader(bool missingOnly)
for( int o = 0; o < 12; ++o ) for( int o = 0; o < 12; ++o )
{ {
bool tdl = false; bool tdl = false;
if( download.data != NULL ) if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
break; break;
switch( o ) switch( o )
{ {
@ -680,8 +680,10 @@ int CMenu::_coverDownloader(bool missingOnly)
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this); download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
} }
} }
if (download.data != NULL)
{ if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
continue;
if (savePNG) if (savePNG)
{ {
LWP_MutexLock(m_mutex); LWP_MutexLock(m_mutex);
@ -706,7 +708,6 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
} }
}
break; break;
case CBOX: case CBOX:
if( m_downloadPrioVal&C_TYPE_ONCU ) if( m_downloadPrioVal&C_TYPE_ONCU )
@ -729,7 +730,7 @@ int CMenu::_coverDownloader(bool missingOnly)
for( int o = 0; o < 12; ++o ) for( int o = 0; o < 12; ++o )
{ {
bool tdl = false; bool tdl = false;
if( download.data != NULL ) if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
break; break;
switch( o ) switch( o )
@ -824,8 +825,9 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
if (download.data != NULL) if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
{ continue;
if (savePNG) if (savePNG)
{ {
LWP_MutexLock(m_mutex); LWP_MutexLock(m_mutex);
@ -850,7 +852,6 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
} }
}
break; break;
case FLAT: case FLAT:
if( m_downloadPrioVal&C_TYPE_ONOR ) if( m_downloadPrioVal&C_TYPE_ONOR )
@ -873,7 +874,7 @@ int CMenu::_coverDownloader(bool missingOnly)
for( int o = 0; o < 12; ++o ) for( int o = 0; o < 12; ++o )
{ {
bool tdl = false; bool tdl = false;
if( download.data != NULL ) if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
break; break;
switch( o ) switch( o )
@ -967,8 +968,9 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
if (download.data != NULL) if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
{ continue;
if (savePNG) if (savePNG)
{ {
LWP_MutexLock(m_mutex); LWP_MutexLock(m_mutex);
@ -993,7 +995,6 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
} }
}
break; break;
case CFLAT: case CFLAT:
if( m_downloadPrioVal&C_TYPE_ONCU ) if( m_downloadPrioVal&C_TYPE_ONCU )
@ -1016,7 +1017,7 @@ int CMenu::_coverDownloader(bool missingOnly)
for( int o = 0; o < 12; ++o ) for( int o = 0; o < 12; ++o )
{ {
bool tdl = false; bool tdl = false;
if( download.data != NULL ) if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
break; break;
switch( o ) switch( o )
@ -1109,8 +1110,10 @@ int CMenu::_coverDownloader(bool missingOnly)
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this); download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
} }
} }
if (download.data != NULL)
{ if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
continue;
if (savePNG) if (savePNG)
{ {
LWP_MutexLock(m_mutex); LWP_MutexLock(m_mutex);
@ -1135,7 +1138,6 @@ int CMenu::_coverDownloader(bool missingOnly)
} }
} }
} }
}
break; break;
} }
} }

View File

@ -22,6 +22,7 @@ byplayers=By Players
bywifiplayers=By Wifi Players bywifiplayers=By Wifi Players
cd1=Back cd1=Back
cd2=Erase cd2=Erase
cd3=Age Lock
cfg1=Settings cfg1=Settings
cfg10=Back cfg10=Back
cfg11=USB Saves Emulation cfg11=USB Saves Emulation