DenverCoder1/github-readme-youtube-cards

🚀 Feature: JSON output option

开放

#25 创建于 2022年9月11日

 (17 条评论) (0 个反应) (0 位负责人)Python (60 个派生)github user discovery
featuregood first issueup-for-grabs

仓库指标

星标
 (274 个星标)
PR 合并指标
 (平均合并 53天 1小时) (30 天内合并 3 个 PR)

描述

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.

贡献者指南