Skip to content

Commit c64db86

Browse files
committed
upgrade partytime version
1 parent 4bb5979 commit c64db86

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"cSpell.words": [
3+
"bodyparser",
4+
"Downey",
5+
"feedparser",
6+
"Pageviews",
7+
"partytime",
8+
"podverse",
9+
"ratelimit",
10+
"Reparsing",
11+
"typeorm"
12+
]
13+
}

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
"date-fns": "2.8.1",
145145
"eslint": "6.x",
146146
"eslint-config-react-app": "5.1.0",
147-
"eslint-plugin-flowtype": "3.x",
148147
"eslint-plugin-import": "2.x",
149148
"eslint-plugin-jsx-a11y": "6.x",
150149
"eslint-plugin-react": "7.x",
@@ -174,7 +173,7 @@
174173
"password-validator": "5.0.3",
175174
"paypal-rest-sdk": "2.0.0-rc.2",
176175
"pg": "7.14.0",
177-
"podcast-partytime": "4.2.0",
176+
"podcast-partytime": "4.3.0",
178177
"podverse-shared": "^4.1.3",
179178
"reflect-metadata": "0.1.13",
180179
"request": "^2.88.2",

src/services/parser.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as _fetch from 'isomorphic-fetch'
2-
import { parseFeed } from 'podcast-partytime'
2+
import { parseFeed, Phase4Medium } from 'podcast-partytime'
33
import type { FeedObject, Episode as EpisodeObject, Phase1Funding, Phase4Value } from 'podcast-partytime'
44
import type { Funding } from 'podverse-shared'
55
import { getRepository, In, Not } from 'typeorm'
@@ -70,14 +70,15 @@ export const parseFeedUrl = async (feedUrl, forceReparsing = false) => {
7070
language: feed.language,
7171
lastBuildDate: feed.lastBuildDate,
7272
link: feed.link,
73-
medium: (feed.medium || 'podcast') as any, // TODO: how do we handle type/enum here?
73+
medium: feed.medium ?? Phase4Medium.Podcast,
7474
owner: feed.owner,
7575
pubDate: feed.pubDate,
7676
subtitle: feed.subtitle,
7777
summary: feed.summary,
7878
title: feed.title,
7979
type: feed.itunesType,
80-
value: feed.value ? [valueCompat(feed.value)] : []
80+
value: feed.value ? [valueCompat(feed.value)] : [],
81+
liveItems: feed.podcastLiveItems ?? []
8182
}
8283
}
8384

yarn.lock

+4-11
Original file line numberDiff line numberDiff line change
@@ -3434,13 +3434,6 @@ eslint-module-utils@^2.7.1:
34343434
find-up "^2.1.0"
34353435
pkg-dir "^2.0.0"
34363436

3437-
3438-
version "3.13.0"
3439-
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.13.0.tgz#e241ebd39c0ce519345a3f074ec1ebde4cf80f2c"
3440-
integrity sha512-bhewp36P+t7cEV0b6OdmoRWJCBYRiHFlqPZAG1oS3SF+Y0LQkeDvFSM4oxoxvczD1OdONCXMlJfQFiWLcV9urw==
3441-
dependencies:
3442-
lodash "^4.17.15"
3443-
34443437
34453438
version "2.25.3"
34463439
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz#a554b5f66e08fb4f6dc99221866e57cfff824766"
@@ -7773,10 +7766,10 @@ please-upgrade-node@^3.1.1, please-upgrade-node@^3.2.0:
77737766
dependencies:
77747767
semver-compare "^1.0.0"
77757768

7776-
podcast-partytime@4.2.0:
7777-
version "4.2.0"
7778-
resolved "https://registry.yarnpkg.com/podcast-partytime/-/podcast-partytime-4.2.0.tgz#dfbb431013a51e3fd35ed84de5d3e24484365a0e"
7779-
integrity sha512-CHKUi/57pT99D8z63CwYIjuq33Novflyn4iCGhKPCK8T36aPxtiUQzOck0Wcmyl7fx+Pq6DhT07PuO7/uLjeTg==
7769+
podcast-partytime@4.3.0:
7770+
version "4.3.0"
7771+
resolved "https://registry.yarnpkg.com/podcast-partytime/-/podcast-partytime-4.3.0.tgz#64bbac7cc69fd1d36e9b24c6b0f18b59e40d4447"
7772+
integrity sha512-X0TNsuz5GJeUA05/wmzeF71sGUS8sjzRDLtDnkiUacWmZ9W8VgT6bqgPBdxLCwl3RxPxxGU9DRThPil5roay9A==
77807773
dependencies:
77817774
dotenv "^10.0.0"
77827775
fast-xml-parser "^3.18.0"

0 commit comments

Comments
 (0)