Skip to content

Commit

Permalink
Woodchuck: Fix spelling mistakes (bug 1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal H. Walfield authored and thp committed Nov 12, 2011
1 parent 182ef9e commit b97faa7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gpodder/plugins/woodchuck.py
Expand Up @@ -311,20 +311,20 @@ def on_podcast_update_failed(self, podcast, exception):
% (podcast.title, podcast.url,))

# Assume the error is transient.
status = woodchuck.DownloadStatus.TransientOther
status = woodchuck.TransferStatus.TransientOther

if (any(isinstance(exception, exception_class)
for exception_class in [feedcore.Unsubscribe,
feedcore.NotFound,
feedcore.InvalidFeed,
feedcore.UnknownStatusCode])):
# The podcast disappeared...
status = woodchuck.DownloadStatus.FailureGone
status = woodchuck.TransferStatus.FailureGone
elif (any(isinstance(exception, exception_class)
for exception_class in [feedcore.Offline,
feedcore.WifiLogin])):
# Tranient network error.
status = woodchuck.DownloadStatus.TransientNetwork
status = woodchuck.TransferStatus.TransientNetwork

self.stream_update_failed(podcast.url, status)

Expand Down Expand Up @@ -392,7 +392,7 @@ def on_episode_save(self, episode):
# Assume that the user played between the old current
# position and the new current position.
start = changes.get('current_position', 0)
end = obj.current_position
end = episode.current_position
if start > end:
# The user rewound. Assume [0, end]
start = 0
Expand Down

0 comments on commit b97faa7

Please sign in to comment.