Skip to content

Commit

Permalink
Youtube age restriction bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Jul 3, 2024
1 parent cc27493 commit 6c32a50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions downloader/youtube.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import io

import pytube
from pytube.innertube import _default_clients

import models
from downloader import base


# Age restriction bypass - https://stackoverflow.com/a/78267693/10428848
_default_clients["ANDROID_MUSIC"] = _default_clients["ANDROID_CREATOR"]


class YoutubeClient(base.BaseClient):
DOMAINS = ['youtube.com/shorts']

Expand Down

0 comments on commit 6c32a50

Please sign in to comment.