parent
546c3ac066
commit
edb46d9115
@ -1,3 +1,5 @@
|
||||
*.pyc
|
||||
bazarr.db
|
||||
cachefile.dbm
|
||||
*.log
|
||||
*.log.*
|
||||
|
@ -0,0 +1,10 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Update
|
||||
RUN apk add --update python py-pip
|
||||
|
||||
# Install app dependencies
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
EXPOSE 6767
|
||||
CMD ["python", "/src/bazarr.py"]
|
@ -0,0 +1,64 @@
|
||||
BEGIN TRANSACTION;
|
||||
CREATE TABLE "table_shows" (
|
||||
`tvdbId` INTEGER NOT NULL UNIQUE,
|
||||
`title` TEXT NOT NULL,
|
||||
`path` TEXT NOT NULL UNIQUE,
|
||||
`languages` TEXT,
|
||||
`hearing_impaired` TEXT,
|
||||
`sonarrSeriesId` INTEGER NOT NULL UNIQUE,
|
||||
`overview` TEXT,
|
||||
`poster` TEXT,
|
||||
`fanart` TEXT,
|
||||
PRIMARY KEY(`tvdbId`)
|
||||
);
|
||||
CREATE TABLE "table_settings_sonarr" (
|
||||
`ip` TEXT NOT NULL,
|
||||
`port` INTEGER NOT NULL,
|
||||
`base_url` TEXT,
|
||||
`ssl` INTEGER,
|
||||
`apikey` TEXT
|
||||
);
|
||||
INSERT INTO `table_settings_sonarr` (ip,port,base_url,ssl,apikey) VALUES ('127.0.0.1',8989,'/','False',Null);
|
||||
CREATE TABLE "table_settings_providers" (
|
||||
`name` TEXT NOT NULL UNIQUE,
|
||||
`enabled` INTEGER,
|
||||
PRIMARY KEY(`name`)
|
||||
);
|
||||
CREATE TABLE "table_settings_languages" (
|
||||
`code3` TEXT NOT NULL UNIQUE,
|
||||
`code2` TEXT,
|
||||
`name` TEXT NOT NULL,
|
||||
`enabled` INTEGER,
|
||||
PRIMARY KEY(`code3`)
|
||||
);
|
||||
CREATE TABLE "table_settings_general" (
|
||||
`ip` TEXT NOT NULL,
|
||||
`port` INTEGER NOT NULL,
|
||||
`base_url` TEXT,
|
||||
`path_mapping` TEXT
|
||||
);
|
||||
INSERT INTO `table_settings_general` (ip,port,base_url,path_mapping) VALUES ('0.0.0.0',6767,'/',Null);
|
||||
CREATE TABLE `table_scheduler` (
|
||||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
`name` TEXT NOT NULL,
|
||||
`frequency` TEXT NOT NULL
|
||||
);
|
||||
CREATE TABLE "table_history" (
|
||||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
`action` INTEGER NOT NULL,
|
||||
`sonarrSeriesId` INTEGER NOT NULL,
|
||||
`sonarrEpisodeId` INTEGER NOT NULL,
|
||||
`timestamp` INTEGER NOT NULL,
|
||||
`description` TEXT NOT NULL
|
||||
);
|
||||
CREATE TABLE "table_episodes" (
|
||||
`sonarrSeriesId` INTEGER NOT NULL,
|
||||
`sonarrEpisodeId` INTEGER NOT NULL UNIQUE,
|
||||
`title` TEXT NOT NULL,
|
||||
`path` TEXT NOT NULL UNIQUE,
|
||||
`season` INTEGER NOT NULL,
|
||||
`episode` INTEGER NOT NULL,
|
||||
`subtitles` TEXT,
|
||||
`missing_subtitles` TEXT
|
||||
);
|
||||
COMMIT;
|
@ -1,49 +0,0 @@
|
||||
CREATE TABLE `table_shows` (
|
||||
`tvdbId` INTEGER NOT NULL PRIMARY KEY UNIQUE,
|
||||
`title` TEXT NOT NULL,
|
||||
`path` TEXT NOT NULL UNIQUE,
|
||||
`languages` TEXT,
|
||||
`hearing_impaired` TEXT
|
||||
);
|
||||
CREATE TABLE `table_settings_subliminal` (
|
||||
`age` TEXT,
|
||||
`max-workers` INTEGER
|
||||
);
|
||||
CREATE TABLE `table_settings_providers` (
|
||||
`name` TEXT NOT NULL UNIQUE,
|
||||
`username` TEXT,
|
||||
`password` TEXT,
|
||||
`enabled` INTEGER,
|
||||
PRIMARY KEY(`name`)
|
||||
);
|
||||
CREATE TABLE `table_settings_languages` (
|
||||
`code` TEXT NOT NULL UNIQUE,
|
||||
`name` TEXT NOT NULL,
|
||||
`enabled` INTEGER,
|
||||
PRIMARY KEY(`code`)
|
||||
);
|
||||
CREATE TABLE `table_settings_general` (
|
||||
`ip` TEXT NOT NULL,
|
||||
`port` INTEGER NOT NULL,
|
||||
`base_url` TEXT,
|
||||
`ssl` INTEGER
|
||||
);
|
||||
INSERT INTO `table_settings_general` (ip,port,base_url,ssl) VALUES ('0.0.0.0',6767,NULL,NULL);
|
||||
CREATE TABLE `table_settings_connect` (
|
||||
`ip` TEXT NOT NULL,
|
||||
`port` INTEGER NOT NULL,
|
||||
`base_url` TEXT,
|
||||
`ssl` INTEGER,
|
||||
`apikey` TEXT NOT NULL
|
||||
);
|
||||
CREATE TABLE `table_scheduler` (
|
||||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
`name` TEXT NOT NULL,
|
||||
`frequency` TEXT NOT NULL
|
||||
);
|
||||
CREATE TABLE `table_history` (
|
||||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
`timestamp` TEXT NOT NULL,
|
||||
`file` TEXT NOT NULL,
|
||||
`provider` TEXT NOT NULL
|
||||
);
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
babelfish
|
||||
bottle
|
||||
bottle-fdsend
|
||||
dogpile.cache
|
||||
enzyme
|
||||
py-pretty
|
||||
pycountry
|
||||
requests
|
||||
subliminal
|
||||
urllib3
|
||||
waitress
|
@ -0,0 +1,12 @@
|
||||
import datetime, threading, time
|
||||
|
||||
def foo():
|
||||
next_call = time.time()
|
||||
while True:
|
||||
print datetime.datetime.now()
|
||||
next_call = next_call+1;
|
||||
time.sleep(next_call - time.time())
|
||||
|
||||
timerThread = threading.Thread(target=foo)
|
||||
timerThread.daemon = True
|
||||
timerThread.start()
|
Loading…
Reference in new issue