parent
85c09a7ad4
commit
d6c1f8f02e
|
@ -1,8 +1,14 @@
|
||||||
## 1.4.2
|
## 1.4.2 - WIP
|
||||||
- Implement `getSrt` a video closed captions in srt format.
|
- Implement `getSrt` a video closed captions in srt format.
|
||||||
- Only throw custom exceptions from the library.
|
- Only throw custom exceptions from the library.
|
||||||
- `getUploadsFromPage` no longer throws.
|
- `getUploadsFromPage` no longer throws.
|
||||||
|
|
||||||
|
## 1.4.1+3
|
||||||
|
- Fix decipherer
|
||||||
|
|
||||||
|
## 1.4.1+2
|
||||||
|
- Implement Container.toString()
|
||||||
|
|
||||||
## 1.4.1+1
|
## 1.4.1+1
|
||||||
- Bug fixes
|
- Bug fixes
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class PlayerSource {
|
||||||
final RegExp _funcBodyExp = RegExp(
|
final RegExp _funcBodyExp = RegExp(
|
||||||
r'(\w+)=function\(\w+\){(\w+)=\2\.split\(\x22{2}\);.*?return\s+\2\.join\(\x22{2}\)}');
|
r'(\w+)=function\(\w+\){(\w+)=\2\.split\(\x22{2}\);.*?return\s+\2\.join\(\x22{2}\)}');
|
||||||
|
|
||||||
final RegExp _funcNameExp = RegExp(r'(\w+).\w+\(\w+,\d+\);');
|
final RegExp _objNameExp = RegExp(r'([\$_\w]+).\w+\(\w+,\d+\);');
|
||||||
|
|
||||||
final RegExp _calledFuncNameExp = RegExp(r'\w+(?:.|\[)(\"?\w+(?:\")?)\]?\(');
|
final RegExp _calledFuncNameExp = RegExp(r'\w+(?:.|\[)(\"?\w+(?:\")?)\]?\(');
|
||||||
|
|
||||||
|
@ -95,11 +95,11 @@ class PlayerSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
String _getDeciphererDefinitionBody(String deciphererFuncBody) {
|
String _getDeciphererDefinitionBody(String deciphererFuncBody) {
|
||||||
var funcName = _funcNameExp.firstMatch(deciphererFuncBody).group(1);
|
var objName = _objNameExp.firstMatch(deciphererFuncBody).group(1);
|
||||||
|
|
||||||
var exp = RegExp(
|
var exp = RegExp(
|
||||||
r'var\s+'
|
r'var\s+'
|
||||||
'${RegExp.escape(funcName)}'
|
'${RegExp.escape(objName)}'
|
||||||
r'=\{(\w+:function\(\w+(,\w+)?\)\{(.*?)\}),?\};',
|
r'=\{(\w+:function\(\w+(,\w+)?\)\{(.*?)\}),?\};',
|
||||||
dotAll: true);
|
dotAll: true);
|
||||||
return exp.firstMatch(_root).group(0).nullIfWhitespace;
|
return exp.firstMatch(_root).group(0).nullIfWhitespace;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: youtube_explode_dart
|
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.
|
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+2
|
version: 1.4.1+3
|
||||||
homepage: https://github.com/Hexer10/youtube_explode_dart
|
homepage: https://github.com/Hexer10/youtube_explode_dart
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue