podverse-shared
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -9,2 +9,3 @@ export declare type NowPlayingItem = { | ||
clipTitle?: string; | ||
episodeChaptersUrl?: string; | ||
episodeDescription?: string; | ||
@@ -51,2 +52,3 @@ episodeDuration?: number; | ||
addByRSSPodcastFeedUrl: any; | ||
episodeChaptersUrl: any; | ||
episodeDescription: any; | ||
@@ -74,2 +76,3 @@ episodeDuration: any; | ||
addByRSSPodcastFeedUrl: any; | ||
episodeChaptersUrl: any; | ||
episodeDescription: any; | ||
@@ -84,2 +87,3 @@ episodeDuration: any; | ||
export declare const convertNowPlayingItemToEpisode: (item: NowPlayingItem) => { | ||
chaptersUrl: string | undefined; | ||
description: string | undefined; | ||
@@ -110,2 +114,3 @@ duration: number | undefined; | ||
episode: { | ||
chaptersUrl: string | undefined; | ||
description: string | undefined; | ||
@@ -147,2 +152,3 @@ duration: number | undefined; | ||
addByRSSPodcastFeedUrl: any; | ||
episodeChaptersUrl: any; | ||
episodeDescription: any; | ||
@@ -149,0 +155,0 @@ episodeDuration: any; |
@@ -22,3 +22,3 @@ "use strict"; | ||
} | ||
return __assign(__assign(__assign(__assign({}, cleanedItem), { addByRSSPodcastFeedUrl: item.addByRSSPodcastFeedUrl || '', episodeDescription: item.episodeDescription || '', episodeDuration: item.episodeDuration || null, episodeFunding: item.episodeFunding || [], episodeId: item.episodeId || '', episodeImageUrl: item.episodeImageUrl || '', episodeLinkUrl: item.episodeLinkUrl || '', episodeMediaUrl: item.episodeMediaUrl || '' }), (item.episodePubDate ? { episodePubDate: item.episodePubDate } : {})), { episodeTitle: item.episodeTitle || '', isPublic: item.isPublic || false, podcastFunding: item.podcastFunding || [], podcastHideDynamicAdsWarning: item.podcastHideDynamicAdsWarning || false, podcastId: item.podcastId || '', podcastImageUrl: item.podcastImageUrl || '', podcastIsExplicit: item.podcastIsExplicit || false, podcastLinkUrl: item.podcastLinkUrl || '', podcastShrunkImageUrl: item.podcastShrunkImageUrl || '', podcastSortableTitle: item.podcastSortableTitle || '', podcastTitle: item.podcastTitle || '', podcastValue: item.podcastValue || [], userPlaybackPosition: !item.userPlaybackPosition && item.userPlaybackPosition !== 0 | ||
return __assign(__assign(__assign(__assign({}, cleanedItem), { addByRSSPodcastFeedUrl: item.addByRSSPodcastFeedUrl || '', episodeChaptersUrl: item.episodeChaptersUrl || '', episodeDescription: item.episodeDescription || '', episodeDuration: item.episodeDuration || null, episodeFunding: item.episodeFunding || [], episodeId: item.episodeId || '', episodeImageUrl: item.episodeImageUrl || '', episodeLinkUrl: item.episodeLinkUrl || '', episodeMediaUrl: item.episodeMediaUrl || '' }), (item.episodePubDate ? { episodePubDate: item.episodePubDate } : {})), { episodeTitle: item.episodeTitle || '', isPublic: item.isPublic || false, podcastFunding: item.podcastFunding || [], podcastHideDynamicAdsWarning: item.podcastHideDynamicAdsWarning || false, podcastId: item.podcastId || '', podcastImageUrl: item.podcastImageUrl || '', podcastIsExplicit: item.podcastIsExplicit || false, podcastLinkUrl: item.podcastLinkUrl || '', podcastShrunkImageUrl: item.podcastShrunkImageUrl || '', podcastSortableTitle: item.podcastSortableTitle || '', podcastTitle: item.podcastTitle || '', podcastValue: item.podcastValue || [], userPlaybackPosition: !item.userPlaybackPosition && item.userPlaybackPosition !== 0 | ||
? 0 | ||
@@ -29,2 +29,3 @@ : item.userPlaybackPosition }); | ||
return { | ||
chaptersUrl: item.episodeChaptersUrl, | ||
description: item.episodeDescription, | ||
@@ -75,2 +76,3 @@ duration: item.episodeDuration, | ||
addByRSSPodcastFeedUrl: data.addByRSSPodcastFeedUrl, | ||
episodeChaptersUrl: data.episodeChaptersUrl, | ||
episodeDescription: data.episodeDescription, | ||
@@ -109,2 +111,3 @@ episodeDuration: data.episodeDuration, | ||
if (data.podcast_id) { | ||
nowPlayingItem.episodeChaptersUrl = data.chaptersUrl; | ||
nowPlayingItem.episodeDescription = data.description; | ||
@@ -131,2 +134,3 @@ nowPlayingItem.episodeDuration = data.duration; | ||
else if (data.pubDate) { | ||
nowPlayingItem.episodeChaptersUrl = data.chaptersUrl; | ||
nowPlayingItem.episodeDescription = data.description; | ||
@@ -160,2 +164,3 @@ nowPlayingItem.episodeDuration = data.duration; | ||
nowPlayingItem.clipTitle = data.title; | ||
nowPlayingItem.episodeChaptersUrl = e.chaptersUrl; | ||
nowPlayingItem.episodeDescription = e.description; | ||
@@ -162,0 +167,0 @@ nowPlayingItem.episodeDuration = e.duration; |
{ | ||
"name": "podverse-shared", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Helpers that are used across multiple Podverse modules", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54663
455