Skip to content

Commit 6864fc3

Browse files
committed
Rename local episodes directory
1 parent 47d2ddb commit 6864fc3

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ node_modules
44
public
55
resources
66
.DS_Store
7-
podcasts
7+
episodes

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ npm install
3535
The `update-episodes-metadata` script automatically processes podcast episodes and updates their metadata. It:
3636

3737
- Reads episode markdown files from `content/episodes/`
38-
- Finds corresponding audio files in the `podcasts/` directory
38+
- Finds corresponding audio files in the local `episodes/` directory
3939
- Extracts audio duration, file size, and generates MD5 hash
4040
- Updates episode frontmatter with this metadata
4141
- Embeds podcast metadata (title, artist, album, etc.) into audio files using ID3 tags
4242
- Uses album art from `static/album-art.jpg`
4343

44-
**Note:** The `podcasts/` directory containing audio files is not committed to this repository.
44+
**Note:** The local `episodes/` directory containing audio files is not committed to this repository.
4545

4646
To run the script:
4747

@@ -53,14 +53,14 @@ npm run update-episodes-metadata
5353

5454
The `sync-episodes` script uploads podcast audio files to a specified S3 bucket. It:
5555

56-
- Reads MP3 files from the `podcasts/` directory
56+
- Reads MP3 files from the local `episodes/` directory
5757
- Compares local file hashes with S3 ETags to detect changes
5858
- Uploads only new or modified files to the specified S3 bucket
5959
- Provides dry-run mode to preview uploads without making changes
6060
- Sets correct `audio/mpeg` content type for podcast files
6161
- Includes verbose logging for detailed upload information
6262

63-
**Note:** The `podcasts/` directory containing audio files is not committed to this repository.
63+
**Note:** The local `episodes/` directory containing audio files is not committed to this repository.
6464

6565
**Prerequisites:** AWS credentials must be configured via environment variables, AWS CLI, or IAM role.
6666

scripts/sync-episodes-to-s3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { stat, readdir } = require('fs/promises');
1010
const path = require('path');
1111
const crypto = require('crypto');
1212

13-
const EPISODE_DIR = path.join(__dirname, '..', 'podcasts');
13+
const EPISODE_DIR = path.join(__dirname, '..', 'episodes');
1414

1515
const args = process.argv.slice(2);
1616

scripts/update-episodes-metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const colors = {
1515
reset: '\x1b[0m',
1616
};
1717

18-
const EPISODES_AUDIO_DIR = './podcasts';
18+
const EPISODES_AUDIO_DIR = './episodes';
1919
const EPISODES_DIR = './content/episodes';
2020
const ALBUM_ART_PATH = './static/album-art.jpg';
2121

0 commit comments

Comments
 (0)