Skip to content

Commit

Permalink
🎨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
CXwudi committed Jan 3, 2024
1 parent b92a34a commit 58aeb16
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class NicoNicoDougaThumbnailFinder(
in (400..<500) -> {
val status = infoJson["meta"]["status"].asText()
val errorCode = infoJson["meta"]["errorCode"].asText()
throw ThumbnailNotAvailableException("The video $id is not available, status: $errorCode, error code: $status")
throw ThumbnailNotAvailableException(
"The $matchedPvService video $id is not available, " +
"status: $errorCode, error code: $status"
)
}
in (200..<300) -> {
val thumbnailUrl = infoJson["data"]["items"][0]["video"]["thumbnail"]["nHdUrl"].asText()
Expand Down

0 comments on commit 58aeb16

Please sign in to comment.