Skip to content
Snippets Groups Projects
Commit 3f457da0 authored by Kelvin's avatar Kelvin
Browse files

ClaimID Support

parent 0189ac5b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
"sourceUrl": "https://autoupdate.unkto.com/sources/Twitch/TwitchConfig.json",
"repositoryUrl": "https://futo.org",
"scriptUrl": "./TwitchScript.js",
"version": 7,
"version": 8,
"iconUrl": "./twitch.png",
"id": "c0f315f9-0992-4508-a061-f2738724c331",
......
......@@ -142,6 +142,16 @@ source.getChannel = function (url) {
source.getChannelContents = function (url) {
return getChannelPager({ url, page_size: 20, cursor: null })
}
source.getChannelTemplateByClaimMap = () => {
return {
//SoundCloud
14: {
0: BASE_URL + "{{CLAIMVALUE}}"
}
};
};
source.isContentDetailsUrl = function (url) {
// https://www.twitch.tv/user or https://www.twitch.tv/videos/123456789
return /twitch\.tv\/[a-zA-Z0-9-_]+\/?/.test(url) || /twitch\.tv\/videos\/[0-9]+\/?/.test(url)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment