Code Monkey home page Code Monkey logo

Comments (3)

maotoumao avatar maotoumao commented on May 21, 2024 1

app确实是调试不方便,但是如果不涉及到原生库(比如@react-native-cookies/cookies),其他插件在node环境下的执行结果和app上的执行应该是等价的。所以直接这样执行,然后函数的返回值对应上就好了,这样调试会方便很多:(这里其实文档没写好)

image

大概get到了你的意思,简单说:

  1. 导入的内容不一定局限在创建的歌单(实现就是改插件的正则匹配和返回值)
  2. 通过搜索等方式收藏专辑/作者的时候,可以把专辑名等信息作为歌单的默认名称

不知道是不是这样理解~

from musicfree.

xiamubobby avatar xiamubobby commented on May 21, 2024

事实上这个想法并不是局限在 导入歌单 这一个流程里。因为即使是仅使用搜索功能,在mf中收藏专辑这个动作仍然表示为创新新歌单(并且无默认命名)。由于专辑和艺人页(在被访问的时间点上(如果考虑到数据更新的话))其实就是逻辑上的一张歌单。
换言之至少可以让收藏(仍然以创建歌单为实现方式)的过程透明化,因为这份歌单的默认名字对大部分用来说一定恰恰就是专辑本身的标题。

from musicfree.

xiamubobby avatar xiamubobby commented on May 21, 2024

嗯,多谢回复。期望Get的完全正确。不过我还没掌握你说的调试办法。亦步亦趋的还是🫠(主要是我对服务协议本身不熟悉,不借助app现有working的流程我mock不出像样的出入参),你说的办法理念我理解了。看看能不能搞一搞。

from musicfree.

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.