Skip to content

Commit

Permalink
medias
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 28, 2023
1 parent f7ce39f commit d4827ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ A Promise of an Object that contains properties below:
| **icon** | *string* | The url of the icon of the web page |
| **sitename** | *string* | The name of the web site |
| **thumbnail** | *string* | The url of the thumbnail of the web page |
| **medias** | *string[]*| 出来ればオリジナル画像の一覧を返す |
| **player** | *Player* | The player of the web page |
| **title** | *string* | The title of the web page |
| **url** | *string* | The url of the web page 最終リダイレクト先になります |
Expand Down
1 change: 1 addition & 0 deletions built/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ exports.default = (url, lang = null) => __awaiter(void 0, void 0, void 0, functi
icon,
description,
thumbnail: image,
medias: image ? [image] : undefined,
player: {
url: playerUrl,
width: Number.isNaN(playerWidth) ? null : playerWidth,
Expand Down
1 change: 1 addition & 0 deletions built/summaly.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function StripEx(ex) {
icon: ex.icon,
sitename: ex.sitename,
thumbnail: ex.thumbnail,
medias: ex.medias,
player: ex.player,
title: ex.title,
sensitive: ex.sensitive,
Expand Down
1 change: 1 addition & 0 deletions src/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default async (url: URL, lang: string | null = null): Promise<SummalyEx>
icon,
description,
thumbnail: image,
medias: image ? [image] : undefined,
player: {
url: playerUrl,
width: Number.isNaN(playerWidth) ? null : playerWidth,
Expand Down
1 change: 1 addition & 0 deletions src/summaly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function StripEx(ex: SummalyEx): Summaly {
icon: ex.icon,
sitename: ex.sitename,
thumbnail: ex.thumbnail,
medias: ex.medias,
player: ex.player,
title: ex.title,
sensitive: ex.sensitive,
Expand Down

0 comments on commit d4827ba

Please sign in to comment.