[YouTube] Catch any exception when extracting something from JavaScript's base player
This commit is contained in:
parent
588c6a8422
commit
714b141ecb
|
@ -102,6 +102,9 @@ public final class YoutubeJavaScriptPlayerManager {
|
||||||
} catch (final NumberFormatException e) {
|
} catch (final NumberFormatException e) {
|
||||||
sigTimestampExtractionEx =
|
sigTimestampExtractionEx =
|
||||||
new ParsingException("Could not convert signature timestamp to a number", e);
|
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;
|
return cachedSignatureTimestamp;
|
||||||
|
@ -146,6 +149,10 @@ public final class YoutubeJavaScriptPlayerManager {
|
||||||
// performance
|
// performance
|
||||||
sigDeobFuncExtractionEx = e;
|
sigDeobFuncExtractionEx = e;
|
||||||
throw 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
|
// performance
|
||||||
throttlingDeobfFuncExtractionEx = e;
|
throttlingDeobfFuncExtractionEx = e;
|
||||||
throw e;
|
throw e;
|
||||||
|
} catch (final Exception e) {
|
||||||
|
throttlingDeobfFuncExtractionEx = new ParsingException(
|
||||||
|
"Could not get throttling parameter deobfuscation JavaScript function", e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue