Skip to content

Commit

Permalink
added patreon (temp disabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Mar 30, 2024
1 parent 9d17874 commit 6e6f4fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/config/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ const sites = () => {
match: (url) => /([^.]+).mp4/.test(url.pathname),
selector: null,
},
// пока рано
// {
// host: "patreon",
// url: "https://www.patreon.com/",
// match: /^www.patreon.com$/,
// selector:
// 'div[data-tag="post-card"] div[elevation="subtle"] > div > div > div > div',
// },
// Нужно куда-то заливать данные о плейлисте
// {
// host: "epicgames",
Expand Down
2 changes: 2 additions & 0 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ const getVideoId = (service, video) => {
return url.pathname;
case "youku":
return url.pathname.match(/v_show\/id_[\w=]+/)?.[0];
// case "patreon":
// return url.pathname.match(/posts\/([^/]+)/)?.[0];
case "directlink":
return url.pathname + url.search;
default:
Expand Down

0 comments on commit 6e6f4fb

Please sign in to comment.