Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo off
- REM *******************************
- REM Replace 3 actor thumb locations
- REM *******************************
- setlocal ENABLEDELAYEDEXPANSION
- for %%a in (*.nfo) do (
- Echo Replacing Actor Thumb Path...
- rxrepl -f "%%~na.nfo" -a -s "<\/actor>\r\n\s{2}<actor>\r\n\s{4}<name>([a-zA-Z]{1})([a-zA-Z]*)\s([a-zA-Z]*)<\/name>\r\n\s{4}<order>2<\/order>\r\n\s{4}<thumb>(http.*)<\/thumb>\r\n <\/actor>\r\n\s{2}<fileinfo>" -r "</actor>\r\n <actor>\r\n <name>\1\2 \3</name>\r\n <order>2</order>\r\n <thumb>D:\\Video\\Adult\\.actors\\\1\\\1\2_\3.jpg</thumb>\r\n </actor>\r\n <fileinfo>"
- rxrepl -f "%%~na.nfo" -a -s "<\/actor>\r\n\s{2}<actor>\r\n\s{4}<name>([a-zA-Z]{1})([a-zA-Z]*)\s([a-zA-Z]*)<\/name>\r\n\s{4}<order>1<\/order>\r\n\s{4}<thumb>(http.*)<\/thumb>\r\n <\/actor>\r\n <actor>" -r "</actor>\r\n <actor>\r\n <name>\1\2 \3</name>\r\n <order>1</order>\r\n <thumb>D:\\Video\\Adult\\.actors\\\1\\\1\2_\3.jpg</thumb>\r\n </actor>\r\n <actor>"
- rem rxrepl -f "%%~na.nfo" -a -s "<\/datemodified>\r\n\s{2}<actor>\r\n\s{4}<name>([a-zA-Z]{1})([a-zA-Z]*)\s([a-zA-Z]*)<\/name>\r\n\s{4}<order>0<\/order>\r\n\s{4}<thumb>(http.*)<\/thumb>\r\n <\/actor>\r\n" -r "</datemodified>\r\n <actor>\r\n <name>\1\2 \3</name>\r\n <order>0</order>\r\n <thumb>D:\\Video\\Adult\\.actors\\\1\\\1\2_\3.jpg</thumb>\r\n </actor>\r\n"
- Echo Done.
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement