Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vlipsy Host #4696

Merged
merged 3 commits into from
Mar 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup
  • Loading branch information
erikdesjardins committed Mar 4, 2018
commit 6500d6d31f50432d36bbb30983943838a268dd86
8 changes: 3 additions & 5 deletions lib/modules/hosts/vlipsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ export default new Host('vlipsy', {
name: 'Vlipsy',
domains: ['vlipsy.com'],
logo: 'https://vlipsy.com/favicon.ico',
detect: ({ pathname }) => (/^\/vlip\/(\w+-)*(\w+)$/).exec(pathname),
handleLink(href, [, , id]) {
const url = `https://vlipsy.com/embed/${id}`;

detect: ({ pathname }) => (/^\/vlip\/(?:\w+-)*(\w+)$/).exec(pathname),
handleLink(href, [, id]) {
return {
type: 'IFRAME',
embed: url,
embed: `https://vlipsy.com/embed/${id}`,
fixedRatio: true,
};
},
Expand Down