From cbef0c5a6c574ee8a040f46f356fa5cde2250941 Mon Sep 17 00:00:00 2001 From: deepaerial Date: Sat, 1 Jul 2023 12:08:19 +0200 Subject: [PATCH] Quick fix for pytube.exceptions.RegexMatchError: get_throttling_function_name error --- poetry.lock | 14 +++++++++----- pyproject.toml | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index 9329998..c1702ba 100644 --- a/poetry.lock +++ b/poetry.lock @@ -922,10 +922,14 @@ description = "Python 3 library for downloading YouTube Videos." category = "main" optional = false python-versions = ">=3.7" -files = [ - {file = "pytube-15.0.0-py3-none-any.whl", hash = "sha256:07b9904749e213485780d7eb606e5e5b8e4341aa4dccf699160876da00e12d78"}, - {file = "pytube-15.0.0.tar.gz", hash = "sha256:076052efe76f390dfa24b1194ff821d4e86c17d41cb5562f3a276a8bcbfc9d1d"}, -] +files = [] +develop = false + +[package.source] +type = "git" +url = "https://github.com/oncename/pytube.git" +reference = "HEAD" +resolved_reference = "6c45936b9703ce986ccb8d0d3595c7974716f94b" [[package]] name = "pyyaml" @@ -1234,4 +1238,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "619586e1f53e9aaf093d71aa2bf9a8e439c5309bcbdc2b529a278493be3ab976" +content-hash = "b0090fd365a44ac99e3993bbc179f1a0bf60b36e297b4e52997d1d2d372ba325" diff --git a/pyproject.toml b/pyproject.toml index df282b2..74f13e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ target-version = "py310" [tool.poetry] name = "ytdl-api" -version = "1.2.1" +version = "1.2.2" description = "API for web-based youtube-dl client" authors = ["Nazar Oleksiuk "] license = "MIT" @@ -70,10 +70,10 @@ uvicorn = "^0.18.2" sse-starlette = "^0.6.1" aiofiles = "^0.6.0" deta = "^1.1.0" -pytube = "15.0.0" ffmpeg-python = "^0.2.0" confz = "^1.6.1" pyhumps = "^3.7.2" +pytube = {git = "https://github.com/oncename/pytube.git"} [tool.poetry.group.dev.dependencies] pytest = "*"