Skip to content

Commit

Permalink
testing for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
hbmartin committed Jul 23, 2024
1 parent 4021756 commit 7a9ff3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
with:
options: "--check --verbose"
- run: pytest
- run: pyroma . --min=10
- run: pyroma . --min=10
- run: |
python -m podcast_transcript_convert |& grep -q 'Usage: transcript2json'
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
[![Checked with pytype](https://img.shields.io/badge/🦆-pytype-437f30.svg)](https://google.github.io/pytype/)
[![twitter](https://img.shields.io/badge/@hmartin-00aced.svg?logo=twitter&logoColor=black)](https://twitter.com/hmartin)

Convert podcast transcripts from HTML, SRT, WebVtt, Podlove etc into [PodcastIndex JSON](https://github.com/Podcastindex-org/podcast-namespace/blob/main/transcripts/transcripts.md).

<img src=".idea/icon.svg" width="100" align="right">

Convert podcast transcripts from HTML, SRT, WebVtt, Podlove etc into [PodcastIndex JSON](https://github.com/Podcastindex-org/podcast-namespace/blob/main/transcripts/transcripts.md).

## Installation

It is recommended to use [pipx](https://pipx.pypa.io/stable/) to install and run the CLI tool. If you wish to use the library, you can install with `pip` instead.
Expand Down Expand Up @@ -67,3 +67,4 @@ This project is linted with [ruff](https://docs.astral.sh/ruff/) and uses [Black

## Authors
- [Harold Martin](https://www.linkedin.com/in/harold-martin-98526971/) - harold.martin at gmail
- Icon courtesy of [Vecteezy.com](https://www.vecteezy.com)
2 changes: 1 addition & 1 deletion podcast_transcript_convert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def main() -> None:
if len(sys.argv) < 3: # noqa: PLR2004
logger.error(
"Usage: convert <source> <output> <opt. ignore file>",
"Usage: transcript2json <source> <output> <opt. ignore file>",
)
sys.exit(1)

Expand Down

0 comments on commit 7a9ff3b

Please sign in to comment.