Kodi Community Forum
Batch adding tags to nfo files - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Batch adding tags to nfo files (/showthread.php?tid=370620)



Batch adding tags to nfo files - Chalklands - 2022-11-30

Hi, not sure if this is the correct place to post this? Please move if not.
I have a bunch of music concerts on my NAS with nfo files. I want to add a

<tag>Music Concert</tag>

tag to all of them
Is there a quick way to do this in Windows 11? 

Thanks


RE: Batch adding tags to nfo files - Karellen - 2022-11-30

You could use Notepad++ to "Find and Replace in Files"


RE: Batch adding tags to nfo files - Chalklands - 2022-11-30

(2022-11-30, 20:22)Karellen Wrote: You could use Notepad++ to "Find and Replace in Files"
@Karellen 
Ah OK, I've just tried that in a test file, but can't work out how to put a 'return' into the Notepad++ dialogue box.
For example I want to replace
</runtime>
with:
</runtime>
<tag>Music Concert</tag>

But I seem only be able to add:
</runtime><tag>Music Concert</tag>
- on the same line in Notepad++. can't get it to add a 'return'

Does that make a difference to the nfo file, or doesn't it matter?
I


RE: Batch adding tags to nfo files - Karellen - 2022-11-30

(2022-11-30, 21:01)Chalklands Wrote: but can't work out how to put a 'return' into the Notepad++ dialogue box.
Set Regular Expression search mode, then add \n followed by 4 spaces.

Image


RE: Batch adding tags to nfo files - Chalklands - 2022-11-30

(2022-11-30, 21:09)Karellen Wrote:
(2022-11-30, 21:01)Chalklands Wrote: but can't work out how to put a 'return' into the Notepad++ dialogue box.
Set Regular Expression search mode, then add \n followed by 4 spaces.

Image
Ah, I see. Thank you very much for your help!