mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-05-16 10:56:46 +08:00
fix: docker下minetypes无法判断m4a
This commit is contained in:
@@ -191,10 +191,7 @@ def is_mp3(url):
|
||||
|
||||
|
||||
def is_m4a(url):
|
||||
mt = mimetypes.guess_type(url)
|
||||
if mt and mt[0] == "audio/m4a":
|
||||
return True
|
||||
return False
|
||||
return url.endswith(".m4a")
|
||||
|
||||
|
||||
async def _get_web_music_duration(session, url, start=0, end=500):
|
||||
|
||||
Reference in New Issue
Block a user