http://bugs.gpodder.org/show_bug.cgi?id=414

           Summary: Redownloading deleted Podcast fails
           Product: gPodder
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Application
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Using latest revision from Git. 
(0d6cbab91014a01c950f78427323a745848b3607)
Using Ubuntu 9.04
Bug does not appear in 0.15.2

To reproduce bug:
=================
1.  Download an episode of any podcast
2.  Delete episode
3.  Re-download episode.

The episode still appears as deleted (trashcan icon).  Further attempts to
download the podcast will also not work until gPodder is restarted.

Suspected Cause
===============
As far as I have tracked it down, it seems that in download_episode_list() in
gui.py, gPodder will reuse a previous DownloadTask object if the url has
already been downloaded in this session.

The trouble is that the episode object in this object is outdated and is still
in STATE_DOWNLOADED rather than STATE_DELETED.  When addDownloadedItem() is
called with this outdated episode object it sees it is already in
STATE_DOWNLOADED so does not mark episode as downloaded.

I can make the bug go away by removing the code to reuse DownloadTask objects
but I was unsure if this functionality is required for other features.  
Alternatively removing the state check or updating the episode object would
work.

I am happy to have a go at producing a patch for one of these solutions.

Shane

-- 
Configure bugmail: http://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to