the issue its that when downloaded via usenet the custom format is not included in the filename sonarr creates in the first place.
you can see from the screenshots that the filename (that gets deleted) ends in webdl-ntb for all the usenet downloads but ends in webdl.strm-ntb for the torrent - even though you can also see the custom format “strm” was found on each of the usenet downloads it doesnt end up in the final filename.
regarding the custom format, its included below. the final entry for “strm” (the custom formats name) is included so that it will score the on disk filename the same way as it would the original values that are not available there.
{
"name": "strm",
"includeCustomFormatWhenRenaming": true,
"specifications": [
{
"name": "Amazon",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(amzn|amazon)\\b"
}
},
{
"name": "Apple",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(atvp|aptv|Apple TV\\+)\\b"
}
},
{
"name": "HBO",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(hbo|hmax|hbom|hbo[ ._-]max)\\b"
}
},
{
"name": "Disney",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(dsnp|dsny|disney|Disney\\+)\\b"
}
},
{
"name": "Hulu",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(hulu)\\b"
}
},
{
"name": "Netflix",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(nf|netflix)\\b"
}
},
{
"name": "Paramount",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(pmtp|Paramount\\\\+)\\b"
}
},
{
"name": "Peacock",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(pcok|Peacock TV)\\b"
}
},
{
"name": "ShowTime",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(sho|showtime)\\b"
}
},
{
"name": "Stan",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(stan)\\b"
}
},
{
"name": "custom format name",
"implementation": "ReleaseTitleSpecification",
"negate": false,
"required": false,
"fields": {
"value": "\\b(strm)\\b"
}
}
]
}
standard episode format being used is {series.cleantitle}.s{season:00}e{episode:00}{.mediainfo.videocodec}{.quality.title}{.custom formats}{-release group}
small chunk of logs to show the naming issue when downloaded via usenet
3rd line shows it seeing the strm format as an upgrade
last lines showing the resulting filename does not contain the strm custom format in it
2024-03-20 19:40:53.2|Debug|VideoFileInfoReader|Getting media info from /media/downloads/sabnzbd/ready/sonarr/Palm_Royale_S01E01_Pilot_720p_ATVP_WEB-DL_DDP5_1_H_264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb.mkv
2024-03-20 19:40:53.3|Debug|DetectSample|[/media/downloads/sabnzbd/ready/sonarr/Palm_Royale_S01E01_Pilot_720p_ATVP_WEB-DL_DDP5_1_H_264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb.mkv] does not appear to be a sample. Runtime 00:49:56.5770000 seconds is more than minimum of 300 seconds
2024-03-20 19:40:53.3|Debug|UpgradeSpecification|New item's custom formats [strm] (2) improve on [] (0), accepting
2024-03-20 19:40:53.3|Debug|ImportDecisionMaker|File accepted
2024-03-20 19:40:53.3|Debug|UpgradeMediaFileService|Removing existing episode file: [378373] season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv
2024-03-20 19:40:53.3|Debug|RecycleBinProvider|Attempting to send '/media/tv/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv' to recycling bin
2024-03-20 19:40:53.3|Debug|RecycleBinProvider|Creating folder /media/sonarr-trash/palm royale (2024)/season 01
2024-03-20 19:40:53.3|Debug|RecycleBinProvider|Moving '/media/tv/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv' to '/media/sonarr-trash/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb_3.mkv'
2024-03-20 19:40:53.3|Debug|DiskTransferService|Move [/media/tv/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv] > [/media/sonarr-trash/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb_3.mkv]
2024-03-20 19:40:53.3|Debug|RecycleBinProvider|File has been moved to the recycling bin: /media/sonarr-trash/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb_3.mkv
2024-03-20 19:40:53.3|Debug|EpisodeService|Detaching episode 94656 from file.
2024-03-20 19:40:53.6|Debug|SubtitleFileService|Deleting Extra from database for episode file: [378373] season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv
2024-03-20 19:40:53.6|Debug|OtherExtraFileService|Deleting Extra from database for episode file: [378373] season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv
2024-03-20 19:40:53.6|Debug|MetadataFileService|Deleting Extra from database for episode file: [378373] season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv
2024-03-20 19:40:53.6|Debug|EpisodeFileMovingService|Moving episode file: /media/downloads/sabnzbd/ready/sonarr/Palm_Royale_S01E01_Pilot_720p_ATVP_WEB-DL_DDP5_1_H_264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb.mkv to /media/tv/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv
2024-03-20 19:40:53.6|Debug|DiskTransferService|Move [/media/downloads/sabnzbd/ready/sonarr/Palm_Royale_S01E01_Pilot_720p_ATVP_WEB-DL_DDP5_1_H_264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb/Palm.Royale.S01E01.Pilot.720p.ATVP.WEB-DL.DDP5.1.H.264-NTb.mkv] > [/media/tv/palm royale (2024)/season 01/palm.royale.s01e01.h264.720p.webdl-ntb.mkv]