Skip to content

Commit

Permalink
3.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO committed Dec 19, 2022
1 parent 94f93f7 commit 9f2ac78
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
[![GitHub issues](https://img.shields.io/github/issues/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/issues)
[![GitHub forks](https://img.shields.io/github/forks/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/network)
[![GitHub stars](https://img.shields.io/github/stars/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/stargazers)
[![GitHub license](https://img.shields.io/github/license/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/blob/master/LICENSE)
[![GitHub license](https://img.shields.io/github/license/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/blob/master-3/LICENSE)
[![GitHub tag (latest Ver)](https://img.shields.io/github/package-json/v/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/releases/latest)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/archive/master.zip)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/archive/master-3.zip)

[繁體中文](https://github.com/gnehs/PokaPlayer/blob/master/README_zh.md)
[繁體中文](https://github.com/gnehs/PokaPlayer/blob/master-3/README_zh.md)

# PokaPlayer
PokaPlayer is a player that can unify and play from multiple sources like DSM and Netease.
Expand Down
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
[![GitHub issues](https://img.shields.io/github/issues/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/issues)
[![GitHub forks](https://img.shields.io/github/forks/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/network)
[![GitHub stars](https://img.shields.io/github/stars/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/stargazers)
[![GitHub license](https://img.shields.io/github/license/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/blob/master/LICENSE)
[![GitHub license](https://img.shields.io/github/license/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/blob/master-3/LICENSE)
[![GitHub tag (latest Ver)](https://img.shields.io/github/package-json/v/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/releases/latest)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/archive/master.zip)
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/gnehs/PokaPlayer.svg?style=flat-square)](https://github.com/gnehs/PokaPlayer/archive/master-3.zip)
[![Docker Build Status](https://img.shields.io/docker/build/gnehs/pokaplayer.svg?style=flat-square)](https://hub.docker.com/r/gnehs/pokaplayer/)

# PokaPlayer
Expand Down
6 changes: 3 additions & 3 deletions dataModule/netease2.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const qrcode = require('qrcode-terminal');
try {
fs.readJsonSync(PIN_FILE_PATH, "utf8");
} catch (e) {
fs.writeFileSync(PIN_FILE_PATH, "[]");
fs.writeJsonSync(PIN_FILE_PATH, []);
}
const defaultImage = config.isPremium ? "https://i.imgur.com/ZFaycMw.gif" : "/img/icons/apple-touch-icon.png";

Expand Down Expand Up @@ -730,13 +730,13 @@ async function getPlaylists(uid) {
};
}

async function getPlaylistSongs(id, br = 999000) {
async function getPlaylistSongs(id, userId) {
let name;
if (isIdName(id)) [id, name] = decomposeIdName(id);
if (id == "dailyRecommendSongs") {
let result = await client(options(`/recommend/songs`));
if (result.code == 200) {
let r = result.data.dailySongs.map((x, index) => ({
let r = result.data.dailySongs.map(x => ({
name: x.name,
artist: x.ar.map(x => x.name).join(", "),
artistId: x.ar[0].id,
Expand Down
4 changes: 2 additions & 2 deletions install/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<p>Please refer to the config-simple.json to create the config.json file</p>
<div class="actions">
<a
href="https://github.com/gnehs/PokaPlayer/blob/master/config-simple.json">config-simple.json</a>
href="https://github.com/gnehs/PokaPlayer/blob/master-3/config-simple.json">config-simple.json</a>
</div>
</div>
</div>
Expand All @@ -32,7 +32,7 @@
<p>請參考 config-simple.json 來建立設定檔</p>
<div class="actions">
<a
href="https://github.com/gnehs/PokaPlayer/blob/master/config-simple.json">config-simple.json</a>
href="https://github.com/gnehs/PokaPlayer/blob/master-3/config-simple.json">config-simple.json</a>
<a href="https://git.io/PokaConfigChinese">設定教學</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pokaplayer",
"version": "3.7.6",
"version": "3.8.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9f2ac78

Please sign in to comment.