Skip to content

Add unit tests for lockup extractor edge cases

4bebf3d
Select commit
Loading
Failed to load commit list.
Merged

[YouTube] Fix duration and live stream display in related videos #1478

Add unit tests for lockup extractor edge cases
4bebf3d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 19, 2026 in 33s

Annotations

Check failure on line 89 in extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemLockupExtractor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "thumbnailBadgeViewModel" 3 times.

See more on https://sonarcloud.io/project/issues?id=TeamNewPipe_NewPipeExtractor&issues=AZ2m1x_GWySueEBa6Yiu&open=AZ2m1x_GWySueEBa6Yiu&pullRequest=1478

Check warning on line 461 in extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemExtractor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=TeamNewPipe_NewPipeExtractor&issues=AZ2m1x82WySueEBa6Yis&open=AZ2m1x82WySueEBa6Yis&pullRequest=1478

Check failure on line 147 in extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamInfoItemExtractor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=TeamNewPipe_NewPipeExtractor&issues=AZ2m1x82WySueEBa6Yit&open=AZ2m1x82WySueEBa6Yit&pullRequest=1478