Good morning - newbie here, have an issue that has confused me. I have been trying to download a TV show and found that my sorting is not working as expected. This is my sort string for category "TV" - "%sn/Season %s/%sn.S%0sE%0e.%en.%r.%ext"
So if I download a file like this - St.Elsewhere.S03E24.Cheers.WEBRip.AAC2.0.H.264-NOGRP-AsRequested and I want it to look like this after processing, what the file in a Season 3 folder and be "St.Elsewhere.S03E24.Cheers.WEBRip.AAC2.0.H.264.mkv" what should my string be?
I have been trying various formats and ended up completely deleting an entire series. Sorry, if this is not very well written. Trying to learn. Any refernce material would be welcome.
HairyShark.
Proper sorting for TV episodes
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: Proper sorting for TV episodes
%sn/%0s/%sn - S%0sE%0e - %en.%ext
%sn/%0s/%fn
Note: at the bottom there is Test Data. There fill in "St.Elsewhere.S03E24.Cheers.WEBRip.AAC2.0.H.264-NOGRP-AsRequested", ... and it will tell Process Result. So no need to download
%sn/%0s/%fn
Note: at the bottom there is Test Data. There fill in "St.Elsewhere.S03E24.Cheers.WEBRip.AAC2.0.H.264-NOGRP-AsRequested", ... and it will tell Process Result. So no need to download
-
Hairyshark
- Newbie

- Posts: 5
- Joined: April 3rd, 2026, 8:13 am
Re: Proper sorting for TV episodes
Thank you Sander, will give this a try.
-
Hairyshark
- Newbie

- Posts: 5
- Joined: April 3rd, 2026, 8:13 am
Re: Proper sorting for TV episodes
Took the advice Sander provided in their response and created this string using the test data option to be sure it was what I wanted:
%sn.S%0sE%0e.%r.%GI<video_codec>-%GI<release_group>.%ext
So it took this file: Scrubs.2026.S01E07.720p.HEVC.x265-MeGusta and produced this result: Scrubs.S01E07.720P.H.265-MeGusta.mkv
Perfect for the way i name my files. Saved and ran it and sabnzbd completely deleted my download folder again - all the shows I had there gone. This is the second time in 2 weeks.
WTF is going on with this software? Is it my string?
So confused.
%sn.S%0sE%0e.%r.%GI<video_codec>-%GI<release_group>.%ext
So it took this file: Scrubs.2026.S01E07.720p.HEVC.x265-MeGusta and produced this result: Scrubs.S01E07.720P.H.265-MeGusta.mkv
Perfect for the way i name my files. Saved and ran it and sabnzbd completely deleted my download folder again - all the shows I had there gone. This is the second time in 2 weeks.
WTF is going on with this software? Is it my string?
So confused.
-
Hairyshark
- Newbie

- Posts: 5
- Joined: April 3rd, 2026, 8:13 am
Re: Proper sorting for TV episodes
So to troubleshoot a bit, I recreated my download folder (again), downloaded a TV episode. The series folder was created, the season folder was created, and the file was formatted correctly. Next I downloaded a different TV episode from a different show and SAB deleted the first show folders and did not create any folders or file for the second show. With TV sorting off, all downloads are good. I just need to do a manual format, but at least I do not lose any other files or folders. This seems like a major bug to me. Just not sure if I have done something to cause this.
Any ideas???
Any ideas???
Re: Proper sorting for TV episodes
Can you enable Debug logging in the Status window?
At least we will have logs if it happens again. You can sent them to me at safihre@sabnzbd.org if it happens again.
Seems you maybe also have something configured for Cleanup list? In Config Switches?
At least we will have logs if it happens again. You can sent them to me at safihre@sabnzbd.org if it happens again.
Seems you maybe also have something configured for Cleanup list? In Config Switches?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
-
Hairyshark
- Newbie

- Posts: 5
- Joined: April 3rd, 2026, 8:13 am
Re: Proper sorting for TV episodes
GM, thank you Safihre, will do for the logs and will check the clean-up list. I will say that I have not touched the switches config in years. I have typically just used SAB in the default settings except server and folder configs and never lost a single file. It's been very consistent. I got tired of having to manually rename files, so started experimenting with sorting and that is when all the deletions started happening, so disabled sorting again. FYI - I have no entries, no config, for the cleanup list.
