mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
Add requested changes.
Co-authored-by: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com> Add final. Co-authored-by: TiA4f8R <74829229+TiA4f8R@users.noreply.github.com>
This commit is contained in:
parent
94efe86c71
commit
d1add05bc1
@ -293,11 +293,13 @@ public class YoutubeStreamInfoItemExtractor implements StreamInfoItemExtractor {
|
|||||||
@Override
|
@Override
|
||||||
public String getShortDescription() throws ParsingException {
|
public String getShortDescription() throws ParsingException {
|
||||||
|
|
||||||
if(videoInfo.has("detailedMetadataSnippets"))
|
if (videoInfo.has("detailedMetadataSnippets")) {
|
||||||
return getTextFromObject(videoInfo.getArray("detailedMetadataSnippets").getObject(0).getObject("snippetText"));
|
return getTextFromObject(videoInfo.getArray("detailedMetadataSnippets").getObject(0).getObject("snippetText"));
|
||||||
|
}
|
||||||
|
|
||||||
if(videoInfo.has("descriptionSnippet"))
|
if (videoInfo.has("descriptionSnippet")) {
|
||||||
return getTextFromObject(videoInfo.getObject("descriptionSnippet"));
|
return getTextFromObject(videoInfo.getObject("descriptionSnippet"));
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ public class StreamInfoItem extends InfoItem {
|
|||||||
return shortDescription;
|
return shortDescription;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setShortDescription(String shortDescription) {
|
public void setShortDescription(final String shortDescription) {
|
||||||
this.shortDescription = shortDescription;
|
this.shortDescription = shortDescription;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user