Skip to content

Commit

Permalink
Merge pull request #29 from CheapNightbot/28-song-tempo-removed-from-…
Browse files Browse the repository at this point in the history
…the-api-responses->人<

Remove Tempo
  • Loading branch information
CheapNightbot authored Dec 3, 2024
2 parents a1aed9d + 0c3b164 commit 7b8a76c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def build_response_template(response, artist, song):
song=song,
spotify=yutify_data.get("spotify"),
title=yutify_data.get("title"),
tempo=yutify_data.get("tempo"),
yt_music=(
yutify_data["ytmusic"].get("url") if yutify_data["ytmusic"] else None
),
Expand Down
1 change: 0 additions & 1 deletion templates/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ <h2>&sext; Response Examples:</h2>
'<b class="var">lyrics</b>': null,
'<b class="var">release_date</b>': '1987-11-12',
'<b class="var">spotify</b>': 'https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8',
'<b class="var">tempo</b>': '113',
'<b class="var">title</b>': 'Never Gonna Give You Up',
'<b class="var">ytmusic</b>': {
'<b class="var">id</b>': 'dQw4w9WgXcQ',
Expand Down
7 changes: 0 additions & 7 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ <h3>
{% else %}
Genre
{% endif %}
<span>
{% if tempo %}
&nbsp;|&nbsp; {{ tempo }} BPM
{% else %}
&nbsp;|&nbsp; Tempo
{% endif %}
</span>
</p>
<div class="result-container" style="flex-direction:row; padding:1rem;">
<!-- Deezer Music -->
Expand Down

0 comments on commit 7b8a76c

Please sign in to comment.