standard fix
This commit is contained in:
@@ -54,7 +54,7 @@ module.exports = class SubtitlesController {
|
||||
if (autoSelect && (i === 0 || isSystemLanguage(track.language))) {
|
||||
subtitles.selectedIndex = trackIndex
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
// Finally, make sure no two tracks have the same label
|
||||
relabelSubtitles(subtitles)
|
||||
|
||||
@@ -19,10 +19,10 @@ const config = require('../../config')
|
||||
const { CastingError } = require('./errors')
|
||||
|
||||
// Lazy load these for a ~300ms improvement in startup time
|
||||
let airplayer;
|
||||
let airplayer
|
||||
|
||||
let chromecasts;
|
||||
let dlnacasts;
|
||||
let chromecasts
|
||||
let dlnacasts
|
||||
|
||||
// App state. Cast modifies state.playing and state.errors in response to events
|
||||
let state
|
||||
|
||||
@@ -61,9 +61,9 @@ function migrate_0_7_0 (saved) {
|
||||
// * Then, relative paths for the default torrents, eg '../static/sintel.torrent'
|
||||
// * Then, paths computed at runtime for default torrents, eg 'sintel.torrent'
|
||||
// * Finally, now we're getting rid of torrentPath altogether
|
||||
let src;
|
||||
let src
|
||||
|
||||
let dst;
|
||||
let dst
|
||||
if (ts.torrentPath) {
|
||||
if (path.isAbsolute(ts.torrentPath) || ts.torrentPath.startsWith('..')) {
|
||||
src = ts.torrentPath
|
||||
|
||||
@@ -46,7 +46,7 @@ function calculateDataLengthByExtension (torrent, extensions) {
|
||||
if (files.length === 0) return 0
|
||||
return files
|
||||
.map(file => file.length)
|
||||
.reduce((a, b) => a + b);
|
||||
.reduce((a, b) => a + b)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,7 +58,7 @@ function calculateDataLengthByExtension (torrent, extensions) {
|
||||
function getLargestFileByExtension (torrent, extensions) {
|
||||
const files = filterOnExtension(torrent, extensions)
|
||||
if (files.length === 0) return undefined
|
||||
return files.reduce((a, b) => a.length > b.length ? a : b);
|
||||
return files.reduce((a, b) => a.length > b.length ? a : b)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,9 +40,9 @@ class CreateTorrentPage extends React.Component {
|
||||
|
||||
// Then, use the name of the base folder (or sole file, for a single file torrent)
|
||||
// as the default name. Show all files relative to the base folder.
|
||||
let defaultName;
|
||||
let defaultName
|
||||
|
||||
let basePath;
|
||||
let basePath
|
||||
if (files.length === 1) {
|
||||
// Single file torrent: /a/b/foo.jpg -> torrent name 'foo.jpg', path '/a/b'
|
||||
defaultName = files[0].name
|
||||
|
||||
Reference in New Issue
Block a user