Use episode.state in favor of episode.was_downloaded()

This commit is contained in:
Thomas Perl 2013-09-29 14:18:11 +02:00
parent 45cfcd0b52
commit 90b4f04e35

View file

@ -210,7 +210,7 @@ class gPotherSide:
episode = self._get_episode_by_id(episode_id)
return {
'source': episode.local_filename(False)
if episode.was_downloaded(and_exists=True)
if episode.state == gpodder.STATE_DOWNLOADED
else episode.url,
}