Skip to content

Commit

Permalink
Merge pull request #1212 from shikorism/develop
Browse files Browse the repository at this point in the history
Release 2024.7.1
  • Loading branch information
shibafu528 authored Jul 20, 2024
2 parents a2a83dc + afa3aee commit aa3d10e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/MetadataResolver/PixivResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function resolve(string $url): Metadata
$metadata->image = str_replace('_p0', '_p' . $page, $metadata->image);
}

// AI生成タグ
if (!empty($json['body']['aiType']) && $json['body']['aiType'] === 2) {
$metadata->tags[] = 'AI生成';
}
// タグ
if (!empty($json['body']['tags']['tags'])) {
foreach ($json['body']['tags']['tags'] as $tag) {
Expand Down

0 comments on commit aa3d10e

Please sign in to comment.