patch type
This commit is contained in:
@@ -86,6 +86,8 @@ export class TorrentEntriesService implements ITorrentEntriesService {
|
||||
contents: fileCollection.contents,
|
||||
subtitles: fileCollection.subtitles
|
||||
});
|
||||
|
||||
newTorrent.type = newTorrent.type.toLowerCase();
|
||||
|
||||
return this.repository.createTorrent(newTorrent)
|
||||
.then(() => PromiseHelpers.sequence(fileCollection.videos!.map(video => () => {
|
||||
|
||||
@@ -57,11 +57,6 @@ export class TorrentFileService implements ITorrentFileService {
|
||||
return Promise.reject(new Error('Failed to retrieve metadata'));
|
||||
}
|
||||
|
||||
if (torrent.type !== TorrentType.Anime && metadata && metadata.type && metadata.type !== torrent.type) {
|
||||
// it's actually a movie/series
|
||||
torrent.type = metadata.type;
|
||||
}
|
||||
|
||||
if (torrent.type === TorrentType.Movie && (!parsedTorrentName.seasons ||
|
||||
parsedTorrentName.season === 5 && [1, 5].includes(parsedTorrentName.episode || 0))) {
|
||||
return this.parseMovieFiles(torrent, metadata);
|
||||
|
||||
Reference in New Issue
Block a user