Fix READNE and add Unlock videos with age restriction instruction
This commit is contained in:
parent
e82a7ba80c
commit
abe724029c
13
README.md
13
README.md
@ -7,7 +7,7 @@ This bot can download music and videos from youtube.
|
|||||||
1) Install docker (how you can install it on linux: https://fullgream.tech/knowledge-base?post=docker-install)
|
1) Install docker (how you can install it on linux: https://fullgream.tech/knowledge-base?post=docker-install)
|
||||||
2) Clone repository: `git clone https://git.fullgream.tech/fullgream/telegram_ytdlp_node.js.git`
|
2) Clone repository: `git clone https://git.fullgream.tech/fullgream/telegram_ytdlp_node.js.git`
|
||||||
### Step 2. If you will use MTProto API
|
### Step 2. If you will use MTProto API
|
||||||
1) Go to [https://my.telegram.org/apps](Telegram API Development Tools). And create API_ID and API Hash.
|
1) Go to [Telegram API Development Tools](https://my.telegram.org/apps). And create API_ID and API Hash.
|
||||||
2) Go to `/src-tg` folder in clonned folder
|
2) Go to `/src-tg` folder in clonned folder
|
||||||
3) Run docker container with command: `docker build -t telegram_create_session . && docker run -it --rm telegram_create_session && docker rmi telegram_create_session`
|
3) Run docker container with command: `docker build -t telegram_create_session . && docker run -it --rm telegram_create_session && docker rmi telegram_create_session`
|
||||||
4) Type all answers
|
4) Type all answers
|
||||||
@ -27,3 +27,14 @@ CHAT_ID=<If you use MTProto API. ID of chat. You can send new message and chat a
|
|||||||
```
|
```
|
||||||
4) Build docker container: `docker build -t ytdlp_node:release .`
|
4) Build docker container: `docker build -t ytdlp_node:release .`
|
||||||
5) Up docker container: `docker run -d --name ytdlp_node --restart unless-stopped --env-file .env -v "$(pwd)/cookies.txt:/app/cookies.txt" ytdlp_node:release`
|
5) Up docker container: `docker run -d --name ytdlp_node --restart unless-stopped --env-file .env -v "$(pwd)/cookies.txt:/app/cookies.txt" ytdlp_node:release`
|
||||||
|
|
||||||
|
### How unlock videos with age restriction?
|
||||||
|
1) Install browser extension wich can replace your User-Agent *(for example: https://chromewebstore.google.com/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg)*
|
||||||
|
2) Set permission of incognito mode for browser extension
|
||||||
|
3) Setup user-agent in browser extension: `Mozilla/5.0 (Windows NT 10.0; Win64; x64)`
|
||||||
|
4) **If you use Get cookies.txt loccaly** - Set permission of incognito mode
|
||||||
|
5) Go to new incognito window and go to youtube
|
||||||
|
6) LogIn in youtube and go to another video
|
||||||
|
7) Copy your cookies
|
||||||
|
8) Close incognito window and you can remove user-agent in browser extension
|
||||||
|
9) Paste cookies in file cookies.txt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user