diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptPlayerManager.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptPlayerManager.java index f83cf203b..833b8acef 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptPlayerManager.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptPlayerManager.java @@ -102,6 +102,9 @@ public final class YoutubeJavaScriptPlayerManager { } catch (final NumberFormatException e) { sigTimestampExtractionEx = new ParsingException("Could not convert signature timestamp to a number", e); + } catch (final Exception e) { + sigTimestampExtractionEx = new ParsingException("Could not get signature timestamp", e); + throw e; } return cachedSignatureTimestamp; @@ -146,6 +149,10 @@ public final class YoutubeJavaScriptPlayerManager { // performance sigDeobFuncExtractionEx = e; throw e; + } catch (final Exception e) { + sigDeobFuncExtractionEx = new ParsingException( + "Could not get signature parameter deobfuscation JavaScript function", e); + throw e; } } @@ -244,6 +251,10 @@ public final class YoutubeJavaScriptPlayerManager { // performance throttlingDeobfFuncExtractionEx = e; throw e; + } catch (final Exception e) { + throttlingDeobfFuncExtractionEx = new ParsingException( + "Could not get throttling parameter deobfuscation JavaScript function", e); + throw e; } }