Skip to content

Commit

Permalink
Remove podcast_id accessor functions (bug 1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Oct 23, 2012
1 parent 41b273d commit 2cb67e4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/gpodder/model.py
Expand Up @@ -170,15 +170,6 @@ def _deprecated(self):
is_played = property(fget=_deprecated, fset=_deprecated)
is_locked = property(fget=_deprecated, fset=_deprecated)

def _get_podcast_id(self):
return self.channel.id

def _set_podcast_id(self, podcast_id):
assert self.channel.id == podcast_id

# Accessor for the "podcast_id" DB column
podcast_id = property(fget=_get_podcast_id, fset=_set_podcast_id)

def has_website_link(self):
return bool(self.link) and (self.link != self.url or \
youtube.is_video_link(self.link))
Expand Down Expand Up @@ -336,6 +327,7 @@ def from_feedparser_entry(cls, entry, channel):

def __init__(self, channel):
self.parent = channel
self.podcast_id = self.parent.id
self.children = (None, None)

self.id = None
Expand Down

0 comments on commit 2cb67e4

Please sign in to comment.