New script, explain documentation. also renamed a couple files.
This commit is contained in:
parent
5793523215
commit
337fd19dc7
30
README.md
30
README.md
@ -18,29 +18,29 @@ Resulting filename and sidecar JSON:
|
|||||||
|
|
||||||
## How it works / Usage
|
## How it works / Usage
|
||||||
1. Put all the scripts in the directory with your video files (scripts currently do not recurse into subdirectories).
|
1. Put all the scripts in the directory with your video files (scripts currently do not recurse into subdirectories).
|
||||||
2. Run them in order from the directory containing your media:
|
2. Edit 'Example.info.json'
|
||||||
|
Update these lines
|
||||||
```sh
|
- "channel_id": "Change To Channel ID/username",
|
||||||
bash convert-()-to-[].bash
|
- "uploader": "Youtube Username",
|
||||||
bash move-[id]-to-end.bash
|
- "uploader_id": "Change To Channel ID",
|
||||||
bash create-json-alongside.bash
|
- "uploader_url": "https://www.youtube.com/channel/ChangeToChannelID-or-username",
|
||||||
bash insert-id-into-json.bash
|
3. Run the scripts in order from the directory containing your media below:
|
||||||
bash insert-title-into-json.bash
|
|
||||||
bash insert-date-into-json.bash
|
|
||||||
```
|
|
||||||
|
|
||||||
Each script performs a single transformation so you can inspect results between steps.
|
Each script performs a single transformation so you can inspect results between steps.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Scripts (order and purpose)
|
## Scripts (order and purpose)
|
||||||
1. `convert-()-to-[].bash`
|
1a. `convert-()-to-[].bash`
|
||||||
- Replace parentheses containing an ID with square brackets (e.g. `(ID)` -> `[ID]`) and clean spacing.
|
- Replace parentheses containing an ID with square brackets (e.g. `(ID)` -> `[ID]`) and clean spacing.
|
||||||
|
- If already have id at end skip to 3.
|
||||||
|
|
||||||
2. `move-[id]-to-end.bash`
|
1b. `move-find-id-to-end-filename.bash`
|
||||||
|
- Split filename into parts. Find id between second and third " - " without brackets, adds backets, moves [id] to end of filename before extension.
|
||||||
|
- Skip 1a/2a, straight to 3.
|
||||||
|
|
||||||
|
2a. `move-[id]-to-end-filename.bash`
|
||||||
- Ensure the video ID appears at the end of the filename inside square brackets.
|
- Ensure the video ID appears at the end of the filename inside square brackets.
|
||||||
|
|
||||||
3. `create-json-alongside.bash`
|
3. `create-json-alongside-each-file.bash`
|
||||||
- Create an empty `.info.json` file for each video filename (sidecar).
|
- Create an empty `.info.json` file for each video filename (sidecar).
|
||||||
|
|
||||||
4. `insert-id-into-json.bash`
|
4. `insert-id-into-json.bash`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user