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
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