feat(download): bring back WEB client (#156)

* refactor: remove dead code and integrate with Jinter

* chore: tidy up
This commit is contained in:
LuanRT
2022-08-29 04:48:33 -03:00
committed by GitHub
parent 173aec65f5
commit 317bca261c
9 changed files with 132 additions and 728 deletions

View File

@@ -1,3 +1,5 @@
import Player from '../../../core/Player';
class Format {
itag: string;
mime_type: string;
@@ -71,8 +73,8 @@ class Format {
* Decipher the streaming url of the format.
* @returns Deciphered URL.
*/
decipher(): string {
return this.url;
decipher(player: Player): string {
return player.decipher(this.url, this.signature_cipher, this.cipher);
}
}