Skip to content

Commit

Permalink
fix bug 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
acgotaku committed Apr 5, 2015
1 parent c9a68af commit 930bfab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions chrome/js/115.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// @encoding utf-8
// @include http://*.115.com/*
// @run-at document-end
// @version 0.0.7
// @version 0.0.8
// ==/UserScript==
var pan_115 = function(cookies) {
var version = "0.0.7";
var version = "0.0.8";
var update_date = "2015/04/05";
var pan = (function() {
//type : inf err war
Expand Down Expand Up @@ -309,7 +309,7 @@ var pan_115 = function(cookies) {
var list =data.data;
for(var i=0;i<list.length;i++){
if(list[i].sha){
self.getFileInfo(list[i].pc,method);
self.getFileInfo(list[i].pc,method,data.path[data.path.length-1].name+"/");
}else{
var dir_level=data.path.length-1;
self.get_all_dir(list[i].cid,dir_level,method);
Expand All @@ -322,7 +322,6 @@ var pan_115 = function(cookies) {
//递归下载
get_all_dir:function(cid,dir_level,method){
var self=this;
console.log(method);
DownBridge.getFileList(cid,function(data){
var list =data.data;
var path="";
Expand Down
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"manifest_version": 2,
"permissions": [ "cookies", "tabs", "*://*.115.com/*"],
"name": "__MSG_appName__",
"version": "0.0.7"
"version": "0.0.8"
}
Binary file modified firefox/115-exporter.xpi
Binary file not shown.
7 changes: 3 additions & 4 deletions firefox/data/js/115.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// @encoding utf-8
// @include http://*.115.com/*
// @run-at document-end
// @version 0.0.7
// @version 0.0.8
// ==/UserScript==
var pan_115 = function(cookies) {
var version = "0.0.7";
var version = "0.0.8";
var update_date = "2015/04/05";
var pan = (function() {
//type : inf err war
Expand Down Expand Up @@ -309,7 +309,7 @@ var pan_115 = function(cookies) {
var list =data.data;
for(var i=0;i<list.length;i++){
if(list[i].sha){
self.getFileInfo(list[i].pc,method);
self.getFileInfo(list[i].pc,method,data.path[data.path.length-1].name+"/");
}else{
var dir_level=data.path.length-1;
self.get_all_dir(list[i].cid,dir_level,method);
Expand All @@ -322,7 +322,6 @@ var pan_115 = function(cookies) {
//递归下载
get_all_dir:function(cid,dir_level,method){
var self=this;
console.log(method);
DownBridge.getFileList(cid,function(data){
var list =data.data;
var path="";
Expand Down
2 changes: 1 addition & 1 deletion firefox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"icon":"data/img/logo64.png",
"icon64":"data/img/logo64.png",
"license": "GPL 3.0",
"version": "0.0.7"
"version": "0.0.8"
}

0 comments on commit 930bfab

Please sign in to comment.