Permalink
Browse files

Fix WEBM

  • Loading branch information...
1 parent f64f940 commit 709bf5b00753718c018158ab206bd93d0117364e @HispachanFiles committed Aug 5, 2016
Showing with 3 additions and 2 deletions.
  1. +1 −1 .vscode/launch.json
  2. +2 −1 components/parsers/parsePost.js
View
@@ -5,7 +5,7 @@
"name": "Launch",
"type": "node",
"request": "launch",
- "program": "${workspaceRoot}\\bin\\www",
+ "program": "${workspaceRoot}/bin/www",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
@@ -75,7 +75,8 @@ function postMeta(post, $) {
let fileMetaR = fileMeta.text().replace(/(\r\n|\n|\r|[()])/gm, "").split(',');
let fileSize = fileMetaR[0].trim();
let fileRes = (fileMetaR.length > 1) ? fileMetaR[1].trim() : '';
- let fileON = (fileMetaR.length > 1) ? fileMetaR[2].trim() : fileInfo.find('a').first().attr('href').split('/').reverse()[0];
+ let fileON = (fileMetaR.length > 2) ? fileMetaR[2].trim() : fileInfo.find('a').first().attr('href').split('/').reverse()[0];
+ if (fileMetaR.length == 2) fileON = fileMetaR[1].trim();
data.file = {
url: fileInfo.find('a').first().attr('href'),
size: fileSize,

0 comments on commit 709bf5b

Please sign in to comment.