DenverCoder1/github-readme-youtube-cards

馃殌 Feature: JSON output option

Open

#25 opened on Sep 11, 2022

聽(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