Skip to content

Commit cca6546

Browse files
committed
Fixed build.
1 parent bb0a27c commit cca6546

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/src/components/HiddenAudioPlayer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ export const HiddenAudioPlayer: FC<HiddenAudioPlayerProps> = ({ refItem, setAudi
6161
duration: e.currentTarget.duration,
6262
percentage: 0
6363
})
64-
64+
6565
if (isNaN(e.currentTarget.duration)) {
6666
// Need alternative method of getting duration
6767
// Firefox doesn't load the entire file before playing
6868
// causing a changing duration, but the onLoadedMetadata event
6969
// is only called once rendering the progressbar useless
70-
axios.get('/podcast/episode/' + podcastEpisode.episode_id)
70+
axios.get('/podcast/episode/' + podcastEpisode!.episode_id)
7171
.then((response: AxiosResponse<PodcastWatchedModel>) => {
7272
setMetadata({
7373
currentTime: e.currentTarget.currentTime,

ui/src/models/PodcastWatchedModel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ export interface PodcastWatchedModel {
44
episodeId: number,
55
watchedTime: number,
66
date: String
7+
total: number
8+
position: number
79
}

0 commit comments

Comments
 (0)