-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
60 lines (43 loc) · 1.89 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import os
import requests_cache
import tempfile
import shutil
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
###
#bin
###
WINEPATH = shutil.which("wine")
JAVAPATH=shutil.which("java") or os.path.join(ROOT_DIR,"bin","java/bin/java")
MONOPATH=shutil.which("mono")
CONTYPATH= os.path.join(ROOT_DIR,"bin","conty/conty.sh")
EACTOPATH = shutil.which("eac3to.exe") or os.path.join(ROOT_DIR, "bin/eac3to/eac3to.exe")
DGDEMUXLINUX=shutil.which("dgdemux") or os.path.join(ROOT_DIR,"bin/dgdemux/Linux/dgdemux")
DGDEMUXWINDOW=shutil.which("dgdemux") or os.path.join(ROOT_DIR,"bin/dgdemux/Windows/DGDemux.exe")
MKVMERGELINUX = shutil.which("mkvmerge") or os.path.join(ROOT_DIR, "bin/mkvmerge/Linux/mkvmerge")
MKVMERGEWINDOWS = shutil.which("mkvmerge") or os.path.join(
ROOT_DIR, "bin/mkvmerge/Windows/mkvmerge.exe")
BDSUPLINUX= os.path.join(ROOT_DIR, "bin/bdsup2sub/Linux/BDSup2Sub512.jar")
BDSUPWINDOWS= os.path.join(ROOT_DIR, "bin/bdsup2sub.exe")
BDINFOWINDOWSPATH = os.path.join(
ROOT_DIR, "bin/bdinfo/BDInfo.exe")
BDINFOLINUXPATH= os.path.join(
ROOT_DIR, "bin/bdinfo/BDInfo.exe")
ISOEXTRACTWINDOWS = os.path.join(ROOT_DIR, "bin/7z/Windows/7za.exe")
ISOEXTRACTLINUX= os.path.join(ROOT_DIR, "bin/7z/Linux/7zzs")
SUPRIPPATH = shutil.which("Subrip.exe") or os.path.join(
ROOT_DIR, "bin/suprip/SupRip.exe")
AVISYNTH_LINUX_LIB= os.path.join(ROOT_DIR, "bin/avisynth/Linux/Lib")
FFMS2_LINUX_LIB=os.path.join(ROOT_DIR, "bin/avisynth/Linux/libffms2.so.5.0.0")
FFMS2=os.path.join(ROOT_DIR, "bin/avisynth/FFMS2.avsi")
FFMPEG_LINUX=os.path.join(ROOT_DIR, "bin/avisynth/ffmpeg")
###
#Global Settings
###
DEMUXPREFIX= "Mux"
CACHEDIR = os.path.join(os.path.expanduser("~"), ".cache","remuxer_cache")
SESSION = requests_cache.CachedSession(CACHEDIR)
TEMPFOLDER=tempfile.gettempdir()
TEMPPREFIX="PTMuxer_"
TEMPFOLDERMINCLEANUPTIME=60 #Max Value accepted is 1440 Minutes
MAXOCRLINECOUNT=50
MAXVOICELINECOUNT=50