reelsort 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -103,6 +103,7 @@ interface ReelSortConfig {
103
103
  ignore?: string[];
104
104
  language?: string;
105
105
  tmdbApiKey?: string;
106
+ specialsFolder?: string;
106
107
  format?: {
107
108
  movie?: string;
108
109
  episode?: string;
@@ -122,11 +123,14 @@ interface RenameRecord {
122
123
  declare const recordRename: (sessionId: string, oldPath: string, newPath: string) => void;
123
124
  declare const getLastSession: () => RenameRecord[];
124
125
  declare const deleteSession: (sessionId: string) => void;
126
+ declare const getLastImportSession: () => ImportRecord[];
127
+ declare const deleteImportSession: (sessionId: string) => void;
125
128
  interface RenameSession {
126
129
  sessionId: string;
127
130
  records: RenameRecord[];
128
131
  }
129
132
  type ImportMode = 'move' | 'hardlink' | 'copy';
133
+ type MediaType = 'movie' | 'tv' | 'ps3' | 'book';
130
134
  interface ImportRecord {
131
135
  id: number;
132
136
  sessionId: string;
@@ -134,9 +138,10 @@ interface ImportRecord {
134
138
  destinationPath: string;
135
139
  mode: ImportMode;
136
140
  tmdbId: number | null;
141
+ type: MediaType | null;
137
142
  importedAt: string;
138
143
  }
139
- declare const recordImport: (sessionId: string, sourcePath: string, destPath: string, mode: ImportMode, tmdbId?: number) => void;
144
+ declare const recordImport: (sessionId: string, sourcePath: string, destPath: string, mode: ImportMode, tmdbId?: number, type?: MediaType) => void;
140
145
  interface MediaInfoRecord {
141
146
  id: number;
142
147
  filePath: string;
@@ -156,7 +161,7 @@ declare const getHistory: (limit?: number) => RenameSession[];
156
161
 
157
162
  declare const detectEdition: (filename: string) => string | null;
158
163
 
159
- declare const DEFAULT_EPISODE_FORMAT = "{s}x{ee}";
164
+ declare const DEFAULT_EPISODE_FORMAT = "{s}x{ee} - {title}";
160
165
  declare const DEFAULT_SEASON_FORMAT = "Season {s}";
161
166
  declare const formatSeasonFolder: (format: string, season: number) => string;
162
167
  declare const formatEpisode: (season: number, episode: number, format?: string, double?: boolean, title?: string, name?: string) => string;
@@ -171,7 +176,7 @@ interface ParsedMediaName {
171
176
  season?: number;
172
177
  episode?: number;
173
178
  }
174
- declare const parseDownloadName: (name: string) => ParsedMediaName | null;
179
+ declare const parseDownloadName: (rawName: string) => ParsedMediaName | null;
175
180
 
176
181
  interface Quality {
177
182
  resolution?: string;
@@ -219,4 +224,4 @@ var videoExtensions = [
219
224
  "yuv"
220
225
  ];
221
226
 
222
- export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
227
+ export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type MediaType, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteImportSession, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastImportSession, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
package/dist/index.d.ts CHANGED
@@ -103,6 +103,7 @@ interface ReelSortConfig {
103
103
  ignore?: string[];
104
104
  language?: string;
105
105
  tmdbApiKey?: string;
106
+ specialsFolder?: string;
106
107
  format?: {
107
108
  movie?: string;
108
109
  episode?: string;
@@ -122,11 +123,14 @@ interface RenameRecord {
122
123
  declare const recordRename: (sessionId: string, oldPath: string, newPath: string) => void;
123
124
  declare const getLastSession: () => RenameRecord[];
124
125
  declare const deleteSession: (sessionId: string) => void;
126
+ declare const getLastImportSession: () => ImportRecord[];
127
+ declare const deleteImportSession: (sessionId: string) => void;
125
128
  interface RenameSession {
126
129
  sessionId: string;
127
130
  records: RenameRecord[];
128
131
  }
129
132
  type ImportMode = 'move' | 'hardlink' | 'copy';
133
+ type MediaType = 'movie' | 'tv' | 'ps3' | 'book';
130
134
  interface ImportRecord {
131
135
  id: number;
132
136
  sessionId: string;
@@ -134,9 +138,10 @@ interface ImportRecord {
134
138
  destinationPath: string;
135
139
  mode: ImportMode;
136
140
  tmdbId: number | null;
141
+ type: MediaType | null;
137
142
  importedAt: string;
138
143
  }
139
- declare const recordImport: (sessionId: string, sourcePath: string, destPath: string, mode: ImportMode, tmdbId?: number) => void;
144
+ declare const recordImport: (sessionId: string, sourcePath: string, destPath: string, mode: ImportMode, tmdbId?: number, type?: MediaType) => void;
140
145
  interface MediaInfoRecord {
141
146
  id: number;
142
147
  filePath: string;
@@ -156,7 +161,7 @@ declare const getHistory: (limit?: number) => RenameSession[];
156
161
 
157
162
  declare const detectEdition: (filename: string) => string | null;
158
163
 
159
- declare const DEFAULT_EPISODE_FORMAT = "{s}x{ee}";
164
+ declare const DEFAULT_EPISODE_FORMAT = "{s}x{ee} - {title}";
160
165
  declare const DEFAULT_SEASON_FORMAT = "Season {s}";
161
166
  declare const formatSeasonFolder: (format: string, season: number) => string;
162
167
  declare const formatEpisode: (season: number, episode: number, format?: string, double?: boolean, title?: string, name?: string) => string;
@@ -171,7 +176,7 @@ interface ParsedMediaName {
171
176
  season?: number;
172
177
  episode?: number;
173
178
  }
174
- declare const parseDownloadName: (name: string) => ParsedMediaName | null;
179
+ declare const parseDownloadName: (rawName: string) => ParsedMediaName | null;
175
180
 
176
181
  interface Quality {
177
182
  resolution?: string;
@@ -219,4 +224,4 @@ var videoExtensions = [
219
224
  "yuv"
220
225
  ];
221
226
 
222
- export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };
227
+ export { type CleanOptions, type ConfigSetOptions, type ConfigShowOptions, DEFAULT_EPISODE_FORMAT, DEFAULT_MOVIE_FORMAT, DEFAULT_SEASON_FORMAT, type DestAddOptions, type DestRemoveOptions, type DifferencesOptions, type HistoryOptions, type ImportMode, type ImportRecord, type ListOptions, type MediaInfoRecord, type MediaType, type ParsedMediaName, type ProbeOptions, type Quality, type ReelSortConfig, type RenameOptions, type RenameRecord, type RenameSession, type ResetOptions, type ScanOptions, type SourceAddOptions, type SourceRemoveOptions, type WatchOptions, clean, configSet, configShow, deleteImport, deleteImportSession, deleteSession, destAdd, destRemove, detectEdition, differences, formatEpisode, formatMovieName, formatSeasonFolder, getCleanableImports, getConfig, getHistory, getImportByDest, getLastImportSession, getLastSession, getMediaInfo, history, list, normalizeCodec, normalizeResolution, parseDownloadName, parseQuality, probe, recordImport, recordRename, rename, reset, saveConfig, scan, sourceAdd, sourceRemove, _default as titleCase, undo, upsertMediaInfo, videoExtensions, watch };