# HG changeset patch # User teknolog # Date 1273613696 -3600 # Node ID 9d854792013ad1a59e86c7dd8bf8c0229bae65da # Parent fbb6c20a24b58f8c1521e51543b414c803938aa1 Likely fix for bug 2434. diff -r fbb6c20a24b5 -r 9d854792013a engine/src/FeedEngine.cpp --- a/engine/src/FeedEngine.cpp Wed May 05 10:50:52 2010 +0100 +++ b/engine/src/FeedEngine.cpp Tue May 11 22:34:56 2010 +0100 @@ -592,11 +592,7 @@ iActiveFeed->SetLastError(parserErr); DP1("CFeedEngine::Complete()\t Failed to parse feed. Leave with error code=%d", parserErr); } - else - { - iPodcastModel.ShowEngine().DeleteOldShowsByFeedL(iActiveFeed->Uid()); - } - + // delete the downloaded XML file as it is no longer needed BaflUtils::DeleteFile(iPodcastModel.FsSession(),iUpdatingFeedFileName); diff -r fbb6c20a24b5 -r 9d854792013a engine/src/FeedParser.cpp --- a/engine/src/FeedParser.cpp Wed May 05 10:50:52 2010 +0100 +++ b/engine/src/FeedParser.cpp Tue May 11 22:34:56 2010 +0100 @@ -281,8 +281,8 @@ iActiveShow = NULL; iItemsParsed++; - //DP2("iItemsParsed: %d, iMaxItems: %d", iItemsParsed, iMaxItems); - if (iItemsParsed > iMaxItems) + DP2("iItemsParsed: %d, iMaxItems: %d", iItemsParsed, iMaxItems); + if (iItemsParsed >= iMaxItems) { iStoppedParsing = ETrue; DP("*** Too many items, aborting parsing"); diff -r fbb6c20a24b5 -r 9d854792013a engine/src/PodcastModel.cpp --- a/engine/src/PodcastModel.cpp Wed May 05 10:50:52 2010 +0100 +++ b/engine/src/PodcastModel.cpp Tue May 11 22:34:56 2010 +0100 @@ -439,6 +439,7 @@ EXPORT_C void CPodcastModel::GetShowsByFeedL(TUint aFeedUid) { iActiveShowList.ResetAndDestroy(); + iShowEngine->DeleteOldShowsByFeedL(aFeedUid); iShowEngine->CheckForDeletedShows(aFeedUid); iShowEngine->GetShowsByFeedL(iActiveShowList, aFeedUid); }