Giter Site home page Giter Site logo

Comments (5)

magicdawn avatar magicdawn commented on June 27, 2024

image

正确格式是分号分隔字符串, 从 EditThisCookie 导出后原样粘贴即可, // 注释本程序会自动剔除

from yun-playlist-downloader.

lyc8503 avatar lyc8503 commented on June 27, 2024

可是我从 EditThisCookie 导出的格式好像原本不太一样...

我导出的格式如下:

[
{
    "domain": ".weibo.com",
    "expirationDate": 1665909683.986669,
    "hostOnly": false,
    "httpOnly": true,
    "name": "PC_TOKEN",
    "path": "/",
    "sameSite": "unspecified",
    "secure": true,
    "session": false,
    "storeId": "0",
    "value": "xxx",
    "id": 1
},
{
    "domain": ".weibo.com",
    "expirationDate": 1697443887.810198,
    "hostOnly": false,
    "httpOnly": true,
    "name": "SUB",
    "path": "/",
    "sameSite": "no_restriction",
    "secure": true,
    "session": false,
    "storeId": "0",
    "value": "xxx",
    "id": 2
},
{
    "domain": ".weibo.com",
    "expirationDate": 1697443887.810241,
    "hostOnly": false,
    "httpOnly": false,
    "name": "SUBP",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": false,
    "storeId": "0",
    "value": "xxx",
    "id": 3
},
{
    "domain": "weibo.com",
    "expirationDate": 1665994287.94975,
    "hostOnly": true,
    "httpOnly": true,
    "name": "WBPSESS",
    "path": "/",
    "sameSite": "unspecified",
    "secure": true,
    "session": false,
    "storeId": "0",
    "value": "xxx",
    "id": 4
},
{
    "domain": "weibo.com",
    "hostOnly": true,
    "httpOnly": false,
    "name": "XSRF-TOKEN",
    "path": "/",
    "sameSite": "unspecified",
    "secure": true,
    "session": true,
    "storeId": "0",
    "value": "xxx",
    "id": 5
}
]

我使用的 EditThisCookie 版本, 是目前 Chrome 应用商店最新的:
image

from yun-playlist-downloader.

magicdawn avatar magicdawn commented on June 27, 2024

好像这里可以改一下, 不确定这个默认行为什么时候变的
image

或者手动复制一下也行, 登录之后的 cookie header 的值, 复制出来即可
image

from yun-playlist-downloader.

lyc8503 avatar lyc8503 commented on June 27, 2024

我刚刚尝试了一下, 修改插件设置之后导出的 cookie 是可以使用的, 可我直接复制访问 music.163.com 复制 header 中的 cookie 程序报错如下.

[cookie] 使用 cookie 文件: /home/xxx/yun.cookie.txt
{
  status: 400,
  body: {
    code: 20001,
    message: '登录后才可查看',
    debugInfo: null,
    data: null,
    failData: null,
    msg: '登录后才可查看'
  },
  cookie: [
    'NMTID=00OMvVD02AZ_HibO07xppMXlZl56CAAAAGD4BdM3Q; Max-Age=315360000; Expires=Wed, 13 Oct 2032 09:19:26 GMT; Path=/;'
  ]
}

from yun-playlist-downloader.

magicdawn avatar magicdawn commented on June 27, 2024

确实. 使用插件导出的 cookie 即可.

from yun-playlist-downloader.

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.