Beispiel #1
0
 def __init__(self, feed, entry, link, filename, title, summary):
     self.feed = feed
     self.link = link
     self.filename = filename
     # self.fullpath = os.path.join(self.directory, self.filename)
     self.title = title.replace("\"", "'")
     self.filename_title = aux.sanitize(title)
     try:
         self.podcasttitle = feed.podcast.title
     except AttributeError:
         self.podcasttitle = feed.name
     try:
         self.sanitizedsubtitle = aux.html_to_text(
             feed.podcast.feed.subtitle)
         if self.sanitizedsubtitle == "":
             self.sanitizedsubtitle = "No description"
     except AttributeError:
         self.sanitizedsubtitle = "No description"
     self.entrysummary = summary
     self.filename_podcasttitle = aux.sanitize(self.podcasttitle)
     self.name = feed.name
     self.date = tuple(entry.linkdate)
Beispiel #2
0
 def __init__(self, feed, entry, link, filename, title, summary):
     self.feed = feed
     self.link = link
     self.filename = filename
     # self.fullpath = os.path.join(self.directory, self.filename)
     self.title = title.replace("\"", "'")
     self.filename_title = aux.sanitize(title)
     try:
         self.podcasttitle = feed.podcast.title
     except AttributeError:
         self.podcasttitle = feed.name
     try:
         self.sanitizedsubtitle = aux.html_to_text(
             feed.podcast.feed.subtitle)
         if self.sanitizedsubtitle == "":
             self.sanitizedsubtitle = "No description"
     except AttributeError:
         self.sanitizedsubtitle = "No description"
     self.entrysummary = summary
     self.filename_podcasttitle = aux.sanitize(self.podcasttitle)
     self.name = feed.name
     self.date = tuple(entry.linkdate)