Skip to content

Commit

Permalink
updates poster size choices
Browse files Browse the repository at this point in the history
  • Loading branch information
AnveshakR committed Sep 1, 2024
1 parent 0fe44c0 commit 1bf4dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def spotify_data_pull(id, link_type='albums'):
}

if link_type == 'tracks':
print(id)
print("\n----------------\n")
tracks_get = f'https://api.spotify.com/v1/tracks/{id}'
r = requests.get(tracks_get, headers=headers)
r = r.json()
Expand Down
12 changes: 8 additions & 4 deletions templates/mainpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ <h1>Spotify Poster Generator</h1>
<div class="d-inline-flex align-items-baseline pb-2">
<label for="select_format" class="pe-2"><b>Format:</b></label>
<select id="select_format" class="form-select" aria-label="Default select example" onload="setSizeInput()" onchange="setSizeInput()">
<option value="2480,3508">A4 (300 ppi)</option>
<option value="1240,1754" selected>A4 (150 ppi)</option>
<option value="2551,3295">US Letter (300 ppi)</option>
<option value="1276,1648">US Letter (150 ppi)</option>
<option value="3510,4950">A3</option>
<option value="2480,3508">A4</option>
<option value="4950,7020">A2</option>
<option value="7020,9930">A1</option>
<option value="5400,7200">18 x 24 inches</option>
<option value="7200,10800">24 x 36 inches</option>
<option value="3600,5400">12 x 18 inches</option>
<option value="3300,5100">11 x 17 inches</option>
<option value="custom">Custom</option>
</select>
</div>
Expand Down

0 comments on commit 1bf4dde

Please sign in to comment.