-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External srt files being deleted #947
Comments
This is probably sonarr that's deleting things as the script doesn't have any logic for deleting srt files except when embedsubs is enabled, all the code for that is housed under the embedsubs logic which should be disabled based on your settings. There's no clean-up logic that just wipes the rest of the folder included. Is the .srt file being ripped from the mkv by the script or is it just included in the source material? Additionally does your created mp4 file have a subtitle track? Maybe for some reason its being embedded when it shouldn't. |
The srt is not being ripped from the mkv it is a external srt file being imported with the mkv on sonarr manual import. After sonarr renames the video file plus the subtitle file to its new correct name the .partial file shows up, The final mp4 file does not have any embedded subtitle tracks. I didnt want to post the shows name since i dont know the rules here but il just post it since i dont want to edit all this log info if show names arent allowed il edit it out: 18-10-30 10:59:28.3|Debug|Api|[GET] /api/system/task?sort_by=name&order=asc: 200.OK (1 ms) If I set it to false "delete_original= False"It leaves the srt file alone and ends up with a different log : 18-10-30 11:17:33.1|Debug|Api|[GET] /api/queue?sort_by=timeleft&order=asc: 200.OK (1 ms) |
I fixed the issue, for some reason i checked my sonarr logs more and it showed parsing and stuff for shows never even added to my show list, sonarr was acting strange so i wiped it clean and started over, i then went ahead and redownloaded mp4automator and readded my old ini file and everything worked perfectly. Pretty sure you were right and sonarr was just messed up. Thanks for the help. |
Im trying to manually import via sonarr, all files are in one folder and share the same relevant file name, But every time at the end of the import the srt file is deleted.
Example:
File1: (Showname) - S09E01 Bluray-1080p.mkv
File2: (Showname) - S09E01 Bluray-1080p.eng.srt
Ive tried turning "delete_original" to a false value, and that fixed the srt files being deleted but then the issue of the original file remaining is obviously going to be there.
If i merge the srt with the mkv file and then manually import, the srt file ends up not being deleted at all and is properly in the output folder and stored externally.
I have import extra files on in sonarr:
![screenshot_1](https://user-images.githubusercontent.com/25883052/47710765-d0695c80-dbf0-11e8-9759-b4a8477b566f.png)
I am getting this error in sonarr:
ExistingExtraFileService failed while processing [SeriesScannedEvent]: File doesn't exist: /home/jacob/Desktop/HTPC/Media_Files/Plex/Tv Shows/(show)/Season 9/.nfs000000000000057d00000007
System.IO.FileNotFoundException: File doesn't exist: /home/jacob/Desktop/HTPC/Media_Files/Plex/Tv Shows/(show)/Season 9/.nfs000000000000057d00000007
at NzbDrone.Common.Disk.DiskProviderBase.GetFileSize (System.String path) [0x00066] in <2579263bcdeb4ef4b450343ebeda374e>:0
at NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.AugmentingService.Augment (NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean otherFiles) [0x00056] in <85e2f5295c104ca3a3bcaa59e805585a>:0
at NzbDrone.Core.Extras.Others.ExistingOtherExtraImporter.ProcessFiles (NzbDrone.Core.Tv.Series series, System.Collections.Generic.List
1[T] filesOnDisk, System.Collections.Generic.List
1[T] importedFiles) [0x00087] in <85e2f5295c104ca3a3bcaa59e805585a>:0at NzbDrone.Core.Extras.ExistingExtraFileService.Handle (NzbDrone.Core.MediaFiles.Events.SeriesScannedEvent message) [0x00099] in <85e2f5295c104ca3a3bcaa59e805585a>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x00117] in <85e2f5295c104ca3a3bcaa59e805585a>:0
18-10-30 03:52:12.3|Info|DiskScanService|Scanning disk for (show)
18-10-30 03:52:12.7|Info|DiskScanService|Completed scanning disk for (show)
18-10-30 03:52:12.7|Info|ExistingMetadataImporter|Found 0 existing metadata files
18-10-30 03:52:12.7|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
18-10-30 03:52:12.7|Error|EventAggregator|ExistingExtraFileService failed while processing [SeriesScannedEvent]
[v2.0.0.5252] System.IO.FileNotFoundException: File doesn't exist: /home/jacob/Desktop/HTPC/Media_Files/Plex/Tv Shows/(show)/Season 9/.nfs000000000000057d00000007
at NzbDrone.Common.Disk.DiskProviderBase.GetFileSize (System.String path) [0x00066] in <2579263bcdeb4ef4b450343ebeda374e>:0
at NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.AugmentingService.Augment (NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean otherFiles) [0x00056] in <85e2f5295c104ca3a3bcaa59e805585a>:0
at NzbDrone.Core.Extras.Others.ExistingOtherExtraImporter.ProcessFiles (NzbDrone.Core.Tv.Series series, System.Collections.Generic.List
1[T] filesOnDisk, System.Collections.Generic.List
1[T] importedFiles) [0x00087] in <85e2f5295c104ca3a3bcaa59e805585a>:0at NzbDrone.Core.Extras.ExistingExtraFileService.Handle (NzbDrone.Core.MediaFiles.Events.SeriesScannedEvent message) [0x00099] in <85e2f5295c104ca3a3bcaa59e805585a>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x00117] in <85e2f5295c104ca3a3bcaa59e805585a>:0
18-10-30 03:54:19.5|Info|RssSyncService|Starting RSS Sync
18-10-30 03:54:20.9|Info|DownloadDecisionMaker|Processing 771 releases
18-10-30 03:54:22.4|Info|RssSyncService|RSS Sync Completed. Reports found: 771, Reports grabbed: 0
and here is my autoProcess.ini:
[MP4]
ffmpeg = /usr/bin/ffmpeg
ffprobe = /usr/bin/ffprobe
threads = 16
output_directory =
copy_to =
move_to =
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264
video-bitrate =
video-crf = 17
video-max-width =
video-profile =
h264-max-level = 4.1
use-qsv-decoder-with-encoder = True
use-hevc-qsv-decoder = False
enable_dxva2_gpu_decode = False
ios-audio = False
ios-first-track-only = False
ios-audio-filter =
ios-move-last = True
max-audio-channels =
audio-codec = ac3,aac
audio-language = eng,jpn
audio-default-language = eng
audio-channel-bitrate = 256
audio-filter =
audio-copy-original = False
subtitle-codec = srt
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding =
fullpathguess = True
convert-mp4 = True
tagfile = False
tag-language = en
download-artwork = Poster
download-subs = False
embed-subs = False
embed-only-internal-subs = False
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0777
post-process = False
pix-fmt =
aac_adtstoasc = False
postopts =
preopts =
audio-first-track-of-language = False
The text was updated successfully, but these errors were encountered: