Xiami: fix default MIME type (audio/mpeg)

This commit is contained in:
Mort Yao 2013-07-23 09:38:51 +08:00
parent fc3d932244
commit 2159e9f11c

View File

@ -52,8 +52,8 @@ def xiami_download_song(sid, output_dir = '.', merge = True, info_only = False):
url = location_dec(i.getElementsByTagName("location")[0].firstChild.nodeValue)
lrc_url = i.getElementsByTagName("lyric")[0].firstChild.nodeValue
type, ext, size = url_info(url, faker = True)
if not ext:
ext = 'mp3'
if not type:
type = 'mp3'
print_info(site_info, song_title, type, size)
if not info_only: