pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.81k stars 276 forks source link

Single files in root of download dir not being processed #7626

Closed mvn23 closed 4 years ago

mvn23 commented 4 years ago

Describe the bug When downloading single file torrents (e.g. this one) which end up in the root of the download dir, the post-processor does not process the file. The episode will remain "snatched" and the debug logs don't even mention the file in question.

To Reproduce Steps to reproduce the behavior:

  1. Add a show that contains single file torrents (e.g. Black Clover, see example above).
  2. Have it snatch a single file torrent.
  3. Wait for the download to complete and the post-processor to run.
  4. Check the debug logs and episode status.

Expected behavior The file should be processed like all others.

Screenshots N/A

Medusa (please complete the following information):

medariox commented 4 years ago

Where are the debug logs of a post-process?

mvn23 commented 4 years ago
2020-01-25 11:36:51 INFO    POSTPROCESSOR :: [942040a] /media/downloads/complete/medusa/_UNPACK_Greys.Anatomy.S14E12.Harder.Better.Faster.Stronger.1080p.AMZN.WEB-DL..DDP5.1.H.264-NTb: Being unpacked
2020-01-25 11:36:51 INFO    POSTPROCESSOR :: [942040a] /media/downloads/complete/medusa/_UNPACK_Greys.Anatomy.S14E12.Harder.Better.Faster.Stronger.1080p.AMZN.WEB-DL..DDP5.1.H.264-NTb: Being unpacked
2020-01-25 11:36:51 INFO    POSTPROCESSOR :: [942040a] I did encounter some unprocessable items: 
2020-01-25 11:36:51 INFO    POSTPROCESSOR :: [942040a] Post-processing completed.
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] No processable items found in folder: /media/downloads/complete/medusa/Greys.Anatomy.S13E14.1080p.WEB-DL.DD5.1.H264-RARBG
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Greys.Anatomy.S16E10.720p.HDTV.x264-AVS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Greys.Anatomy.S16E10.720p.HDTV.x264-AVS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG.txt', 'RARBG_DO_NOT_MIRROR.exe']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Greys.Anatomy.S16E10.720p.HDTV.x264-AVS.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['RARBG.txt', 'Greys.Anatomy.S16E10.720p.HDTV.x264-AVS.mkv', 'RARBG_DO_NOT_MIRROR.exe']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Greys.Anatomy.S16E10.720p.HDTV.x264-AVS[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Greys.Anatomy.S14E24.1080p.WEB.X264-EDHD.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Greys.Anatomy.S14E24.1080p.WEB.X264-EDHD.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Greys.Anatomy.S14E24.1080p.WEB.X264-EDHD.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['RARBG.txt', 'Greys.Anatomy.S14E24.1080p.WEB.X264-EDHD.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Greys.Anatomy.S14E24.1080p.WEB.X264-EDHD[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG.com.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb.srt', 'RARBG.com.txt', 'Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Under.the.Dome.S02E06.In.The.Dark.1080p.WEB-DL.DD5.1.h.264-NTb[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] No processable items found in folder: /media/downloads/complete/medusa/Prison.Break.S04E24.720p.HDTV.x264-BiA.[eztv].[INFO]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: How.I.Met.Your.Mother.S09E06.REPACK.720p.HDTV.x264-IMMERSE.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: How.I.Met.Your.Mother.S09E06.REPACK.720p.HDTV.x264-IMMERSE.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['Downloaded From PublicHD.SE.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['How.I.Met.Your.Mother.S09E06.REPACK.720p.HDTV.x264-IMMERSE.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['How.I.Met.Your.Mother.S09E06.REPACK.720p.HDTV.x264-IMMERSE.mkv', 'Downloaded From PublicHD.SE.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/How.I.Met.Your.Mother.S09E06.REPACK.720p.HDTV.x264-IMMERSE [PublicHD]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Psycho-Pass.S03E08.Cubism.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Psycho-Pass.S03E08.Cubism.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Psycho-Pass.S03E08.Cubism.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Psycho-Pass.S03E08.Cubism.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Psycho-Pass.S03E08.Cubism.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Psycho-Pass.S03E07.Dont.Take.Gods.Name.in.Vain.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Psycho-Pass.S03E07.Dont.Take.Gods.Name.in.Vain.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Psycho-Pass.S03E07.Dont.Take.Gods.Name.in.Vain.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Psycho-Pass.S03E07.Dont.Take.Gods.Name.in.Vain.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Psycho-Pass.S03E07.Dont.Take.Gods.Name.in.Vain.1080p.AMZN.WEB-DL.DDP2..0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] No processable items found in folder: /media/downloads/complete/medusa/Greys.Anatomy.S10E04.1080p.WEB.x264-CONVOY[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: shameless.s08e03.1080p.web.h264-convoy.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: shameless.s08e03.1080p.web.h264-convoy.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['Torrent Downloaded From www.torrenting.me.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['shameless.s08e03.1080p.web.h264-convoy.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Torrent Downloaded From www.torrenting.me.txt', 'shameless.s08e03.1080p.web.h264-convoy.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/www.Torrenting.com - Shameless.S08E03.1080p.WEB.h264-CONVOY
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['screen0001.png', 'screen0002.png', 'screen0003.png', 'screen0004.png']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: []
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['screen0001.png', 'screen0002.png', 'screen0003.png', 'screen0004.png']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/www.Torrenting.com - Shameless.S08E03.1080p.WEB.h264-CONVOY/Screens
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] No processable items found in folder: /media/downloads/complete/medusa/The.Witcher.S01E01.1080p.WEBRip.H264-XLF
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Psycho-Pass.S03E04.Political.Strife.in.the.Colosseum.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Psycho-Pass.S03E04.Political.Strife.in.the.Colosseum.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Psycho-Pass.S03E04.Political.Strife.in.the.Colosseum.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Psycho-Pass.S03E04.Political.Strife.in.the.Colosseum.1080p.AMZN.WEB-DL.DDP2.0.H.264-aKraa.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Psycho-Pass.S03E04.Political.Strife.in.the.Colosseum.1080p.AMZN.WEB-D.L.DDP2.0.H.264-aKraa.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] The directory name indicates that this release is in the process of being unpacked.
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: the.simpsons.s31e10.1080p.web.x264-tbs.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: the.simpsons.s31e10.1080p.web.x264-tbs.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG.txt', 'RARBG_DO_NOT_MIRROR.exe']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['the.simpsons.s31e10.1080p.web.x264-tbs.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['RARBG.txt', 'the.simpsons.s31e10.1080p.web.x264-tbs.mkv', 'RARBG_DO_NOT_MIRROR.exe']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/The.Simpsons.S31E10.1080p.WEB.x264-TBS[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG.mp4', 'RARBG.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG.mkv', 'RARBG.mp4', 'Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG-SDH.srt', 'RARBG.txt', 'Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG.srt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Greys.Anatomy.S13E17.1080p.WEB-DL.DD5.1.H264-RARBG
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: How.I.Met.Your.Mother.S08E15.720p.HDTV.264-DIMENSION.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: How.I.Met.Your.Mother.S08E15.720p.HDTV.264-DIMENSION.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['How.I.Met.Your.Mother.S08E15.720p.HDTV.264-DIMENSION.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['How.I.Met.Your.Mother.S08E15.720p.HDTV.264-DIMENSION.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/How.I.Met.Your.Mother.S08E15.720p.HDTV.264-DIMENSION [PublicHD]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Modern.Family.S11E12.720p.HDTV.x264-AVS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Modern.Family.S11E12.720p.HDTV.x264-AVS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['RARBG_DO_NOT_MIRROR.exe', 'RARBG.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Modern.Family.S11E12.720p.HDTV.x264-AVS.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['Modern.Family.S11E12.720p.HDTV.x264-AVS.mkv', 'RARBG_DO_NOT_MIRROR.exe', 'RARBG.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Modern.Family.S11E12.720p.HDTV.x264-AVS[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Skipping already processed file: Vikings.S06E08.720p.HDTV.x264-KILLERS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] You're trying to post-process an automatically searched file that has already been processed, skipping: Vikings.S06E08.720p.HDTV.x264-KILLERS.mkv
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Found unwanted files: ['tvmaze.nfo', 'RARBG_DO_NOT_MIRROR.exe', 'RARBG.txt']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing video files: ['Vikings.S06E08.720p.HDTV.x264-KILLERS.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Post-processing files: ['tvmaze.nfo', 'RARBG_DO_NOT_MIRROR.exe', 'RARBG.txt', 'Vikings.S06E08.720p.HDTV.x264-KILLERS.mkv']
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing folder: /media/downloads/complete/medusa/Vikings.S06E08.720p.HDTV.x264-KILLERS[rarbg]
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] The directory name indicates that this release is in the process of being unpacked.
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Processing path: /media/downloads/complete/medusa
2020-01-25 11:36:51 DEBUG   POSTPROCESSOR :: [942040a] Starting new thread: POSTPROCESSOR
$ ls -l /media/downloads/complete/medusa/*.mp4
-rw-rw-r-- 1 torrent media 447220046 Jan 24 00:38 '/media/downloads/complete/medusa/[Anime Land] Black Clover 117 (WEBRip 720p Hi444PP AAC) RAW [5748554D].mp4'
-rw-rw-r-- 1 torrent media 472892674 Jan 24 00:40 '/media/downloads/complete/medusa/[Anime Land] Black Clover 118 (WEBRip 720p Hi444PP AAC) RAW [34E027E1].mp4'
medariox commented 4 years ago

The folder is being skipped because there is one file that is being unpacked (_UNPACK_). That's why it's not safe to post-process the folder contents until that file has been unpacked.

mvn23 commented 4 years ago

That fixed it, thanks!