DenverCoder1/github-readme-youtube-cards

🚀 Feature: JSON output option

Open

#25 opened on Sep 11, 2022

View on GitHub
 (17 comments) (0 reactions) (0 assignees)Python (60 forks)github user discovery
featuregood first issueup-for-grabs

Repository metrics

Stars
 (274 stars)
PR merge metrics
 (Avg merge 53d 1h) (3 merged PRs in 30d)

Description

The user may want to parse the output manually in a different action step.

An option, for example, output_type: "json" could be useful to allow such customization more easily.

A format such as the following may be useful (all the params, plus the svg card url)

[
  {
      "id": "...",
      "title": "...",
      "timestamp": "...",
      "background_color": "...",
      "title_color": "...",
      "stats_color": "...",
      "width": "...",
      "duration": "...", // if applicable
      "image_url": "https://ytcards.demolab.com/?id=...&...",
  },
  {
      ...
  },
]

This can be coordinated with #24 since both involve adding output_type.

Contributor guide