Add filename in the message

This commit is contained in:
bth 2018-12-13 09:59:02 +01:00
parent b03ed2f503
commit 635e2bb9a8

View file

@ -1772,8 +1772,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
def save_episodes_as_file(self, episodes):
def do_save_episode(copy_from, copy_to):
if os.path.exists(copy_to):
logger.warn(copy_from)
logger.warn(copy_to)
title = _('File already exist')
message = _('A file with this name already exist. Do you want to replace it?')
message = _('A file named "%s" already exist. Do you want to replace it?') % os.path.basename(copy_to)
if not self.show_confirmation(message, title):
return
try: