https://github.com/moralcode/filenamestocsv
it parses filenames into CSV files i guess
https://github.com/moralcode/filenamestocsv
Last synced: 10 months ago
JSON representation
it parses filenames into CSV files i guess
- Host: GitHub
- URL: https://github.com/moralcode/filenamestocsv
- Owner: MoralCode
- License: mit
- Created: 2020-04-20T23:05:52.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-01-17T03:04:13.000Z (about 5 years ago)
- Last Synced: 2025-02-13T08:19:40.131Z (12 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# it parses filenames into CSV files i guess
just a little quick script i wrote to quickly get an entire directory tree of movies (folders and files) into CSV format to catalog them.
uses argparse so should be somewhat documented already, other than that i put basically no effort into documenting it.
I probably wont be maintaining this
## Usage
`python3 filter.py "/path/to/media" "[format string]" [csv] [column] [names]`
### example:
`python3 filter.py "/path/to/media" "{name} ({year}){ext}" name year`
### Notes
- the variable length list of column names at the end must match variables defined in your format string
- the format string must match the whole filename, which is why the example has `{ext}`. you dont need to use all the variables you create. anything that doesnt match will not be included
-this will parse every file in every subdirectory (except ones starting with `.`) that it can find from the directory you give it.