From 820735e6020c90edda16092fe1a5b151183998bd Mon Sep 17 00:00:00 2001 From: nathom Date: Sat, 10 Apr 2021 15:30:52 -0700 Subject: [PATCH] Remove EXT dict from constants --- streamrip/constants.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/streamrip/constants.py b/streamrip/constants.py index 5a821fc..55767ba 100644 --- a/streamrip/constants.py +++ b/streamrip/constants.py @@ -18,13 +18,6 @@ AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firef TIDAL_COVER_URL = "https://resources.tidal.com/images/{uuid}/{width}x{height}.jpg" -EXT = { - 0: ".mp3", - 1: ".mp3", - 2: ".flac", - 3: ".flac", - 4: ".flac", -} QUALITY_DESC = { 0: "128kbps", @@ -141,9 +134,10 @@ FOLDER_FORMAT = ( TRACK_FORMAT = "{tracknumber}. {artist} - {title}" URL_REGEX = ( - r"https?:\/\/(?:www|open|play|listen)?\.?(qobuz|tidal|deezer)\.com(?:(?:\/(track|playlist|album|" - r"artist|label))|(?:\/[-\w]+?))+\/([-\w]+)" + r"https?://(?:www|open|play|listen)?\.?(qobuz|tidal|deezer)\.com(?:(?:/" + r"(track|playlist|album|artist|label))|(?:\/[-\w]+?))+\/([-\w]+)" ) + SOUNDCLOUD_URL_REGEX = r"https://soundcloud.com/[-\w:/]+" SOUNDCLOUD_CLIENT_ID = "a3e059563d7fd3372b49b37f00a00bcf" LASTFM_URL_REGEX = r"https://www.last.fm/user/\w+/playlists/\w+"