Skip to content

Commit

Permalink
fix: properly set media height in JS parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Mar 26, 2023
1 parent f4581d1 commit 6a87d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/src/models/api/javascript-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ QSharedPointer<Image> JavascriptApi::makeImage(const QJSValue &raw, Site *site,
size->size.setWidth(media.property("width").toInt());
}
if (media.hasProperty("height")) {
size->size.setWidth(media.property("height").toInt());
size->size.setHeight(media.property("height").toInt());
}
size->bitRate = getPropertyOr(media, "bitrate", 0);
size->fileSize = getPropertyOr(media, "file_size", 0);
Expand Down

0 comments on commit 6a87d83

Please sign in to comment.