diff --git a/package-lock.json b/package-lock.json index a3bd09c6..02695400 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "react-native-pager-view": "6.3.0", "react-native-quick-base64": "^2.1.2", "react-native-quick-md5": "^3.0.6", - "react-native-track-player": "github:lyswhut/react-native-track-player#bbd330795e9b06177f00441286a4f4cab72d5ed5", + "react-native-track-player": "github:lyswhut/react-native-track-player#01873f81e30de85ab96363ad7351cf4bdcd39e37", "react-native-vector-icons": "^10.2.0" }, "devDependencies": { @@ -10873,8 +10873,8 @@ }, "node_modules/react-native-track-player": { "version": "2.1.2", - "resolved": "git+ssh://git@github.com/lyswhut/react-native-track-player.git#bbd330795e9b06177f00441286a4f4cab72d5ed5", - "integrity": "sha512-jMJPaI8o3trtxE9QL/RAXoCHRhp148oz4tUsoxK4lXkw6Kg+Ij1x0RxFJHaK1T4vkrCGyoe+AJvXvY7Ni0HUUA==", + "resolved": "git+ssh://git@github.com/lyswhut/react-native-track-player.git#01873f81e30de85ab96363ad7351cf4bdcd39e37", + "integrity": "sha512-bJJiUPEXkSJ9mVkitfgTh7/7jONRZorktn1rpGpHTZzqaL4qKpiCgUy0y1w0uhMZvubmASlgujAHu6lxl2ZGaA==", "license": "Apache-2.0", "peerDependencies": { "react": ">=16.8.6", @@ -21483,9 +21483,9 @@ } }, "react-native-track-player": { - "version": "git+ssh://git@github.com/lyswhut/react-native-track-player.git#bbd330795e9b06177f00441286a4f4cab72d5ed5", - "integrity": "sha512-jMJPaI8o3trtxE9QL/RAXoCHRhp148oz4tUsoxK4lXkw6Kg+Ij1x0RxFJHaK1T4vkrCGyoe+AJvXvY7Ni0HUUA==", - "from": "react-native-track-player@github:lyswhut/react-native-track-player#bbd330795e9b06177f00441286a4f4cab72d5ed5", + "version": "git+ssh://git@github.com/lyswhut/react-native-track-player.git#01873f81e30de85ab96363ad7351cf4bdcd39e37", + "integrity": "sha512-bJJiUPEXkSJ9mVkitfgTh7/7jONRZorktn1rpGpHTZzqaL4qKpiCgUy0y1w0uhMZvubmASlgujAHu6lxl2ZGaA==", + "from": "react-native-track-player@github:lyswhut/react-native-track-player#01873f81e30de85ab96363ad7351cf4bdcd39e37", "requires": {} }, "react-native-vector-icons": { diff --git a/package.json b/package.json index c44ce05f..53a53d05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lx-music-mobile", - "version": "1.7.0-beta.1", + "version": "1.7.0-beta.2", "versionCode": 69, "private": true, "scripts": { @@ -64,7 +64,7 @@ "react-native-pager-view": "6.3.0", "react-native-quick-base64": "^2.1.2", "react-native-quick-md5": "^3.0.6", - "react-native-track-player": "github:lyswhut/react-native-track-player#bbd330795e9b06177f00441286a4f4cab72d5ed5", + "react-native-track-player": "github:lyswhut/react-native-track-player#01873f81e30de85ab96363ad7351cf4bdcd39e37", "react-native-vector-icons": "^10.2.0" }, "devDependencies": { diff --git a/publish/changeLog.md b/publish/changeLog.md index 747cbb74..f0d6b8ec 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -20,4 +20,4 @@ ### ε…Άδ»– -react-native β†’ 0.73.10 +react-native β†’ 0.73.11 diff --git a/src/core/music/utils.ts b/src/core/music/utils.ts index c38c5393..ad107821 100644 --- a/src/core/music/utils.ts +++ b/src/core/music/utils.ts @@ -58,7 +58,7 @@ export const getOtherSource = async(musicInfo: LX.Music.MusicInfo | LX.Download. reject(new Error('find music timeout')) }, 12_000) findMusic(searchMusicInfo).then((otherSource) => { - if (otherSourceCache.size > 100) otherSourceCache.clear() + if (otherSourceCache.size > 10) otherSourceCache.clear() const source = otherSource.map(toNewMusicInfo) as LX.Music.MusicInfoOnline[] otherSourceCache.set(musicInfo, source) resolve(source)