diff --git a/.assets/demo.gif b/.assets/demo.gif new file mode 100644 index 0000000..cde77c0 Binary files /dev/null and b/.assets/demo.gif differ diff --git a/.gitignore b/.gitignore index 8e441bc..ee8487d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.m4a *.yaml *.db +*.cast !.github/**/*.yaml archive/ diff --git a/README.md b/README.md index 6c4e5ab..3933ea0 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ A fast and simple command line client to archive all episodes from your favorite Podcast Archiver takes the feed URLs of your favorite podcasts and downloads all available episodes for you—even those "hidden" in [paged feeds](https://podlove.org/paged-feeds/). You'll end up with a complete archive of your shows. The archiver also supports updating an existing archive, so that it lends itself to be set up as a cronjob. +![Demo of podcast-archiver](.assets/demo.gif) + ## Setup Install via [pipx](https://pipx.pypa.io/stable/): @@ -56,10 +58,10 @@ Run `podcast-archiver --help` for details on how to use it: ### Example invocation -```bash +```sh podcast-archiver -d ~/Music/Podcasts \ - -f http://logbuch-netzpolitik.de/feed/m4a \ - -f http://raumzeit-podcast.de/feed/m4a/ \ + -f https://logbuch-netzpolitik.de/feed/mp3/ \ + -f https://raumzeit-podcast.de/feed/mp3/ \ -f https://feeds.lagedernation.org/feeds/ldn-mp3.xml ``` diff --git a/podcast_archiver/utils/pretty_printing.py b/podcast_archiver/utils/pretty_printing.py index 62adbd1..fe56fad 100644 --- a/podcast_archiver/utils/pretty_printing.py +++ b/podcast_archiver/utils/pretty_printing.py @@ -82,14 +82,17 @@ def __rich__(self) -> ConsoleRenderable | str: Text("╶┬╴" if pair.length > 1 else " ", style=pair.style), pair.first, ) - if pair.length == 1: - continue + if pair.length > 2: + grid.add_row( + "", + Text(" │ ", style=pair.style), + Text(" ︙", style="dim"), + ) if pair.length > 1: - grid.add_row("", " │ ", "", style=pair.style) - grid.add_row( - "", - Text(" ╰╴" if pair.last else " ", style=pair.style), - pair.last, - ) + grid.add_row( + "", + Text(" ╰╴", style=pair.style), + pair.last, + ) grid.add_row("", "", "") return grid