|
26 | 26 | import org.schabi.newpipe.extractor.MetaInfo; |
27 | 27 | import org.schabi.newpipe.extractor.NewPipe; |
28 | 28 | import org.schabi.newpipe.extractor.StreamingService; |
29 | | -import org.schabi.newpipe.extractor.StreamingServiceId; |
30 | 29 | import org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException; |
31 | 30 | import org.schabi.newpipe.extractor.exceptions.ContentNotSupportedException; |
32 | 31 | import org.schabi.newpipe.extractor.exceptions.ExtractionException; |
@@ -188,6 +187,18 @@ private static void extractStreams(final StreamInfo streamInfo, |
188 | 187 | // Either audio or video has to be available, otherwise we didn't get a stream (since |
189 | 188 | // videoOnly are optional, they don't count). |
190 | 189 | if ((streamInfo.videoStreams.isEmpty()) && (streamInfo.audioStreams.isEmpty())) { |
| 190 | + final var errors = streamInfo.getErrors(); |
| 191 | + final var url = streamInfo.getOriginalUrl(); |
| 192 | + final var name = streamInfo.getName(); |
| 193 | + if (errors.isEmpty()) { |
| 194 | + ExtractorLogger.e(TAG, "Error extracting " + name + " " + url |
| 195 | + + "\nCould not get any stream and didn't catch any errors"); |
| 196 | + } else { |
| 197 | + errors.forEach(m -> ExtractorLogger.e(TAG, |
| 198 | + "Error for " + streamInfo.getOriginalUrl(), |
| 199 | + m)); |
| 200 | + } |
| 201 | + |
191 | 202 | throw new StreamExtractException( |
192 | 203 | "Could not get any stream. See error variable to get further details."); |
193 | 204 | } |
|
0 commit comments