- Moderator
- #171
Re: My Score Center - version 1.1 - 13 dec 2009
i fixed it already.. seems like the ionic.zip when extracting files (doing ZipEntry entry.Extract(dest, false).. false meaning do not overwrite, throws an exception instead of silently not overwriting the file.. and as the zip file is extracted in thumbs, to fix error, you have to delete folder c:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs\ScoreCenter\
i fixed it in the code with fetching exceptions when doing extract in ExchangeManager.cs, function ReadZip:
i fixed it already.. seems like the ionic.zip when extracting files (doing ZipEntry entry.Extract(dest, false).. false meaning do not overwrite, throws an exception instead of silently not overwriting the file.. and as the zip file is extracted in thumbs, to fix error, you have to delete folder c:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\thumbs\ScoreCenter\
i fixed it in the code with fetching exceptions when doing extract in ExchangeManager.cs, function ReadZip:
Code:
foreach (ZipEntry entry in zip)
{
try
{
entry.Extract(dest, false);
}
catch
{
// most likely file already exists so do not throw any
}
}