Comments (1)
Or another example I encountered:
nomino -pe "Season .*/.*S(\d+)E(\d+) \- (\w+.*) \(.*" "Season {:2}/Episode {:2} - {}"
[error] unable to rename 'Season 2/Avatar The Last Airbender (2005) - S02E05 - Avatar Day (1080p WEB-DL x265 RCVR).mkv': No such file or directory (os error 2)
[error] unable to rename 'Season 2/Avatar The Last Airbender (2005) - S02E10 - The Library (1080p WEB-DL x265 RCVR).mkv': No such file or directory (os error 2)
[error] unable to rename 'Season 2/Avatar The Last Airbender (2005) - S02E17 - Lake Laogai (1080p WEB-DL x265 RCVR).mkv': No such file or directory (os error 2)
…
$ ls
'Season 1' 'Season 2' 'Season 3'
$ ls Season\ 1/
'Avatar The Last Airbender (2005) - S01E01 - The Boy in the Iceberg (1080p WEB-DL x265 RCVR).mkv'
'Avatar The Last Airbender (2005) - S01E02 - The Avatar Returns (1080p WEB-DL x265 RCVR).mkv'
'Avatar The Last Airbender (2005) - S01E03 - The Southern Air Temple (1080p WEB-DL x265 RCVR).mkv'
'Avatar The Last Airbender (2005) - S01E04 - The Warriors of Kyoshi (1080p WEB-DL x265 RCVR).mkv'
Still, it seems to work when I test it.
nomino -pet "Season .*/.*S(\d+)E(\d+) \- (\w+.*) \(.*" "Season {:2}/Episode {:2} - {}"
| Season 1/Avatar The Last Airbender (2005) - S01E01 - The Boy in the Iceberg (1080p WEB-DL x265 RCVR).mkv | Season 01/Episode 01 - The Boy in the Iceberg.mkv |
| Season 1/Avatar The Last Airbender (2005) - S01E02 - The Avatar Returns (1080p WEB-DL x265 RCVR).mkv | Season 01/Episode 02 - The Avatar Returns.mkv |
| Season 1/Avatar The Last Airbender (2005) - S01E03 - The Southern Air Temple (1080p WEB-DL x265 RCVR).mkv | Season 01/Episode 03 - The Southern Air Temple.mkv |
| Season 1/Avatar The Last Airbender (2005) - S01E04 - The Warriors of Kyoshi (1080p WEB-DL x265 RCVR).mkv | Season 01/Episode 04 - The Warriors of Kyoshi.mkv |
In this case I know I should add the -k
parameter. We could add an error message like: Please add -k
parameter. Adding the -k
parameter in the first example does not work.
from nomino.
Related Issues (16)
- Consider cross-platform support\builds HOT 1
- Add support for creating links/symlinks insted of renaming
- Add a flag to select the printed format
- Add support of files lists HOT 1
- AUR packaging dependency HOT 1
- \d not works on Windows HOT 1
- Is it possible to replace? HOT 1
- Unwelcomed `_` when zero-padding filenames HOT 2
- Replace all substrings
- Add support for subdirectories HOT 4
- Check in Cargo.lock HOT 3
- More nests and recursion HOT 1
- Failing to pass validity check on Arch Linux HOT 4
- Missing error messages HOT 1
- Allow manually specifying search depth HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nomino.