Fix case where uri has no file extension
`image-type' can work out the MIME type just based on the magic numbers, if needed.
This commit is contained in:
parent
d1e7774dd7
commit
3f729a8e93
2
mpris.el
2
mpris.el
|
@ -1657,7 +1657,7 @@ To use a specific player, set SERVICE to the target MediaPlayer2 service."
|
|||
temporary-file-directory
|
||||
(file-name-with-extension
|
||||
(concat "emacs-mpris-" (sha1 uri))
|
||||
(file-name-extension uri)))))
|
||||
(or (file-name-extension uri) "img")))))
|
||||
(if (file-exists-p temp-file)
|
||||
temp-file
|
||||
(and (url-copy-file uri temp-file)
|
||||
|
|
Loading…
Reference in New Issue