mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
fix merge conflicts
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
## Self-hosted quickstart
|
## Self-hosted quickstart
|
||||||
```
|
```
|
||||||
cd addon/hosted
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
Then open your browser to `127.0.0.1:7000`
|
Then open your browser to `127.0.0.1:7000`
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
CREATE TABLE "torrents" (
|
|
||||||
"infoHash" varchar(64) PRIMARY KEY,
|
|
||||||
"provider" varchar(32) NOT NULL,
|
|
||||||
"torrentId" varchar(256),
|
|
||||||
"title" varchar(256) NOT NULL,
|
|
||||||
"size" bigint,
|
|
||||||
"type" varchar(16) NOT NULL,
|
|
||||||
"uploadDate" date NOT NULL,
|
|
||||||
"seeders" integer,
|
|
||||||
"trackers" varchar(4096),
|
|
||||||
"languages" varchar(4096),
|
|
||||||
"resolution" varchar(16),
|
|
||||||
"createdAt" date,
|
|
||||||
"updatedAt" date,
|
|
||||||
"reviewed" boolean,
|
|
||||||
"opened" boolean
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE "files" (
|
|
||||||
"id" SERIAL PRIMARY KEY,
|
|
||||||
"infoHash" varchar(64) NOT NULL,
|
|
||||||
"fileIndex" integer,
|
|
||||||
"title" varchar(256) NOT NULL,
|
|
||||||
"size" bigint,
|
|
||||||
"imdbId" varchar(32),
|
|
||||||
"imdbSeason" integer,
|
|
||||||
"imdbEpisode" integer,
|
|
||||||
"kitsuId" integer,
|
|
||||||
"kitsuEpisode" integer,
|
|
||||||
"createdAt" date,
|
|
||||||
"updatedAt" date,
|
|
||||||
FOREIGN KEY("infoHash") REFERENCES torrents("infoHash") ON DELETE CASCADE,
|
|
||||||
UNIQUE("infoHash","fileIndex")
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE "subtitles" (
|
|
||||||
"id" SERIAL PRIMARY KEY,
|
|
||||||
"infoHash" varchar(64) NOT NULL,
|
|
||||||
"fileIndex" integer NOT NULL,
|
|
||||||
"fileId" bigint,
|
|
||||||
"title" varchar(512) NOT NULL,
|
|
||||||
"size" bigint,
|
|
||||||
FOREIGN KEY("infoHash") REFERENCES torrents("infoHash") ON DELETE CASCADE,
|
|
||||||
FOREIGN KEY("fileId") REFERENCES files("id") ON DELETE SET NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE "contents" (
|
|
||||||
"infoHash" varchar(64),
|
|
||||||
"fileIndex" integer,
|
|
||||||
"path" varchar(256),
|
|
||||||
"size" bigint,
|
|
||||||
FOREIGN KEY("infoHash") REFERENCES torrents("infoHash") ON DELETE CASCADE
|
|
||||||
);
|
|
||||||
@@ -1,44 +1,49 @@
|
|||||||
version: '2'
|
---
|
||||||
|
|
||||||
|
version: '3.9'
|
||||||
|
name: torrentio-self-host
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
image: docker.io/bitnami/mongodb:7.0
|
image: docker.io/bitnami/mongodb:7.0
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- 'mongodb_data:/bitnami/mongodb'
|
- mongo-data:/bitnami/mongodb
|
||||||
|
|
||||||
scraper:
|
scraper:
|
||||||
build: ../../scraper/
|
build: ./scraper
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "7001:7001"
|
|
||||||
environment:
|
environment:
|
||||||
- PORT=7001
|
- PORT=7001
|
||||||
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
||||||
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
||||||
|
- ENABLE_SYNC=true
|
||||||
|
|
||||||
torrentio:
|
torrentio:
|
||||||
build: ../
|
build: ./addon
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "7000:7000"
|
- "7000:7000"
|
||||||
environment:
|
environment:
|
||||||
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
||||||
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
||||||
|
- ENABLE_SYNC=true
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
volumes:
|
volumes:
|
||||||
- pg_data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
- './init:/docker-entrypoint-initdb.d'
|
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
- POSTGRES_USER=postgres
|
- POSTGRES_USER=postgres
|
||||||
- POSTGRES_DB=torrentio
|
- POSTGRES_DB=torrentio
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongodb_data:
|
mongo-data:
|
||||||
driver: local
|
postgres-data:
|
||||||
pg_data:
|
|
||||||
driver: local
|
|
||||||
@@ -1,22 +1,22 @@
|
|||||||
const thepiratebayScraper = require('../scrapers/thepiratebay/thepiratebay_scraper');
|
// const thepiratebayScraper = require('../scrapers/thepiratebay/thepiratebay_scraper');
|
||||||
const thepiratebayFakeRemoval = require('../scrapers/thepiratebay/thepiratebay_fakes_removal');
|
// const thepiratebayFakeRemoval = require('../scrapers/thepiratebay/thepiratebay_fakes_removal');
|
||||||
const ytsScraper = require('../scrapers/yts/yts_scraper');
|
const ytsScraper = require('../scrapers/yts/yts_scraper');
|
||||||
const ytsFullScraper = require('../scrapers/yts/yts_full_scraper');
|
const ytsFullScraper = require('../scrapers/yts/yts_full_scraper');
|
||||||
const eztvScraper = require('../scrapers/eztv/eztv_scraper');
|
const eztvScraper = require('../scrapers/eztv/eztv_scraper');
|
||||||
const leetxScraper = require('../scrapers/1337x/1337x_scraper');
|
const leetxScraper = require('../scrapers/1337x/1337x_scraper');
|
||||||
const rarbgScraper = require('../scrapers/rarbg/rarbg_scraper');
|
// const rarbgScraper = require('../scrapers/rarbg/rarbg_scraper');
|
||||||
const nyaaPantsuScraper = require('../scrapers/nyaapantsu/nyaa_pantsu_scraper');
|
const nyaaPantsuScraper = require('../scrapers/nyaapantsu/nyaa_pantsu_scraper');
|
||||||
const nyaaSiScraper = require('../scrapers/nyaasi/nyaa_si_scraper');
|
const nyaaSiScraper = require('../scrapers/nyaasi/nyaa_si_scraper');
|
||||||
const erairawsScraper = require('../scrapers/erairaws/erairaws_scraper');
|
// const erairawsScraper = require('../scrapers/erairaws/erairaws_scraper');
|
||||||
const torrentGalaxyScraper = require('../scrapers/torrentgalaxy/torrentgalaxy_scraper');
|
// const torrentGalaxyScraper = require('../scrapers/torrentgalaxy/torrentgalaxy_scraper');
|
||||||
const rutorScraper = require('../scrapers/rutor/rutor_scraper');
|
// const rutorScraper = require('../scrapers/rutor/rutor_scraper');
|
||||||
const Comando = require('../scrapers/comando/comando_scraper')
|
// const Comando = require('../scrapers/comando/comando_scraper')
|
||||||
const ComoEuBaixo = require('../scrapers/comoeubaixo/comoeubaixo_scraper')
|
// const ComoEuBaixo = require('../scrapers/comoeubaixo/comoeubaixo_scraper')
|
||||||
const Lapumia = require('../scrapers/lapumia/lapumia_scraper')
|
// const Lapumia = require('../scrapers/lapumia/lapumia_scraper')
|
||||||
const OndeBaixa = require('../scrapers/ondebaixa/ondebaixa_scraper');
|
// const OndeBaixa = require('../scrapers/ondebaixa/ondebaixa_scraper');
|
||||||
const AnimesTorrent = require('../scrapers/animestorrent/animestorrent_scraper')
|
// const AnimesTorrent = require('../scrapers/animestorrent/animestorrent_scraper')
|
||||||
const DarkMahou = require('../scrapers/darkmahou/darkmahou_scraper')
|
// const DarkMahou = require('../scrapers/darkmahou/darkmahou_scraper')
|
||||||
const torrent9Scraper = require('../scrapers/torrent9/torrent9_scraper');
|
// const torrent9Scraper = require('../scrapers/torrent9/torrent9_scraper');
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{ scraper: ytsScraper, name: ytsScraper.NAME, cron: '0 0 */4 ? * *' },
|
{ scraper: ytsScraper, name: ytsScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
@@ -24,20 +24,20 @@ module.exports = [
|
|||||||
{ scraper: eztvScraper, name: eztvScraper.NAME, cron: '0 0 */4 ? * *' },
|
{ scraper: eztvScraper, name: eztvScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: nyaaSiScraper, name: nyaaSiScraper.NAME, cron: '0 0 */4 ? * *' },
|
{ scraper: nyaaSiScraper, name: nyaaSiScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: nyaaPantsuScraper, name: nyaaPantsuScraper.NAME, cron: '0 0 */4 ? * *' },
|
{ scraper: nyaaPantsuScraper, name: nyaaPantsuScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: rarbgScraper, name: rarbgScraper.NAME, cron: '0 0 */1 ? * *' },
|
// { scraper: rarbgScraper, name: rarbgScraper.NAME, cron: '0 0 */1 ? * *' },
|
||||||
{ scraper: rutorScraper, name: rutorScraper.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: rutorScraper, name: rutorScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: thepiratebayScraper, name: thepiratebayScraper.NAME, cron: '0 0 */2 ? * *' },
|
// { scraper: thepiratebayScraper, name: thepiratebayScraper.NAME, cron: '0 0 */2 ? * *' },
|
||||||
{ scraper: thepiratebayFakeRemoval, name: thepiratebayFakeRemoval.NAME, cron: '0 0 */12 ? * *' },
|
// { scraper: thepiratebayFakeRemoval, name: thepiratebayFakeRemoval.NAME, cron: '0 0 */12 ? * *' },
|
||||||
{ scraper: torrentGalaxyScraper, name: torrentGalaxyScraper.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: torrentGalaxyScraper, name: torrentGalaxyScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: leetxScraper, name: leetxScraper.NAME, cron: '0 0 */4 ? * *' },
|
{ scraper: leetxScraper, name: leetxScraper.NAME, cron: '0 0 */4 ? * *' }
|
||||||
{ scraper: torrent9Scraper, name: torrent9Scraper.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: torrent9Scraper, name: torrent9Scraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: Comando, name: Comando.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: Comando, name: Comando.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: ComoEuBaixo, name: ComoEuBaixo.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: ComoEuBaixo, name: ComoEuBaixo.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: Lapumia, name: Lapumia.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: Lapumia, name: Lapumia.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: OndeBaixa, name: OndeBaixa.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: OndeBaixa, name: OndeBaixa.NAME, cron: '0 0 */4 ? * *' },
|
||||||
// { scraper: AnimesTorrent, name: AnimesTorrent.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: AnimesTorrent, name: AnimesTorrent.NAME, cron: '0 0 */4 ? * *' },
|
||||||
// { scraper: DarkMahou, name: DarkMahou.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: DarkMahou, name: DarkMahou.NAME, cron: '0 0 */4 ? * *' },
|
||||||
{ scraper: erairawsScraper, name: erairawsScraper.NAME, cron: '0 0 */4 ? * *' },
|
// { scraper: erairawsScraper, name: erairawsScraper.NAME, cron: '0 0 */4 ? * *' },
|
||||||
// { scraper: require('../scrapers/rarbg/rarbg_dump_scraper') }
|
// { scraper: require('../scrapers/rarbg/rarbg_dump_scraper') }
|
||||||
// { scraper: require('../scrapers/1337x/1337x_search_scraper') }
|
// { scraper: require('../scrapers/1337x/1337x_search_scraper') }
|
||||||
// { scraper: require('../scrapers/rarbg/rarbg_dump_scraper') }
|
// { scraper: require('../scrapers/rarbg/rarbg_dump_scraper') }
|
||||||
|
|||||||
Reference in New Issue
Block a user