When I try your script in Picards editor for file naming scripts, the disc number is shown in the examples at the bottom of the window. The only thing missing is an ( in front of $num(%discnumber%,2)). What does it say in your case?
Is it possible that you’re just using the existing metadata in your files and the %discnumber% value is missing? If so, try replacing %discnumber% in your script with $if2(%discnumber%,1) and see if that does what you want. I’ll try translating this to Spanish with DeepL.
¿Es posible que esté utilizando los metadatos existentes en sus archivos y que falte el valor de %discnumber%? Si es así, intenta reemplazar %discnumber% en tu script con $if2(%discnumber%,1) y mira si eso hace lo que quieres. Intentaré traducir esto al español con DeepL.
Do you mean that the disc number doesn’t appear in your file name, or doesn’t appear in the file’s metadata? If it doesn’t show up in the metadata then I’m guessing that you have this in your file renaming script and not in a tagging script. If it is in a tagging script, then I’m guessing that you’re not matching your files to releases retrieved from MusicBrainz before saving them but are saving directly from the clustering pane. That would cause the tagging script not to be run. If that’s the case, you need to force the script to run by right-clicking on the cluster, go to “Run scripts” and then select the appropriate tagging script.
If the disc numbers show in the metadata, but your files are not being renamed then check that you have the “Rename files when saving” option checked in the “File Naming” section of the “Options…”
Before entering the forum, I checked those things, still, I will check what you say again, but I have another problem with the software. After several sessions, it stops saving the file metadata, a red icon appears next to the files. I have to uninstall the program and reinstall it. I don’t know what could be happening