Git Product home page Git Product logo

Comments (10)

HackerLinXL avatar HackerLinXL commented on May 20, 2024 1

杜比大喇叭β更新2.1.1后已可以正常使用,感谢@pan93412 @1715173329 @nining377 几位大佬的贡献!十分感谢!

from server.

1715173329 avatar 1715173329 commented on May 20, 2024

不太清楚大喇叭内部是怎么运作的,请教一下猫姐吧。

Cc: @nining377

from server.

pan93412 avatar pan93412 commented on May 20, 2024

运行失败,错误为:TypeError:"true" is not a function,之前的包没这个问题,这次更新后首次出现

是 enhanced 的最新版本,還是最新的 Release 呢?如果可以,希望你能幫我把整個錯誤都截圖下來。謝謝!

from server.

HackerLinXL avatar HackerLinXL commented on May 20, 2024

运行失败,错误为:TypeError:"true" is not a function,之前的包没这个问题,这次更新后首次出现

是 enhanced 的最新版本,還是最新的 Release 呢?如果可以,希望你能幫我把整個錯誤都截圖下來。謝謝!

是enhanced的最新版本,就是大佬你最新修改的那个
Screenshot_2021-08-16-23-47-10-695_com netease cloudmusic
点击一首歌会这样
Screenshot_2021-08-16-23-47-30-964_com netease cloudmusic
设置是没问题的
Screenshot_2021-08-16-23-51-40-137_com raincat dolby_beta

from server.

1715173329 avatar 1715173329 commented on May 20, 2024

请使用 Node.js 10+ 版本

from server.

pan93412 avatar pan93412 commented on May 20, 2024

请使用 Node.js 10+ 版本

TypeError:"true" is not a function 很有可能是網易雲音樂自己的 Node.js runtime 出錯。這部分有待確認。我不用手機版所以不太好定位原因 orz

@1715173329 你有 android 版 neteasemusic 嗎?可以幫我 check 一下嗎 orz

from server.

1715173329 avatar 1715173329 commented on May 20, 2024

TypeError:"true" is not a function 很有可能是網易雲音樂自己的 Node.js runtime 出錯。

这个应该是杜比大喇叭的 error log,并非网易云音乐本身。
大概需要 nodejs 的运行日志才能判断问题。

from server.

pan93412 avatar pan93412 commented on May 20, 2024

TypeError:"true" is not a function 很有可能是網易雲音樂自己的 Node.js runtime 出錯。

这个应该是杜比大喇叭的 error log,并非网易云音乐本身。
大概需要 nodejs 的运行日志才能判断问题。

真的欸,我沒看到第二張圖wwww

@HackerLinXL 你試試看這個?我是用 Node.js v16,正常運作:

https://nodejs.org/dist/v16.6.2/node-v16.6.2-linux-x64.tar.xz

BTW 你手機是 Intel Atom?發現到你用的是 x64 而不是常見的 armv8。

from server.

1715173329 avatar 1715173329 commented on May 20, 2024

https://github.com/nining377/dolby_beta/blob/a1b240955ab17e45037bcb0bc44c31f66a979570/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java#L210
https://github.com/nining377/dolby_beta/blob/a1b240955ab17e45037bcb0bc44c31f66a979570/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java#L227

错误是这几行导致的,因为最近重新格式化了代码,这里不能这么写了。

diff --git a/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java b/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java
index 9214cce..8e677d1 100644
--- a/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java
+++ b/app/src/main/java/com/raincat/dolby_beta/hook/UnblockMusicHook.java
@@ -205,11 +205,11 @@ public class UnblockMusicHook {
     private void quality() {
         List<String> scriptList = Tools.readFileFromSD(dataPath + File.separator + "src" + File.separator + "provider" + File.separator + "select.js");
         for (int i = 0; i < scriptList.size(); i++) {
-            if (scriptList.get(i).contains("ENABLE_FLAC")) {
+            if (scriptList.get(i).contains("env.ENABLE_FLAC")) {
                 if (Setting.isQualityEnabled())
-                    scriptList.set(i, "module.exports.ENABLE_FLAC = 'true'");
+                    scriptList.set(i, "(process.env.ENABLE_FLAC || 'true').toLowerCase() === 'true';");
                 else
-                    scriptList.set(i, "module.exports.ENABLE_FLAC = (process.env.ENABLE_FLAC || '').toLowerCase() === 'true'");
+                    scriptList.set(i, "(process.env.ENABLE_FLAC || '').toLowerCase() === 'true';");
                 break;
             }
         }
@@ -224,9 +224,9 @@ public class UnblockMusicHook {
         for (int i = 0; i < scriptList.size(); i++) {
             if (scriptList.get(i).contains("item.code") && scriptList.get(i).contains("item.freeTrialInfo")) {
                 if (Setting.isForceEnabled())
-                    scriptList.set(i, "\t\tif ((item.code != 200 || item.freeTrialInfo || item.br <= 128000) && (target == 0 || item.id == target)) {");
+                    scriptList.set(i, "\t\t(item.code != 200 || item.freeTrialInfo || item.br <= 128000) &&");
                 else
-                    scriptList.set(i, "\t\tif ((item.code != 200 || item.freeTrialInfo) && (target == 0 || item.id == target)) {");
+                    scriptList.set(i, "\t\t(item.code != 200 || item.freeTrialInfo) &&");
                 break;
             }
         }

from server.

HackerLinXL avatar HackerLinXL commented on May 20, 2024

TypeError:"true" is not a function 很有可能是網易雲音樂自己的 Node.js runtime 出錯。

这个应该是杜比大喇叭的 error log,并非网易云音乐本身。
大概需要 nodejs 的运行日志才能判断问题。

真的欸,我沒看到第二張圖wwww

@HackerLinXL 你試試看這個?我是用 Node.js v16,正常運作:

https://nodejs.org/dist/v16.6.2/node-v16.6.2-linux-x64.tar.xz

BTW 你手機是 Intel Atom?發現到你用的是 x64 而不是常見的 armv8。

不是,我手机是小米6

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.