You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
458 B

import { MovieTicket } from "@autoplex/database";
import Torrent from "../Torrent";
/**
* Media type flags
*/
export enum MediaType {
None = 0x0,
Movies = 0x1,
TvShows = 0x2
}
export default abstract class Provider
{
/**
* Indicate what media types the provider supports
*/
public static readonly PROVIDES: MediaType = MediaType.None;
/**
* Search for movies
*/
public abstract searchMovie(movie: MovieTicket): Promise<Torrent[]>;
}