https://bugs.gpodder.org/show_bug.cgi?id=458





--- Comment #3 from Neal <[email protected]>  2009-07-22 16:41:15 GMT ---
oops!

-------

I think that the problem arises because of the "update" which starts at line
151 in libpodcasts.py.

The program iterates through the downloaded list and makes sure that each entry
is included in the database.

It should also iterate over the items in the database and check that each entry
can be listened to (ie whether each entry is currently on the computer or is
downloadable).

I would guess that around line 241 there should be a lump of code saying
something like:

for ex in existing:
    keep_episode = false

    if ex status in database = STATE_DOWNLOADED:
        keep_episode=true
    else:

       for episode in c.entries:
           if ex.guid == episode.guid:
               keep_episode=true

    if keep_episode == false:
        delete episode from database


Does this make sense?

-- 
Configure bugmail: https://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