mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
adds horriblesubs scrapper
This commit is contained in:
@@ -5,18 +5,19 @@ const POSTGRES_URI = process.env.POSTGRES_URI || 'postgres://torrentio:postgres@
|
||||
const database = new Sequelize(POSTGRES_URI, { logging: false });
|
||||
|
||||
const Provider = database.define('provider', {
|
||||
name: { type: Sequelize.STRING(16), primaryKey: true},
|
||||
name: { type: Sequelize.STRING(32), primaryKey: true},
|
||||
lastScraped: { type: Sequelize.DATE }
|
||||
});
|
||||
|
||||
const Torrent = database.define('torrent', {
|
||||
infoHash: { type: Sequelize.STRING(64), primaryKey: true },
|
||||
provider: { type: Sequelize.STRING(16), allowNull: false },
|
||||
provider: { type: Sequelize.STRING(32), allowNull: false },
|
||||
title: { type: Sequelize.STRING(128), allowNull: false },
|
||||
type: { type: Sequelize.STRING(16), allowNull: false },
|
||||
imdbId: { type: Sequelize.STRING(12) },
|
||||
uploadDate: { type: Sequelize.DATE, allowNull: false },
|
||||
seeders: { type: Sequelize.SMALLINT },
|
||||
files: { type: Sequelize.ARRAY(Sequelize.TEXT) },
|
||||
files: { type: Sequelize.JSONB }
|
||||
});
|
||||
|
||||
const SkipTorrent = database.define('skip_torrent', {
|
||||
|
||||
Reference in New Issue
Block a user