Skip to content

Commit ca0d1fb

Browse files
authored
Merge pull request #113 from iMattPro/fixes
Fix Apple Podcasts
2 parents 97b45cd + 39816ec commit ca0d1fb

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

collection/sites/applepodcasts.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Apple Podcasts"
2+
homepage: "https://podcasts.apple.com/"
3+
host: podcasts.apple.com
4+
example:
5+
- https://podcasts.apple.com/us/podcast/the-office-deep-dive-with-brian-baumgartner/id1550331348
6+
- https://podcasts.apple.com/us/podcast/the-office-deep-dive-with-brian-baumgartner/id1550331348?i=1000514199106
7+
extract:
8+
- "@podcasts.apple.com/(?'country'\\w+)/podcast/[-\\w%]*/id(?'podcast_id'\\d+)(?:\\?i=(?'episode_id'\\d+))?@"
9+
choose:
10+
when:
11+
test: '@episode_id'
12+
iframe:
13+
allow: "autoplay *;encrypted-media *"
14+
width: "100%"
15+
height: "175"
16+
max-width: "900"
17+
src: "https://embed.podcasts.apple.com/{@country}/podcast/episode/id{@podcast_id}?i={@episode_id}"
18+
otherwise:
19+
iframe:
20+
allow: "autoplay *;encrypted-media *"
21+
width: "100%"
22+
height: "450"
23+
max-width: "900"
24+
src: "https://embed.podcasts.apple.com/{@country}/podcast/episode/id{@podcast_id}"
25+
tags: "podcasts"

0 commit comments

Comments
 (0)