2012-05-27, 10:07
(2012-05-27, 00:40)tsp42 Wrote: Yes that is the problem. The preview icons is most likely deleted when clean cache is called the first time if m_preview is not initialized with the local preview images (and that would happen if m_jobqueue is emptied before the last call to getPreviewIconPath. I will use your suggestion and add a 24 hour delay before the first cache clean. Your preview icons should be redownloaded when getPreviewIconPath is called again (=every time the recording list is updated) but it sounds like that doesn't happens.
Ok, thanks. I will test it soon. Well, that does happen, but during startup it first grabs channel icons and probably it is done with that (m_jobqueue is empty) before it starts on the preview icons, but by that time cleanCache() was called. I think this change should do the trick.
The pull request from ktdreyer (168cb10443) causes compile errors on Linux now. Three log calls has CStdString as arguments... they should be converted using c_str() first.
Edit: there is also a compile error in tools.h (line 119), but I have no time to fix it now.