Skip to content

Commit

Permalink
Release v3.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored May 11, 2022
2 parents 4bc6ec3 + 4c43882 commit d20a906
Show file tree
Hide file tree
Showing 10 changed files with 32,990 additions and 37,328 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3-alpine

# Install ffmpeg and g++
RUN apk add --no-cache ffmpeg g++
RUN apk add --no-cache ffmpeg g++ git

# Create project directory
WORKDIR /app
Expand All @@ -17,6 +17,11 @@ RUN pip install --no-cache-dir .

# Create music directory
RUN mkdir /music

# Create a volume for the output directory
VOLUME /music

# Change CWD to /music
WORKDIR /music

# Entrypoint command
Expand Down
9 changes: 6 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version = 3.9.5
version = 3.9.6

name = spotdl
url = https://github.com/spotDL/spotify-downloader
Expand Down Expand Up @@ -38,6 +38,7 @@ install_requires =
beautifulsoup4
requests
Unidecode
setuptools
python_requires = >=3.6.1
packages = find:

Expand All @@ -51,8 +52,10 @@ test =
pytest-subprocess
dev =
tox
mypy==0.790
flake8==3.8.4
mypy
flake8
types-setuptools
types-requests

[options.entry_points]
console_scripts=
Expand Down
4 changes: 2 additions & 2 deletions spotdl/providers/ytm_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def search_and_get_best_match(
if len(isrc_results) == 1:
isrc_result = isrc_results[0]

name_match = isrc_result["name"].lower() == song_name.lower()
name_match = _match_percentage(isrc_result["name"].lower(), song_name.lower())

delta = isrc_result["length"] - song_duration
non_match_value = (delta**2) / song_duration * 100
Expand All @@ -56,7 +56,7 @@ def search_and_get_best_match(
if (
isrc_result is not None
and "link" in isrc_result
and name_match
and name_match > 90
and time_match > 90
):
return isrc_result["link"]
Expand Down
30,368 changes: 13,242 additions & 17,126 deletions tests/cassettes/test_download_a_playlist.yaml

Large diffs are not rendered by default.

2,261 changes: 1,095 additions & 1,166 deletions tests/cassettes/test_download_a_single_song.yaml

Large diffs are not rendered by default.

27,214 changes: 13,519 additions & 13,695 deletions tests/cassettes/test_download_an_album.yaml

Large diffs are not rendered by default.

3,086 changes: 1,552 additions & 1,534 deletions tests/cassettes/test_download_long_artists_song.yaml

Large diffs are not rendered by default.

3,109 changes: 1,539 additions & 1,570 deletions tests/cassettes/test_download_single_song.yaml

Large diffs are not rendered by default.

4,254 changes: 2,026 additions & 2,228 deletions tests/cassettes/test_multiple_elements.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/cassettes/test_search_and_download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
Accept-Encoding:
- gzip, deflate, br
Authorization:
- Bearer BQBsPxGhEDptm5mNPjcO7_XSAY_Z9G8_dYmSSWS-mtvVRsHLZNsPYchwvV5dyANKPJ8HrZJPv51XFNSfmmc
- Bearer BQBskKQmL-xSqawTL0YTQysg0DoIEraX_-DmeQ7-1Up7YcqXT-aSrQWFUH_r9PF7iy47lkguKbzzcMHWM1U
Connection:
- keep-alive
Content-Type:
Expand All @@ -25,7 +25,7 @@ interactions:
5mk3fQEAAP//AwArFp7t9AAAAA==
headers:
Alt-Svc:
- clear
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Transfer-Encoding:
- chunked
Via:
Expand All @@ -48,7 +48,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Thu, 14 Apr 2022 14:13:31 GMT
- Wed, 11 May 2022 13:54:11 GMT
server:
- envoy
strict-transport-security:
Expand Down

0 comments on commit d20a906

Please sign in to comment.