-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js.old
More file actions
79 lines (63 loc) · 1.77 KB
/
script.js.old
File metadata and controls
79 lines (63 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Joyn Plugin for GrayJay
// Author: Bluscream, Cursor.AI
// Platform: https://joyn.de
const PLATFORM = "Joyn";
const BASE_URL = "https://www.joyn.de";
const CONTENT_TYPE = "series";
var config = {};
// Source Methods
source.enable = function(conf) {
config = conf ?? {};
log("Joyn plugin enabled");
};
source.getHome = function() {
log("Getting home page");
throw new ScriptException("Not implemented yet");
};
source.searchSuggestions = function(query) {
return [];
};
source.getSearchCapabilities = function() {
return {
types: [Type.Feed.Mixed],
sorts: [Type.Order.Chronological],
filters: []
};
};
source.search = function(query, type, order, filters) {
log("Searching for: " + query);
throw new ScriptException("Not implemented yet");
};
source.getChannelCapabilities = function() {
return {
types: [Type.Feed.Mixed],
sorts: [Type.Order.Chronological],
filters: []
};
};
source.isChannelUrl = function(url) {
return url.includes("joyn.de/serien/") || url.includes("joyn.de/filme/");
};
source.getChannel = function(url) {
log("Getting channel: " + url);
throw new ScriptException("Not implemented yet");
};
source.getChannelContents = function(url, type, order, filters) {
log("Getting channel contents: " + url);
throw new ScriptException("Not implemented yet");
};
source.isContentDetailsUrl = function(url) {
return url.includes("joyn.de/");
};
source.getContentDetails = function(url) {
log("Getting content details: " + url);
throw new ScriptException("Not implemented yet");
};
source.saveState = function() {
return JSON.stringify(config);
};
// Helper Functions
function log(message) {
console.log("[Joyn] " + message);
}
log("Joyn script loaded");