-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly adding/adjusting @type annotations, but also addresses several actual bugs. Non-exhaustive list of minor changes: * Ensure we get a string from readFileSync instead of a Buffer by passing in an explicit encoding * Fix MarkerCacheManager's #tryUpdateCache, whose db callback never actually executes because DatabaseWrapper doesn't use it. * Several fixes around modified_date's potential null value * Ensure 'final' is always a number outside of the client-facing isFinal * Fix a call to PlexQueryManager.getEpisodesFromList that passed in an array instead of a Set. Also correctly check that set's 'size' and not its 'length' * shiftMarkers didn't correctly calculate a backup section_id * Several ServerError's didn't pass in an error code * Ensure we set a version even if we fail to read package.json * Use MarkerBreakdown.deltaFromType in QueryCommands.allStats instead of ~copying its implementation. * Create typedef for BulkDelete return value * Move MarkerBreakdownMap definition to MarkerBreakdown.js * More specific DatabaseWrapper parameter typedefs * Typedefs for config.json structure * Be more explicit about string -> number conversion in several places (and remove some superfluous number -> number conversions) * Replace some "store true" dictionaries with Sets * Move LegacyMarkerBreakdown.Clear() out of ServerCommands, calling it directly from cleanupForShutdown * Remove unused PlexQueryManager.getMovie * typedefs for RawShow/SeasonData * Remove unnecessary try/catch from a couple PlexQueryManager methods * Remove starMs.toString() workaround that is no longer necessary (if it ever was) * Account for failed contentType detection in sendCompressedData * Pass MediaItemCache through to ThumbnailManager methods to avoid retrieving it multiple times unnecessarily
- Loading branch information
Showing
23 changed files
with
409 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.