mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
feat(download): bring back WEB client (#156)
* refactor: remove dead code and integrate with Jinter * chore: tidy up
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user