diff --git a/Action.php b/Action.php index 88af095..fc1faf0 100644 --- a/Action.php +++ b/Action.php @@ -72,6 +72,7 @@ class Meting_Action extends Typecho_Widget implements Widget_Interface_Do { $url=$data['url']; if($server=='netease'){ + $url=str_replace('://m7c.','://m8.',$url); $url=str_replace('://m8c.','://m8.',$url); $url=str_replace('http://m8.','https://m8.',$url); $url=str_replace('http://m7.','https://m8.',$url); @@ -153,7 +154,7 @@ class Meting_Action extends Typecho_Widget implements Widget_Interface_Do { elseif(preg_match('/artist\/(\d+)/i',$url,$id))list($id,$type)=array($id[1],'artist'); } else{ - echo "[Meting]\n[Music title=\"歌曲名\" author=\"歌手\" url=\"{$url}\"/]\n[/Meting]\n"; + echo "[Meting]\n[Music title=\"歌曲名\" author=\"歌手\" url=\"{$url}\" pic=\"图片文件URL\" lrc=\"歌词文件URL\"/]\n[/Meting]\n"; return; } echo "[Meting]\n[Music server=\"{$server}\" id=\"{$id}\" type=\"{$type}\"/]\n[/Meting]\n"; diff --git a/Plugin.php b/Plugin.php index 5ccd5c2..fb29b37 100644 --- a/Plugin.php +++ b/Plugin.php @@ -192,7 +192,7 @@ class Meting_Plugin extends Typecho_Widget implements Typecho_Plugin_Interface else{ $data=$t; - $str.="
$vo)$player[$key]=$vo; foreach($player as $key=>$vo)$str.=" data-{$key}=\"{$vo}\""; $str.=">
\n";