Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
fix some songs dont have 320k
Browse files Browse the repository at this point in the history
change version

delete log print
  • Loading branch information
ITJesse committed Apr 12, 2016
1 parent b61e234 commit 52e5f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unblock-netease-music",
"version": "0.3.0",
"version": "0.3.2",
"scripts": {
"start": "node ./bin/www"
},
Expand Down
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ router.post('/eapi/song/enhance/player/url', function(req, res, next) {
}

for(var i=0; i<amount; i++){
if (utils.netease.getPlaybackReturnCode(res.defaultBody, i) != 200 || utils.netease.getPlaybackBitrate(res.defaultBody, i) < 320000) {
if (utils.netease.getPlaybackReturnCode(res.defaultBody, i) != 200) {
var songId = utils.netease.getPlaybackSongId(res.defaultBody, i);
utils.getUrlInfo(songId, i, function(err, url, hash, bitrate, filesize, index){
if(!err){
Expand All @@ -80,7 +80,7 @@ router.post('/eapi/song/enhance/player/url', function(req, res, next) {
});

router.post('/eapi/song/enhance/download/url', function(req, res, next) {
if (utils.netease.getDownloadReturnCode(res.defaultBody) != 200 || utils.netease.getDownloadBitrate(res.defaultBody) < 320000) {
if (utils.netease.getDownloadReturnCode(res.defaultBody) != 200) {
var songId = utils.netease.getDownloadSongId(res.defaultBody);
utils.getUrlInfo(songId, null, function(err, url, hash, bitrate, filesize){
if(!err){
Expand Down

0 comments on commit 52e5f19

Please sign in to comment.