diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-10 23:23:07 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-10 23:38:54 +0800 |
commit | a31e3e7dcb9d0471d90ec8562934a144d25d7132 (patch) | |
tree | 5d6aaeef27fe2be6bc1334ef8382a043dc850cc5 /youtube_dl/extractor/neteasemusic.py | |
parent | a34af8d0667d8f4ceba3380f808a6d563ca01d77 (diff) |
[kuwo] Regular expression improvements
1. Prevent .+ and .*
2. Use [^>]+ instead of spaces for HTML tags
3. Remove unnecessary trailing parts
Diffstat (limited to 'youtube_dl/extractor/neteasemusic.py')
-rw-r--r-- | youtube_dl/extractor/neteasemusic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/neteasemusic.py b/youtube_dl/extractor/neteasemusic.py index bdfe7e63f..ee52efaee 100644 --- a/youtube_dl/extractor/neteasemusic.py +++ b/youtube_dl/extractor/neteasemusic.py @@ -229,7 +229,7 @@ class NetEaseMusicSingerIE(NetEaseMusicBaseIE): if info['artist']['trans']: name = '%s - %s' % (name, info['artist']['trans']) if info['artist']['alias']: - name = '%s - %s' % (name, ";".join(info['artist']['alias'])) + name = '%s - %s' % (name, ';'.join(info['artist']['alias'])) entries = [ self.url_result('http://music.163.com/#/song?id=%s' % song['id'], |