-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathabstract.js
More file actions
40 lines (36 loc) · 797 Bytes
/
Copy pathabstract.js
File metadata and controls
40 lines (36 loc) · 797 Bytes
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
/**
* @typedef {import('./').TorrentSource} TorrentSource
*/
/**
* @implements {TorrentSource}
*/
export default class AbstractSource {
/**
* Gets results for single episode
* @type {import('./').SearchFunction}
*/
single (options) {
throw new Error('Source doesn\'t implement single')
}
/**
* Gets results for batch of episodes
* @type {import('./').SearchFunction}
*/
batch (options) {
throw new Error('Source doesn\'t implement batch')
}
/**
* Gets results for a movie
* @type {import('./').SearchFunction}
*/
movie (options) {
throw new Error('Source doesn\'t implement movie')
}
/**
* Gets results for a movie
* @type {()=>Promise<boolean>}
*/
test () {
throw new Error('Source doesn\'t implement test')
}
}