diff --git a/README.md b/README.md index 2381751..3a29887 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![builds](https://img.shields.io/badge/builds-passing-brightgreen.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) [![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/neosubhamoy/pytubepp/) -😀 GOOD NEWS: If you are Windows(10/11) user and don't want to bother remembering PytubePP Commands! (You are not familier with Command Line Tools). We recently released a Browser Extension that can auto detect YouTube Videos and You can download the Video in one click directly from the browser using PytubePP CLI. Install [PytubePP Helper](https://github.com/neosubhamoy/pytubepp-helper) app in your System and add [PytubePP Extension](https://github.com/neosubhamoy/pytubepp-extension) in your Browser to get started. +😀 GOOD NEWS: If you are not a power user and don't want to bother remembering PytubePP Commands! (You are not familier with Command Line Tools). We recently released a Browser Extension that can auto detect YouTube Videos and You can download the Video in one click directly from the browser using PytubePP CLI. Install [PytubePP Helper](https://github.com/neosubhamoy/pytubepp-helper) app in your System and add [PytubePP Extension](https://github.com/neosubhamoy/pytubepp-extension) in your Browser to get started. ### **🏷️ Features** * Auto Post-Process & Merge YouTube DASH Streams @@ -22,6 +22,7 @@ ### **📎 Pre-Requirements** * [Python](https://www.python.org/downloads/) (>=3.8) * [FFmpeg](https://ffmpeg.org/) +* [Node.js](https://nodejs.org/en/download/) (required for auto YT poToken genration which is currently not possible in Python environment) ### **🧩 Python Dependencies** * [pytubefix](https://pypi.org/project/pytubefix/) @@ -48,7 +49,14 @@ - Windows (10/11): `winget install ffmpeg`
- MacOS (using Homebrew): `brew install ffmpeg`
- Android (using Termux): `pkg install ffmpeg` -3. Install PytubePP (using PIP) +3. Install Node.js + - Linux (Debian): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`
+ - Linux (Fedora): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`
+ - Linux (Arch): `curl -o- https://fnm.vercel.app/install | bash && fnm install --lts && fnm use lts`
+ - Windows (10/11): `winget install Schniz.fnm;fnm install --lts;fnm use lts`
+ - MacOS (using Homebrew): `brew install node`
+ - Android (using Termux): `pkg install nodejs` +4. Install PytubePP (using PIP) ```terminal pip install pytubepp diff --git a/pytubepp/main.py b/pytubepp/main.py index f7bcc9c..8ebcc7a 100644 --- a/pytubepp/main.py +++ b/pytubepp/main.py @@ -45,7 +45,7 @@ class YouTubeDownloader: if is_valid_url(link): link = is_valid_url(link).group(1) - self.video = YouTube(link, on_progress_callback=progress) + self.video = YouTube(link, 'ANDROID', on_progress_callback=progress) self.author = self.video.author self.title = re.sub(r'[\\/*?:"<>|]', '_', self.author + ' - ' + self.video.title) self.thumbnail = self.video.thumbnail_url