Updating transcript path.
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
import * as srtparsejs from "srtparsejs";
|
import * as srtparsejs from "srtparsejs";
|
||||||
import fs from 'fs'
|
import fs from 'fs';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
import { extractFromXml } from '@extractus/feed-extractor'
|
import { extractFromXml } from '@extractus/feed-extractor'
|
||||||
|
|
||||||
const episodeExtra = {
|
const episodeExtra = {
|
||||||
'Buzzsprout-12076221': {
|
'Buzzsprout-12076221': {
|
||||||
slug: 'a-fundamentally-new-react-my-journey-with-react-server-components',
|
slug: 'a-fundamentally-new-react-my-journey-with-react-server-components',
|
||||||
transcript: srtparsejs.parse(fs.readFileSync('./src/data/Buzzsprout-12076221.srt').toString())
|
transcript: srtparsejs.parse(fs.readFileSync(path.join(process.cwd(), 'src', 'data', 'Buzzsprout-12076221.srt')).toString())
|
||||||
},
|
},
|
||||||
'Buzzsprout-12033274': {
|
'Buzzsprout-12033274': {
|
||||||
slug: 'learning-react-on-only-3-hours-per-week-while-working-full-time'
|
slug: 'learning-react-on-only-3-hours-per-week-while-working-full-time'
|
||||||
|
|||||||
Reference in New Issue
Block a user