parent
d6c1f8f02e
commit
428f0bdc7f
|
@ -1,8 +1,11 @@
|
|||
## 1.4.2 - WIP
|
||||
## 1.4.3 - WIP
|
||||
- Implement `getSrt` a video closed captions in srt format.
|
||||
- Only throw custom exceptions from the library.
|
||||
- `getUploadsFromPage` no longer throws.
|
||||
|
||||
## 1.4.2
|
||||
- Fix Decipher error #53
|
||||
|
||||
## 1.4.1+3
|
||||
- Fix decipherer
|
||||
|
||||
|
|
|
@ -83,15 +83,8 @@ class PlayerSource {
|
|||
}
|
||||
|
||||
String _getDeciphererFuncBody() {
|
||||
if (_deciphererDefinitionBody != null) {
|
||||
return _deciphererDefinitionBody;
|
||||
}
|
||||
var funcName = _funcBodyExp.firstMatch(_root).group(1);
|
||||
|
||||
var exp = RegExp(
|
||||
r'(?!h\.)' '${RegExp.escape(funcName)}' r'=function\(\w+\)\{(.*?)\}');
|
||||
return _deciphererDefinitionBody ??=
|
||||
exp.firstMatch(_root).group(1).nullIfWhitespace;
|
||||
_funcBodyExp.firstMatch(_root).group(0);
|
||||
}
|
||||
|
||||
String _getDeciphererDefinitionBody(String deciphererFuncBody) {
|
||||
|
@ -102,7 +95,7 @@ class PlayerSource {
|
|||
'${RegExp.escape(objName)}'
|
||||
r'=\{(\w+:function\(\w+(,\w+)?\)\{(.*?)\}),?\};',
|
||||
dotAll: true);
|
||||
return exp.firstMatch(_root).group(0).nullIfWhitespace;
|
||||
return exp.firstMatch(_root)?.group(0)?.nullIfWhitespace;
|
||||
}
|
||||
|
||||
///
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: youtube_explode_dart
|
||||
description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
|
||||
version: 1.4.1+3
|
||||
version: 1.4.2
|
||||
homepage: https://github.com/Hexer10/youtube_explode_dart
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Reference in New Issue