Advertisement
jpp1972

Script using rxrepl

Oct 26th, 2022
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. @Echo off
  2. REM *******************************
  3. REM Replace 3 actor thumb locations
  4. REM *******************************
  5. setlocal ENABLEDELAYEDEXPANSION
  6. for %%a in (*.nfo) do (
  7. Echo Replacing Actor Thumb Path...
  8. 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>"
  9. 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>"
  10. 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"
  11. Echo Done.
  12. )
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement