Closed bassings closed 3 years ago
The logs don't show anything wrong during Post-Processing. Is this just an issue when renaming?
it occurs both during post processing and renaming, It was just easier to capture the logs during renaming. If you need me to do a post processing capture as well I can. I suspect though it's the same issue so if you fix one, it will probably fix both issues.
Yes, please post the relevant debug logs.
2020-12-20 21:51:46 INFO Thread-1 :: [d45caa6] Post-processing completed.
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] Deleted folder: /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:46 INFO Thread-1 :: [d45caa6] Deleting folder (if it's empty): /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:46 INFO Thread-1 :: [d45caa6] Processing succeeded for /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] User-Agent: Medusa/0.5.1 (Linux; 4.18.0-240.1.1.el8_3.x86_64; 7a9b6d92-428d-11eb-8a93-000c2906988b)
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] GET URL: https://localhost:32400/library/sections/2/refresh [Status: 200]
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] PLEX: Updating hosts where TV section paths match the downloaded show: 2
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] User-Agent: Medusa/0.5.1 (Linux; 4.18.0-240.1.1.el8_3.x86_64; 7a9b6d92-428d-11eb-8a93-000c2906988b)
2020-12-20 21:51:46 DEBUG Thread-1 :: [d45caa6] GET URL: https://localhost:32400/library/sections [Status: 200]
2020-12-20 21:51:46 INFO Thread-1 :: [d45caa6] Pushover notification successful.
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] PUSHOVER: Sending notice with details: title="Download Finished" message="8 Out of 10 Cats - 21x08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell - 1080p WEB-DL", priority=0, sound=pushover
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Sending notification for 8 Out of 10 Cats - 21x08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell - 1080p WEB-DL
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] 79556: Formatting pattern: %SN - %Sx08 - %EN - %QN -> 8 Out of 10 Cats - 21x08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell - 1080p WEB-DL
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Found codec for 8 Out of 10 Cats Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Using cached parse result for 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Parsed /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell into title: 8 Out of 10 Cats, season: 21, episode: [8], episode_title: Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell, type: episode, parsing_time: 0.02093338966369629, absolute_episode: [], quality: Unknown, total_time: 0.021063566207885742
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Matched release /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell to a series in your database: 8 Out of 10 Cats
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] 79556: Formatting pattern: %SN - %Sx08 - %EN - %QN -> 8 Out of 10 Cats - 21x08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell - 1080p WEB-DL
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Found codec for 8 Out of 10 Cats Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Using cached parse result for 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Parsed /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell into title: 8 Out of 10 Cats, season: 21, episode: [8], episode_title: Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell, type: episode, parsing_time: 0.021137714385986328, absolute_episode: [], quality: Unknown, total_time: 0.02127528190612793
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Matched release /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell to a series in your database: 8 Out of 10 Cats
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Notification for NMJ scan update not enabled, skipping this notification
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Transaction with 1 queries executed
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] 79556: Setter sets location to /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell.mkv
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Transaction with 1 queries executed
2020-12-20 21:51:45 DEBUG Thread-1 :: [d45caa6] Setting permissions for /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell.mkv to 438 as parent directory has 511
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Moving file from /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv to /var/media/TV/8 Out of 10 Cats/8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] No associated files were found for /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Checking if the path /var/media/TV/8 Out of 10 Cats already exists
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Destination folder for this episode: /var/media/TV/8 Out of 10 Cats
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] 79556: Formatting pattern: %SN - S%0SE08 - %EN -> 8 Out of 10 Cats - S21E08 - Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Found codec for 8 Out of 10 Cats Josh Widdicombe, Joe Swash, Harriet Kemsley, Dotty, Suzi Ruffell
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Using cached parse result for 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Parsed /var/media/TV/8 Out of 10 Cats/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb into title: 8 Out of 10 Cats, season: 22, episode: [8], screen_size: 1080p, source: Web, audio_codec: AAC, audio_channels: 2.0, video_codec: H.264, video_encoder: x264, release_group: NTb, type: episode, parsing_time: 0.03658604621887207, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.0366208553314209
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Matched release /var/media/TV/8 Out of 10 Cats/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb to a series in your database: 8 Out of 10 Cats
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Folder name (8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb) appears to be a valid release name. Using it.
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Using cached parse result for 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Found release name 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Not deleting /var/media/TV/8 Out of 10 Cats/.@__thumb. The folder is not empty or should be kept.
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Not deleting /var/media/TV/8 Out of 10 Cats/.@__thumb/.genSub. The folder is not empty or should be kept.
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] Trying to clean any empty folder under /var/media/TV/8 Out of 10 Cats
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Deleting file: /var/media/TV/8 Out of 10 Cats/.@__thumb/.genSub/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv.si0.srt
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Deleting file: /var/media/TV/8 Out of 10 Cats/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Found the following associated files for /var/media/TV/8 Out of 10 Cats/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv: {'/var/media/TV/8 Out of 10 Cats/.@__thumb/.genSub/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv.si0.srt'}
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Trying to determine free space on destination drive
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] This download is marked a priority download so I'm going to replace an existing file if I find one
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] New file is the same size.
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] New size: 1.46 GB
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] Old size: 1.46 GB
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] New file: /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] Old file: /var/media/TV/8 Out of 10 Cats/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] This episode is a priority download: True
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Proper: False
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] New quality: 1080p WEB-DL
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Current quality: 1080p WEB-DL
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] NZB: False
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Info hash: None
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Manually snatched: False
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Snatch in history: False
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Quality of the episode we are processing: 1080p WEB-DL
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] The episode file has a quality in it, using that: 1080p WEB-DL
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Retrieving episode object for 8 Out of 10 Cats S21E08
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Show information parsed from file name
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Using cached parse result for 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Analyzing name: 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] Processing /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Post-processing video files: ['8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv']
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Post-processing files: ['8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv']
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Processing folder: /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] No processable items found in folder: /var/cache/sab/ragetv
2020-12-20 21:51:12 INFO Thread-1 :: [d45caa6] Processing path: /var/cache/sab/ragetv
As you can see from the logs the file is parsed correctly. Are you using scene numbering?
I guess you are, that is exactly how it is ordered on thexem: http://thexem.de/xem/show/4624 Just disable scene numbering if you don't want to use the scene order.
Scene numbering is turned off and I think your are misreading the log, the file it's reading is: Processing /var/cache/sab/ragetv/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb/8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
and it's processing it as season 21 instead of season 22 2020-12-20 21:51:12 DEBUG Thread-1 :: [d45caa6] Retrieving episode object for 8 Out of 10 Cats S21E08
I'm reading the log just fine.
Just added the show, with scene numbering disabled and it works just fine as expected.
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] 79556: Setter sets location to E:\Videos\TV Shows\8 Out of 10 Cats\8.Out.of.10.Cats.S22E08.1080p.WEB-DL-NTb.mkv
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Copying file from C:\Users\Dario\Desktop\New folder\8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv to E:\Videos\TV Shows\8 Out of 10 Cats\8.Out.of.10.Cats.S22E08.1080p.WEB-DL-NTb.mkv
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] No associated files were found for C:\Users\Dario\Desktop\New folder\8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] No associated files were found for C:\Users\Dario\Desktop\New folder\8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb.mkv
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Checking if the path E:\Videos\TV Shows\8 Out of 10 Cats already exists
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Destination folder for this episode: E:\Videos\TV Shows\8 Out of 10 Cats
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] 79556: Formatting pattern: %S.N.S%0SE08.%Q.N-%RG -> 8.Out.of.10.Cats.S22E08.1080p.WEB-DL-NTb
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Found codec for 8 Out of 10 Cats Ed Gamble, Donna Preston, Verona Rose, Sara Barron & Ranj Singh
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Parsed 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb into title: 8 Out of 10 Cats, season: 22, episode: [8], screen_size: 1080p, source: Web, audio_codec: AAC, audio_channels: 2.0, video_codec: H.264, video_encoder: x264, release_group: NTb, type: episode, parsing_time: 0.03500032424926758, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.03500032424926758
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Matched release 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb to a series in your database: 8 Out of 10 Cats
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Folder name (New folder) appears to be a valid release name. Using it.
2020-12-20 14:40:00 DEBUG Thread-2 :: [0ebdd84] Found release name 8.Out.of.10.Cats.S22E08.1080p.ALL4.WEB-DL.AAC2.0.x264-NTb
Probably you had scene numbering enabled and the parsing was cached, just restart and it will work.
Btw, do you want to take over maintenance of Medusa, since you seem to know so much about how it works?
Describe the bug One of my series (8 out of 10 cats) is taking files from series 22 with the naming convention S22Exx and detecting them as Series 21, post processing rename tries to rename them to Series 21.
To Reproduce Steps to reproduce the behavior: When a new episode arrives in the post processing folder, it runs a scan to detect the Show, Series, Episode number and quality, It's detecting the series number incorrectly.
Expected behavior A clear and concise description of what you expected to happen. Medusa should detect S22 as series 22 not series 21.
Screenshots If applicable, add screenshots to help explain your problem.
Medusa (please complete the following information):
Debug logs (at least 50 lines): General > Advanced Settings > Enable debug
Additional context Add any other context about the problem here.