Skip to content

Commit

Permalink
test(media-provider): add stitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 17, 2022
1 parent 269a3ce commit 77efe57
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "204908752",
"display_id": "wordle-hurdles-and-sallys-early-retirement-204908752",
"title": "Wordle, hurdles and Sally’s early retirement",
"description": "Hello and welcome back to Equity, a podcast about the business of startups, where we unpack the numbers and nuance behind the headlines.\nAlex, Natasha and Mary Ann enjoyed yet another edition of Equity Live this week, hopping on Twitter Spaces to chat everything from Musk’s meme suit to a new take on Wordle that landed Spotify’s attention. When we stopped recording the episode, news broke that Stripe is cutting its internal valuation by 28%. Luckily, we do this three times a week to stay tuned for our take soon.\nIn the mean time, here’s what we got to in today’s episode: Spotify acquired Heardle, which felt like a throwback to trivia and of course a nod at its famous predecessor, NY Times-owned Wordle. Only one of us has played the music guessing game so far, so tweet @equitypod your thoughts on if it’s actually fun. We also spoke about a startup that is trying to address male infertility in a personalized, engaging way. It caught investors attention, and ours too. Our last deal of the week, Continuum, gave us a chance to talk about productizing one of the worst jobs in startups: laying folks off. The fractional work play feels even more important given the volatility of startups across all stages right now. Hopin, for example, conducted its second layoff within four months this week and parted ways with its COO, CFO and other executives. Medium had an executive shake up, with Ev Williams stepping down. The last two themes of the episode were built around Instacart and the future of grocery delivery, as well as the latest of the Twitter and Elon Musk saga. Equity drops every Monday at 7 a.m. PDT and Wednesday and Friday at 6 a.m. PDT, so subscribe to us on Apple Podcasts, Overcast, Spotify and all the casts.",
"duration": 2355,
"url": "https://locator.simplecastcdn.com/f4352096-d805-4926-a3c4-d39b725616a3/d8fa5086-6a2e-42bc-9e66-ba08ca4a801e.mp3?aid=rss_feed&feed=LDd0maWN",
"vcodec": "none",
"timestamp": 1657892652,
"season_number": null,
"season_id": null,
"thumbnail": "https://stitcher.imgix.net/e0c9d9dd0a7e28d5ca5f17acbfcafe80e14667042440c72f5385c5557777861f",
"series": "Equity",
"webpage_url": "https://www.stitcher.com/show/equity/episode/wordle-hurdles-and-sallys-early-retirement-204908752",
"original_url": "https://www.stitcher.com/show/equity/episode/wordle-hurdles-and-sallys-early-retirement-204908752",
"webpage_url_basename": "wordle-hurdles-and-sallys-early-retirement-204908752",
"webpage_url_domain": "stitcher.com",
"extractor": "Stitcher",
"extractor_key": "Stitcher",
"playlist": null,
"playlist_index": null,
"thumbnails": [
{
"url": "https://stitcher.imgix.net/e0c9d9dd0a7e28d5ca5f17acbfcafe80e14667042440c72f5385c5557777861f",
"id": "0"
}
],
"fulltitle": "Wordle, hurdles and Sally’s early retirement",
"duration_string": "39:15",
"upload_date": "20220715",
"requested_subtitles": null,
"_has_drm": null,
"format_id": "0",
"ext": "mp3",
"format": "0 - audio only",
"protocol": "https",
"resolution": "audio only",
"http_headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "en-us,en;q=0.5",
"Sec-Fetch-Mode": "navigate",
"Referer": "https://www.stitcher.com/show/equity/episode/wordle-hurdles-and-sallys-early-retirement-204908752"
},
"requested_downloads": [
{
"epoch": 1658091953,
"_filename": "Wordle, hurdles and Sally’s early retirement [204908752].mp3",
"__write_download_archive": false
}
],
"epoch": 1658091953,
"_type": "video"
}
4 changes: 4 additions & 0 deletions packages/metascraper-media-provider/test/get-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ const test = require('ava')

const { getAudio } = require('..')

test('stitcher', t => {
t.snapshot(getAudio(require('./fixtures/provider/stitcher.json')))
})

test('google', t => {
t.snapshot(getAudio(require('./fixtures/provider/google.json')))
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ The actual snapshot is saved in `get-audio.js.snap`.

Generated by [AVA](https://avajs.dev).

## stitcher

> Snapshot 1
'https://locator.simplecastcdn.com/f4352096-d805-4926-a3c4-d39b725616a3/d8fa5086-6a2e-42bc-9e66-ba08ca4a801e.mp3?aid=rss_feed&feed=LDd0maWN'

## google

> Snapshot 1
Expand Down
Binary file not shown.

0 comments on commit 77efe57

Please sign in to comment.