Rename file and add README.md

This commit is contained in:
Jeena 2021-04-10 20:07:05 +09:00
parent 893cb4194e
commit bc81999eef
2 changed files with 13 additions and 2 deletions

11
README.md Normal file
View file

@ -0,0 +1,11 @@
rename-video
============
This is a little script which renames a list of files to date and time from their
meta data with help of ffprobe.
You need to have ffmpeg installed so that ffprobe is accessible in your path.
```
usage: rename-video PATHs [dryrun]
```

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""
rename-video-filename.py
rename-video
This script renames a movie file name to the created at date and time
from the metadata.
@ -42,7 +42,7 @@ def rename_file(path, dryrun, old_files):
old_files.append(new_path)
def usage():
print("usage: rename-video-filename.py PATHs [dryrun]")
print("usage: rename-video PATHs [dryrun]")
def main(argv):
if len(argv) < 1: