diff --git a/README.md b/README.md index 1531fc5..82b6c4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -WP-Player V2.3.0 +WP-Player V2.3.1 ========= WP-Player 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾米歌曲地址,也支持自定义上传音乐。 @@ -9,6 +9,10 @@ WP-Player 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾 ### 声明 本插件仅供个人学习研究使用,请勿作为各种商业用户,音乐版权归网易云音乐 music.163.com 和虾米音乐 www.xiami.com 所有。 +### Update Ver 2.3.1 (2015-01-08) +1. 紧急修复暂无歌词Bug +2. 修正图片缓存问题 + ### Update Ver 2.3.0 (2015-01-08) 1. 新增歌词预览功能(支持虾米和网易) 2. 因歌词预览功能比较耗费资源,可在单独添加播放器时,打开或关闭此功能。 diff --git a/css/wp-player-plugin.css b/css/wp-player-plugin.css index ddc7bbf..424fd79 100644 --- a/css/wp-player-plugin.css +++ b/css/wp-player-plugin.css @@ -5,7 +5,7 @@ * @date 2014-12-19 * @update 2015-01-08 * @URL http://webjyh.com - * @version 2.3.0 + * @version 2.3.1 */ .wp-player-wrap { padding: 10px; } .wp-player-wrap .wp-player-tabs { margin: 0px; border-bottom: 1px solid #EEE; height: 36px; } diff --git a/css/wp-player.css b/css/wp-player.css index 5b1fdf0..9e2d656 100644 --- a/css/wp-player.css +++ b/css/wp-player.css @@ -6,7 +6,7 @@ * @update 2015-01-08 * @URL http://webjyh.com * @Github https://github.com/webjyh/WP-Player - * @version 2.3.0 + * @version 2.3.1 * */ .wp-player { overflow: hidden; background: #FFF; width: 350px; min-width: 300px; margin: 10px auto; border: 1px solid #DDD; box-shadow: 0px 0px 10px rgba(0,0,0, 0.15); box-sizing: content-box; } @@ -21,7 +21,7 @@ .wp-player .wp-player-play-current, .wp-player .wp-player-list-btn, .wp-player .wp-player-lyrics-btn, -.wp-player .wp-player-controls a { background: url(../images/wp_player_bg.png?ver=2.3.0) no-repeat -9999px -9999px; _background: url(../images/wp_player_bg_8.png?ver=2.3.0) no-repeat -9999px -9999px; } +.wp-player .wp-player-controls a { background: url(../images/wp_player_bg.png?ver=2.3.1) no-repeat -9999px -9999px; _background: url(../images/wp_player_bg_8.png?ver=2.3.1) no-repeat -9999px -9999px; } .wp-player .wp-player-box { height: 90px; } .wp-player .wp-player-thumb { position: relative; float: left; width: 90px; height: 90px; overflow: hidden; } diff --git a/include/player.php b/include/player.php index 057b8d0..291f9c0 100644 --- a/include/player.php +++ b/include/player.php @@ -4,7 +4,7 @@ */ if ( !class_exists( 'wp_player_plugin' ) ){ - $WP_PLAYER_VERSION = '2.3.0'; + $WP_PLAYER_VERSION = '2.3.1'; class wp_player_plugin { diff --git a/js/plugin-uploader.js b/js/plugin-uploader.js index 5284762..0a43a4a 100644 --- a/js/plugin-uploader.js +++ b/js/plugin-uploader.js @@ -6,7 +6,7 @@ * @date 2014-12-19 * @update 2015-01-08 * @URL http://webjyh.com -* @version 2.3.0 +* @version 2.3.1 * */ jQuery(document).ready(function() { @@ -53,7 +53,7 @@ jQuery(document).ready(function() { row = $val.match(regs[mark]); if (mark == 0 && !row && !jQuery.isNumeric($val)){ - alert('您的当前站点只支持虾米音乐网址'); + alert('\u60a8\u7684\u5f53\u524d\u7ad9\u70b9\u53ea\u652f\u6301\u867e\u7c73\u97f3\u4e50\u7f51\u5740'); return false; } @@ -62,7 +62,7 @@ jQuery(document).ready(function() { result['id'] = row[2]; } else { if (!jQuery.isNumeric($val)){ - alert('获取音乐ID失败!') + alert('\u83b7\u53d6\u97f3\u4e50ID\u5931\u8d25\uff01'); } } diff --git a/js/wp-player.js b/js/wp-player.js index eb8f608..7a49f3c 100644 --- a/js/wp-player.js +++ b/js/wp-player.js @@ -8,7 +8,7 @@ * @URL http://webjyh.com * @Github https://github.com/webjyh/WP-Player * @reutn {jQuery} - * @version 2.3.0 + * @version 2.3.1 * */ ~function($, soundManager) { @@ -183,7 +183,7 @@ DOM.playbar.width(playbar); DOM.time.text(pre + minute +':'+ second); - _this.attr.lyric && _this.setLyric(this.position); + if (_this.attr.lyric && _this.lyric) _this.setLyric(this.position); }, whileloading: function() { var seekbar = this.bytesTotal ? (this.bytesLoaded / this.bytesTotal) * 100 : 100; @@ -317,6 +317,7 @@ noLyric: function(val) { var DOM = this.DOM, str = typeof val === 'undefined' ? '\u6682\u65e0\u6b4c\u8bcd' : val; + this.lyric = null; DOM.lyrics.children('ul').html('
  • '+str+'
  • '); }, diff --git a/wp-player.php b/wp-player.php index cd7f6fb..42a970e 100644 --- a/wp-player.php +++ b/wp-player.php @@ -3,7 +3,7 @@ * Plugin Name: WP-Player * Plugin URI: http://webjyh.com/wp-player/ * Description: 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾米歌曲或网易云音乐歌曲地址,也支持自定义上传音乐。 - * Version: 2.3.0 + * Version: 2.3.1 * Author: M.J * Author URI: http://webjyh.com * License: GPLv2 or later