DenverCoder1/github-readme-youtube-cards

🚀 Feature: JSON output option

Open

#25 aperta il 11 set 2022

Vedi su GitHub
 (17 commenti) (0 reazioni) (0 assegnatari)Python (60 fork)github user discovery
featuregood first issueup-for-grabs

Metriche repository

Star
 (274 star)
Metriche merge PR
 (Merge medio 53g 1h) (3 PR mergiate in 30 g)

Descrizione

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.

Guida contributor