From a02d2eb42cce18d6f9fa9be13a349452e1318751 Mon Sep 17 00:00:00 2001 From: Lucas Leandro Ramos Date: Fri, 24 Mar 2017 16:22:31 -0300 Subject: [PATCH] remove m tag --- README.md | 1 + src/pornsearch.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb10a4a..2c5a6fb 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ If has success, the return will be an array with ~~possibly less than~~ 20 video { title: 'video title', url: 'video url', + duration: 'video duration', thumb: 'video thumbnail' } ``` diff --git a/src/pornsearch.js b/src/pornsearch.js index 8ae47e6..2d4c900 100644 --- a/src/pornsearch.js +++ b/src/pornsearch.js @@ -38,7 +38,7 @@ const Pornsearch = { title: data.attr('title'), url: 'http://pornhub.com/' + data.attr('href'), duration: data.find('.duration').text(), - thumb: data.find('img').attr('data-mediumthumb') + thumb: data.find('img').attr('data-mediumthumb').replace('(m=ecuK8daaaa)', '') }; } }