Use episode.state in favor of episode.was_downloaded()
This commit is contained in:
parent
45cfcd0b52
commit
90b4f04e35
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue