Giter Club home page Giter Club logo

xmlyfetcher's Issues

专辑无法下载

$ xmlyfetcher https://www.ximalaya.com/ertong/6233693/
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...

专辑无法下载

$ xmlyfetcher https://www.ximalaya.com/ertong/6233693/
warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...

修复方法:
sed -n 's/.AlbumDetailTrackList":(.)};</script>.*$/\1/p'

第一次在github上提issue,我怎么直接修改后提交呢

Error

warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
expr: syntax error
expr: syntax error
/usr/local/bin/xmlyfetcher: line 167: [: -ne: unary operator expected
/usr/local/bin/xmlyfetcher: line 170: ((: i<=: syntax error: operand expected (error token is "<=")
[INFO] Contain 0 track(s), start fetch ...

下载专辑报错

xmlyfetcher https://www.ximalaya.com/lishi/19572564/
json read error: line 1 column 47806: end of file expected near ';'
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 165: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 167: ((: i<=/: syntax error: operand expected (error token is "/")
[INFO] Contain 0 track(s), start fetch ...

OS: Ubuntu18.04 LTS X64

command not found!

➜  xmlyfetcher git:(master) ./xmlyfetcher 96909420 all            
./xmlyfetcher: line 203: python: command not found
[INFO] Total count is 
./xmlyfetcher: line 188: python: command not found
./xmlyfetcher: line 188: python: command not found

fetch资源的时候报错

fetch资源的时候报错:
parse error: type 'object' has no elements to extract (arg 2)

请教一下该如何处理呢?谢谢

"\"转义报错

删除url64链接中的 \ 正则表达式报错
sed 's/\\\//g'
我修改为
sed 's/\\//g'
运行正确

编译jshon报错: jshon.c:8:10: fatal error: jansson.h: No such file or directory

编译jshon报错
按照文档来的

wget http://kmkeen.com/jshon/jshon.tar.gz
tar -zxf jshon.tar.gz
cd jshon-20120914/
make
cc -std=c99 -Wall -pedantic -Wextra -Werror    -c -o jshon.o jshon.c
jshon.c:8:10: fatal error: jansson.h: No such file or directory
 #include <jansson.h>
          ^~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'jshon.o' failed
make: *** [jshon.o] Error 1

gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

无法下载 album/5088825

当我尝试下载 album/5088825
出现以下错误信息
/usr/local/bin/xmlyfetcher: line 203: python: command not found
[INFO] Total count is
/usr/local/bin/xmlyfetcher: line 188: python: command not found
/usr/local/bin/xmlyfetcher: line 188: python: command not found

https://www.ximalaya.com/ertong/383939/ 下载失败

xmlyfetcher https://www.ximalaya.com/ertong/383939/

warning: nothing to read
internal error: stack underflow
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
/usr/local/bin/xmlyfetcher: line 167: [: %: integer expression expected
/usr/local/bin/xmlyfetcher: line 169: ((: i<=/: syntax error: operand expected (error token is "/")
[�[1;32mINFO�[0m] Contain 0 track(s), start fetch ...

How to download paid track?

Hi, this tool works fine for free track. But how do I download the purchased VIP track. (i.e. I'm a paid member and able to listen the paid track. can I use this tool to download it?)

I have this error when I tried:
Traceback (most recent call last):
File "", line 1, in
KeyError: 'playUrl64'

某些系统环境下发生trackId not exist错误

在一个vagrant里的Ubuntu系统下载单音轨或者专辑都碰到了以下错误:

$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
[ERROR] The trackId 211393643 does not exist.

换用vps后一切正常。

PS:
在msys2环境下有以下错误,可能跟调用的python版本有关系,我从shell直接输入python打开的是python2.7.12,但这个脚本调用的似乎却是另一位置的python3,以下错误我通过删除reload(sys) sys.setdefaultencoding("utf8")两行解决了:

$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
  File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
[ERROR] Failed to fetch the track, may be a paid resource.

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.