示例#1
0
文件: model.py 项目: wwweslei/gpodder
 def sync_filename(self, use_custom=False, custom_format=None):
     if use_custom:
         return util.object_string_formatter(custom_format,
                                             episode=self,
                                             podcast=self.channel)
     else:
         return self.title
示例#2
0
文件: model.py 项目: gpodder/gpodder
 def sync_filename(self, use_custom=False, custom_format=None):
     if use_custom:
         return util.object_string_formatter(custom_format, episode=self, podcast=self.channel)
     else:
         return self.title
示例#3
0
 def sync_filename( self):
     if gl.config.custom_sync_name_enabled:
         return util.object_string_formatter(gl.config.custom_sync_name, episode=self, channel=self.channel)
     else:
         return self.title