From b8885039a6ba87cf329be1daf96c80914ecfef0b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 30 May 2018 15:14:33 +0200 Subject: json columns work swimmingly :) --- app/client/api/parser.js | 57 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'app/client/api') diff --git a/app/client/api/parser.js b/app/client/api/parser.js index e116767..d0e6aab 100644 --- a/app/client/api/parser.js +++ b/app/client/api/parser.js @@ -170,35 +170,36 @@ export const integrations = [ // return ''; return '
' } - }, { - type: 'soundcloud', - regex: /soundcloud.com\/[-a-zA-Z0-9]+\/[-a-zA-Z0-9]+\/?$/i, - fetch: function (url, done) { - fetch('https://api.soundcloud.com/resolve.json?url=' - + url - + '&client_id=' - + '0673fbe6fc794a7750f680747e863b10') - .then(result => result.json()) - .then(result => { - console.log(result) - done({ - url: url, - type: "soundcloud", - token: result.id, - thumbnail: result.artwork_url || result.user.avatar_url, - title: result.user.username + " - " + result.title, - duration: result.duration, - width: 166, - height: 166, - }) - }) - }, - tag: function (media) { - return '' - } }, + // { + // type: 'soundcloud', + // regex: /soundcloud.com\/[-a-zA-Z0-9]+\/[-a-zA-Z0-9]+\/?$/i, + // fetch: function (url, done) { + // fetch('https://api.soundcloud.com/resolve.json?url=' + // + url + // + '&client_id=' + // + '0673fbe6fc794a7750f680747e863b10') + // .then(result => result.json()) + // .then(result => { + // console.log(result) + // done({ + // url: url, + // type: "soundcloud", + // token: result.id, + // thumbnail: result.artwork_url || result.user.avatar_url, + // title: result.user.username + " - " + result.title, + // duration: result.duration, + // width: 166, + // height: 166, + // }) + // }) + // }, + // tag: function (media) { + // return '' + // } + // }, { type: 'link', regex: /^http.+/i, -- cgit v1.2.3-70-g09d2