From 1a4269e80498749245f7ae8790c4d1196c27ffc8 Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Thu, 29 Feb 2024 12:51:44 +0100 Subject: [PATCH] Upgrading ural Adding support for youtube shorts in yt videos & url-parse --- minet/cli/url_parse/url_parse.py | 2 ++ requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/minet/cli/url_parse/url_parse.py b/minet/cli/url_parse/url_parse.py index f1657627fc..e952e2309f 100644 --- a/minet/cli/url_parse/url_parse.py +++ b/minet/cli/url_parse/url_parse.py @@ -36,6 +36,7 @@ YoutubeVideo, YoutubeUser, YoutubeChannel, + YoutubeShort ) from ural.twitter import parse_twitter_url, TwitterTweet, TwitterUser @@ -121,6 +122,7 @@ def extract_standard_addendum(cli_args, url): YoutubeVideo: "video", YoutubeUser: "user", YoutubeChannel: "channel", + YoutubeShort: "short" } diff --git a/requirements.txt b/requirements.txt index ec32536f84..57cd2ed320 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,5 +30,5 @@ tenacity==8.2.1 trafilatura==1.7.0 typing_extensions>=4.3; python_version < '3.11' twitwi==0.18.2 -ural==1.2.3 +ural==1.3.1 urllib3==1.26.16 diff --git a/setup.py b/setup.py index abfd65e133..b5ef572bf5 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ "tenacity>=8,<9", "trafilatura>=1.7,<1.8", "twitwi>=0.18.2,<0.19", - "ural>=1.2.3,<2", + "ural>=1.3.1,<2", "urllib3>=1.26.16,<2", ], extras_require={