Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Apr 28, 2018
1 parent d5e328e commit 58322df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
类型支持 od(OneDrive) gd(GoogleDrive)

## 安装
### Shell script
### Shell
````bash
wget --no-check-certificate -qO- https://raw.githubusercontent.com/reruin/gdlist/master/install.sh | bash
bash install.sh
````

### Docker support
````bash
docker build -t yourname/gdlist .
docker build -t yourname/sharelist .

docker run -d -v /etc/gdlist:/app/config -p 33001:33001 --name="gdlist" yourname/gdlist
docker run -d -v /etc/sharelist:/app/cache -p 33001:33001 --name="sharelist" yourname/sharelist
````

OR
Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ then
yum -y install nodejs >/dev/null 2>&1
fi

npm install yarn -g
yarn add pm2 -g
npm install
npm install pm2 -g

pm2 start bin/www
pm2 save
pm2 startup
Expand Down
2 changes: 1 addition & 1 deletion models/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const nrop19 = {
let viewkey = ids[2]
let {body} = await http.get('http://www.91porn.com/view_video.php?viewkey='+viewkey.replace('@','') , {fake:true})
let url = (body.match(/source\s*src\s*=\s*"([^"]+)/) || ['',''])[1]
let name =(body.match(/viewvideo-title">([^<]+)/) || ['',''])[1].replace(/[\r\n\s]/g,'')
let name =(body.match(/viewvideo-title">([^<]+)/) || ['',''])[1].replace(/[\r\n]/g,'').replace(/(^[\s]*|[\s]*$)/g,'')
let resp = {
id : '91/folder/' + viewkey,
name : viewkey,
Expand Down

0 comments on commit 58322df

Please sign in to comment.