mirror of
https://github.com/NoCrypt/migu.git
synced 2026-01-11 20:10:22 +00:00
32 lines
803 B
JavaScript
32 lines
803 B
JavaScript
export default class AbstractSource {
|
|
name = 'Missing name'
|
|
description = 'No description provided'
|
|
/** @type {import('./type-definitions').Accuracy} */
|
|
accuracy = 'Low'
|
|
/** @type {import('./type-definitions').Config} */
|
|
config = {}
|
|
|
|
/**
|
|
* Gets results for single episode
|
|
* @type {import('./type-definitions').SearchFunction}
|
|
*/
|
|
single (options) {
|
|
throw new Error('Source doesn\'t implement single')
|
|
}
|
|
|
|
/**
|
|
* Gets results for batch of episodes
|
|
* @type {import('./type-definitions').SearchFunction}
|
|
*/
|
|
batch (options) {
|
|
throw new Error('Source doesn\'t implement batch')
|
|
}
|
|
|
|
/**
|
|
* Gets results for a movie
|
|
* @type {import('./type-definitions').SearchFunction}
|
|
*/
|
|
movie (options) {
|
|
throw new Error('Source doesn\'t implement movie')
|
|
}
|
|
}
|