Skip to content

Commit

Permalink
Add requested changes.
Browse files Browse the repository at this point in the history
Co-authored-by: TiA4f8R <[email protected]>
Add final.

Co-authored-by: TiA4f8R <[email protected]>
  • Loading branch information
FireMasterK and AudricV committed Oct 4, 2021
1 parent 94efe86 commit d1add05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,13 @@ private OffsetDateTime getDateFromPremiere() throws ParsingException {
@Override
public String getShortDescription() throws ParsingException {

if(videoInfo.has("detailedMetadataSnippets"))
if (videoInfo.has("detailedMetadataSnippets")) {
return getTextFromObject(videoInfo.getArray("detailedMetadataSnippets").getObject(0).getObject("snippetText"));
}

if(videoInfo.has("descriptionSnippet"))
return getTextFromObject(videoInfo.getObject("descriptionSnippet"));
if (videoInfo.has("descriptionSnippet")) {
return getTextFromObject(videoInfo.getObject("descriptionSnippet"));
}

return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public String getShortDescription() {
return shortDescription;
}

public void setShortDescription(String shortDescription) {
public void setShortDescription(final String shortDescription) {
this.shortDescription = shortDescription;
}

Expand Down

0 comments on commit d1add05

Please sign in to comment.