Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djrandom-py
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
djrandom-py
Commits
72c17c8b
Commit
72c17c8b
authored
13 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
use urllib sanely
parent
591b7870
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/djrandom/frontend/frontend.py
+2
-2
2 additions, 2 deletions
server/djrandom/frontend/frontend.py
with
2 additions
and
2 deletions
server/djrandom/frontend/frontend.py
+
2
−
2
View file @
72c17c8b
...
...
@@ -107,8 +107,8 @@ def play_callback(sha1):
@app.route
(
'
/album_image/<artist>/<album>
'
)
def
get_album_image
(
artist
,
album
):
img_file
=
album_images
.
get_album_image
(
urllib
.
url
unquote
_plus
(
artist
),
urllib
.
url
unquote
_plus
(
album
))
urllib
.
unquote
(
artist
),
urllib
.
unquote
(
album
))
if
not
img_file
:
abort
(
404
)
return
send_file
(
img_file
,
mimetype
=
'
image/jpeg
'
,
conditional
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment