-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.js
223 lines (200 loc) · 6.9 KB
/
index.js
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
'use strict;'
const path = require('path')
const os = require('os')
/** Default settings **/
var Settings = new Object({
set: function (key, value) {this[key] = value},
get: function (key) {return this[key]},
projectName: 'Butter',
projectUrl: 'http://butterproject.org',
projectTwitter: 'butterproject',
projectFacebook: 'ButterProjectOrg',
projectGooglePlus: 'ButterProject',
projectBlog: 'http://blog.butterproject.org/',
projectForum: 'https://www.reddit.com/r/ButterProject',
statusUrl: 'https://status.butterproject.org',
changelogUrl: 'https://github.com/butterproject/butter-desktop/commits/master',
issuesUrl: 'https://github.com/butterproject/butter-desktop/issues',
sourceUrl: 'https://github.com/butterproject/butter-desktop/',
commitUrl: 'https://github.com/butterproject/butter-desktop/commit',
updateKey: '-----BEGIN PUBLIC KEY-----\n' +
'MIIBtjCCASsGByqGSM44BAEwggEeAoGBAPNM5SX+yR8MJNrX9uCQIiy0t3IsyNHs\n' +
'HWA180wDDd3S+DzQgIzDXBqlYVmcovclX+1wafshVDw3xFTJGuKuva7JS3yKnjds\n' +
'NXbvM9CrJ2Jngfd0yQPmSh41qmJXHHSwZfPZBxQnspKjbcC5qypM5DqX9oDSJm2l\n' +
'fM/weiUGnIf7AhUAgokTdF7G0USfpkUUOaBOmzx2RRkCgYAyy5WJDESLoU8vHbQc\n' +
'rAMnPZrImUwjFD6Pa3CxhkZrulsAOUb/gmc7B0K9I6p+UlJoAvVPXOBMVG/MYeBJ\n' +
'19/BH5UNeI1sGT5/Kg2k2rHVpuqzcvlS/qctIENgCNMo49l3LrkHbJPXKJ6bf+T2\n' +
'8lFWRP2kVlrx/cHdqSi6aHoGTAOBhAACgYBTNeXBHbWDOxzSJcD6q4UDGTnHaHHP\n' +
'JgeCrPkH6GBa9azUsZ+3MA98b46yhWO2QuRwmFQwPiME+Brim3tHlSuXbL1e5qKf\n' +
'GOm3OxA3zKXG4cjy6TyEKajYlT45Q+tgt1L1HuGAJjWFRSA0PP9ctC6nH+2N3HmW\n' +
'RTcms0CPio56gg==\n' +
'-----END PUBLIC KEY-----\n',
opensubtitles: {
useragent: 'Butter'
},
trakttv: {
client_id: '647c69e4ed1ad13393bf6edd9d8f9fb6fe9faf405b44320a6b71ab960b4540a2',
client_secret: 'f55b0a53c63af683588b47f6de94226b7572a6f83f40bd44c58a7c83fe1f2cb1'
},
tvshowtime: {
client_id: 'iM2Vxlwr93imH7nwrTEZ',
client_secret: 'ghmK6ueMJjQLHBwsaao1tw3HUF7JVp_GQTwDwhCn'
},
fanart: {
api_key: '8104b601679c3ec23e7d3e4d93ddb46f'
},
tvdb: {
api_key: '9845B685B799009C'
},
tmdb: {
api_key: '1a83b1ecd56e3ac0e509b553b68c77a9'
}
});
Settings.tabs = {
movie: {
order: 1,
name: 'Movies',
providers: ['vodo', 'archive',
//'stremio?auth={"url":"http://api8.herokuapp.com","key":"423f59935153f2f5d2db0f6c9b812592b61b3737"}&url=http://localhost:9005'
]
},
tvshow: {
order: 2,
name: 'Series',
providers: [
'youtube?channel=kurzgesagt',
'youtube?channel=devinsupertramp',
'youtube?channel=TEDtalksDirector',
'youtube?channel=BadLipReading',
'youtube?channel=1veritasium',
'youtube?channel=enyay', // tom scott
'youtube?channel=CinemaSins',
'youtube?channel=TomSka',
'youtube?channel=ExplosmEntertainment',
'youtube?channel=everyframeapainting',
'youtube?channel=willunicycleforfood', // exurb1a
//'youtube?channel=petercapusottotv&titleRegex=[0-9]+[aª] +Temporada',
'ccc?langs=["eng"]&formats=["video/mp4","video/webm"]&urlList=["http://localhost:8080/"]'
],
},
test: {
name: 'Test',
providers: [
'ccc',
'vodo'
]
}
};
Settings.providers = {
subtitle: 'OpenSubtitles',
metadata: 'Trakttv',
tvst: 'TVShowTime',
torrentCache: 'TorrentCache'
};
Settings.trackers = {
blacklisted: [
'demonii'
],
forced: [
'udp://tracker.coppersurfer.tk:6969/announce',
'udp://glotorrents.pw:6969/announce',
'udp://exodus.desync.com:6969/announce',
'udp://tracker.opentrackr.org:1337/announce',
'udp://9.rarbg.com:2710/announce',
'udp://tracker.openbittorrent.com:80',
'udp://tracker.publicbt.com:80/announce'
]
};
// User interface
Settings.language = '';
Settings.translateSynopsis = true;
Settings.coversShowRating = true;
Settings.watchedCovers = 'fade';
Settings.showAdvancedSettings = false;
Settings.postersMinWidth = 134;
Settings.postersMaxWidth = 294;
Settings.postersMinFontSize = 0.8;
Settings.postersMaxFontSize = 1.3;
Settings.postersSizeRatio = (196 / 134);
Settings.postersWidth = Settings.postersMinWidth;
Settings.postersJump = [134, 154, 174, 194, 214, 234, 254, 274, 294];
//Playback
Settings.alwaysFullscreen = false;
Settings.playNextEpisodeAuto = true;
Settings.chosenPlayer = 'local';
// Advanced UI
Settings.alwaysOnTop = false;
Settings.theme = 'Official_-_Dark_theme';
Settings.ratingStars = true; //trigger on click in details
Settings.hideSeasons = true;
Settings.startScreen = Object.keys(Settings.tabs)[0];
Settings.lastTab = '';
Settings.rememberFilters = false;
// Quality
Settings.shows_default_quality = '720p';
Settings.movies_default_quality = '1080p';
Settings.moviesShowQuality = false;
Settings.movies_quality = 'all';
// Subtitles
Settings.subtitle_language = 'none';
Settings.subtitle_size = '28px';
Settings.subtitle_color = '#ffffff';
Settings.subtitle_decoration = 'Outline';
Settings.subtitle_font = 'Arial';
// More options
Settings.httpApiPort = 8008;
Settings.httpApiUsername = 'butter';
Settings.httpApiPassword = 'butter';
// Trakt.tv
Settings.traktStatus = false;
Settings.traktLastSync = false;
Settings.traktLastActivities = false;
Settings.traktSyncOnStart = true;
Settings.traktPlayback = true;
// TVShow Time
Settings.tvstAccessToken = '';
// OpenSubtitles
Settings.opensubtitlesAutoUpload = true;
Settings.opensubtitlesAuthenticated = false;
Settings.opensubtitlesUsername = '';
Settings.opensubtitlesPassword = '';
// Advanced options
Settings.connectionLimit = 55;
Settings.streamPort = 0; // 0 = Random
Settings.tmpLocation = path.join(os.tmpdir(), Settings.projectName);
//Settings.databaseLocation = path.join(data_path, 'data');
Settings.deleteTmpOnClose = true;
Settings.automaticUpdating = true;
Settings.events = true;
Settings.minimizeToTray = false;
Settings.bigPicture = false;
// Features
Settings.activateTorrentCollection = false;
Settings.activateWatchlist = true;
Settings.activateRandomize = true;
Settings.onlineSearchEngine = 'KAT';
// Ratio
Settings.totalDownloaded = 0;
Settings.totalUploaded = 0;
Settings.updateEndpoint = {
url: 'https://butterproject.org/',
index: 0,
proxies: [{
url: 'https://butterproject.org/',
fingerprint: '',
}, {
url: 'https://butterproject.github.io/',
fingerprint: ''
}]
};
// App Settings
Settings.version = false;
Settings.dbversion = '0.1.0';
Settings.font = 'tahoma';
//Settings.defaultWidth = Math.round(window.screen.availWidth * 0.8);
//Settings.defaultHeight = Math.round(window.screen.availHeight * 0.8);
// Miscellaneous
Settings.playerSubPosition = '0px';
Settings.playerVolume = '1';
Settings.tv_detail_jump_to = 'next';
module.exports = Settings