Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow printing/exporting list of episodes in JSON format #29

Closed
manojkarthick opened this issue Aug 8, 2021 · 3 comments

Comments

@manojkarthick
Copy link

Thanks again for creating this tool! Currently podcast-dl prints the list of episodes in a table format, but being able to print in JSON format would be really useful.

For example, something like this:

--list                             # prints in table format
--list --format=table  # print in table format
--list --format=json   # print in JSON format

The scenarios where this might be potentially useful:

  • saving the list of episodes as JSON metadata alongside podcast/episode metadata
  • pass the output of the list option to a tool like jq and calculate offset/limit based on some logic (eg. time period) to download specific episodes
@lightpohl
Copy link
Owner

Great suggestion! Thanks for opening an issue.

I'll see if I can append the functionality to the existing flag, so the behavior would then be:

  • --list: prints in table format
  • --list "table": prints in table format
  • --list "json": prints in JSON format

I'll get this into the next update. 👍

@lightpohl
Copy link
Owner

Thanks again!

Added in v5.1.0 with the --list-format option. Checkout the README for more details. 👍

@manojkarthick
Copy link
Author

Thanks you so much for adding this feature! Should be really helpful 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants