File tree Expand file tree Collapse file tree
extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static String createDashManifestFromOtfStreamingUrl(
5555 @ Nonnull String otfBaseStreamingUrl ,
5656 @ Nonnull final ItagItem itagItem )
5757 throws YoutubeDashManifestCreationException {
58- if (otfManifestsGenerated .get (otfBaseStreamingUrl ) != null ) {
58+ if (otfManifestsGenerated .containsKey (otfBaseStreamingUrl )) {
5959 return otfManifestsGenerated .get (otfBaseStreamingUrl );
6060 }
6161 final String originalOtfBaseStreamingUrl = otfBaseStreamingUrl ;
@@ -122,7 +122,7 @@ public static String createDashManifestFromPostLiveStreamDvrStreamingUrl(
122122 @ Nonnull final ItagItem itagItem ,
123123 final int targetDurationSec )
124124 throws YoutubeDashManifestCreationException {
125- if (postLiveStreamsManifestsGenerated .get (postLiveStreamDvrStreamingUrl ) != null ) {
125+ if (postLiveStreamsManifestsGenerated .containsKey (postLiveStreamDvrStreamingUrl )) {
126126 return postLiveStreamsManifestsGenerated .get (postLiveStreamDvrStreamingUrl );
127127 }
128128 final String originalPostLiveStreamDvrStreamingUrl = postLiveStreamDvrStreamingUrl ;
You can’t perform that action at this time.
0 commit comments