Sitelet https://github.com/gpodder/gpodder/issues/1254
Skip to content

Episode title with '%' causes gpo hang #1254

Description

@davedeaven

An unprotected use of episode.title string causes issues if the episode title contains a '%' character.

This fixes the issue in gpo:

--- a/bin/gpo
+++ b/bin/gpo
@@ -865,7 +865,7 @@ class gPodderCli(object):
             for idx, episode in enumerate(episodes):
                 if not episode.archive:
                     self._start_action(_('Deleting episode: %(episode)s') % {
-                            'episode': episode.title})
+                            'episode': episode.title.replace('%', '%%')})
                     episode.delete_from_disk()
                     self._finish_action(success=True)
                     episode_urls.add(episode.url)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions