Skip to content

Commit f2c978a

Browse files
committed
allow to include feed URL in remote item
1 parent 6d7d671 commit f2c978a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

namespace_podcast.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ type PodcastRemoteItem struct {
8181
XMLName xml.Name `xml:"podcast:remoteItem"`
8282
ItemGUID *string `xml:"itemGuid,attr"`
8383
FeedGUID uuid.UUID `xml:"feedGuid,attr"`
84+
FeedURL *string `xml:"feedUrl,attr"`
8485
Medium *PodcastMedium `xml:"medium,attr"`
8586
}
8687

types_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func TestMarshal(t *testing.T) {
101101
RemoteItem: types.PodcastRemoteItem{
102102
ItemGUID: pointer("https://podcastindex.org/podcast/4148683#1"),
103103
FeedGUID: uuid.MustParse("a94f5cc9-8c58-55fc-91fe-a324087a655b"),
104+
FeedURL: pointer("https://feeds.podcastindex.org/Album-TourconVII.xml"),
104105
Medium: pointer(types.PodcastMediumMusic),
105106
},
106107
RemotePercentage: pointer[uint](95),
@@ -403,7 +404,7 @@ func TestMarshal(t *testing.T) {
403404
<podcast:valueRecipient name="Co-Host #2" type="node" address="032f4ffbbafffbe51726ad3c164a3d0d37ec27bc67b29a159b0f49ae8ac21b8508" split="40"></podcast:valueRecipient>
404405
<podcast:valueRecipient name="Producer" type="node" address="03ae9f91a0cb8ff43840e3c322c4c61f019d8c1c3cea15a25cfc425ac605e61a4a" split="10"></podcast:valueRecipient>
405406
<podcast:valueTimeSplit startTime="60" duration="237" remotePercentage="95">
406-
<podcast:remoteItem itemGuid="https://podcastindex.org/podcast/4148683#1" feedGuid="a94f5cc9-8c58-55fc-91fe-a324087a655b" medium="music"></podcast:remoteItem>
407+
<podcast:remoteItem itemGuid="https://podcastindex.org/podcast/4148683#1" feedGuid="a94f5cc9-8c58-55fc-91fe-a324087a655b" feedUrl="https://feeds.podcastindex.org/Album-TourconVII.xml" medium="music"></podcast:remoteItem>
407408
</podcast:valueTimeSplit>
408409
<podcast:valueTimeSplit startTime="330" duration="53" remoteStartTime="174" remotePercentage="95">
409410
<podcast:remoteItem itemGuid="https://podcastindex.org/podcast/4148683#3" feedGuid="a94f5cc9-8c58-55fc-91fe-a324087a655b" medium="music"></podcast:remoteItem>

0 commit comments

Comments
 (0)