question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Twitter Spaces streams

See original GitHub issue

Checklist

  • I’m reporting a site feature request
  • I’ve verified that I’m running youtube-dl version 2021.05.16
  • I’ve searched the bugtracker for similar site feature requests including closed ones

Description

An example tweet with a Spaces link: https://twitter.com/akirosenthal/status/1397936847741800454

youtube-dl output:

$ youtube-dl https://twitter.com/akirosenthal/status/1397936847741800454
[twitter] 1397936847741800454: Downloading guest token
[twitter] 1397936847741800454: Downloading JSON metadata
[generic] 1yNGaWpbVQQxj: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1yNGaWpbVQQxj: Downloading webpage
[generic] 1yNGaWpbVQQxj: Extracting information
ERROR: Unsupported URL: https://twitter.com/i/spaces/1yNGaWpbVQQxj

Looking at the network tab in Chrome’s developer tools, it seems like the site’s making connections to pscp.tv, so possibly the already existing Periscope extractor could be used as a base to support Spaces URLs. An example playlist URL:

https://prod-fastly-ap-northeast-1.video.pscp.tv/Transcoding/v1/hls/E2iot0n3CMPrkdBrsf2mBZdvoZb6mvaVHlKLy8Kriww5Mi_ItgaIB4UdvCg0CtyapoSTlbhm9sfSfyKxQ1d16A/non_transcode/ap-northeast-1/periscope-replay-direct-prod-ap-northeast-1-public/audio-space/dynamic_playlist.m3u8?type=live

Example playlist content:

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:4
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA-SEQUENCE:501
#EXT-X-DISCONTINUITY-SEQUENCE:0
#EXT-X-START:TIME-OFFSET=0.01
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:10.989Z
#EXTINF:2.986,
chunk_1622130185269794294_501_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:14.008Z
#EXTINF:3.030,
chunk_1622130188372878103_502_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:17.053Z
#EXTINF:3.093,
chunk_1622130191393163530_503_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:20.084Z
#EXTINF:3.008,
chunk_1622130194383671872_504_a.aac?type=live

The last chunk in that playlist would refer to this URL:

https://prod-fastly-ap-northeast-1.video.pscp.tv/Transcoding/v1/hls/E2iot0n3CMPrkdBrsf2mBZdvoZb6mvaVHlKLy8Kriww5Mi_ItgaIB4UdvCg0CtyapoSTlbhm9sfSfyKxQ1d16A/non_transcode/ap-northeast-1/periscope-replay-direct-prod-ap-northeast-1-public/audio-space/chunk_1622130194383671872_504_a.aac?type=live

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:16
  • Comments:13

github_iconTop GitHub Comments

4reactions
christian-korneckcommented, Dec 25, 2021

this would be extra useful as a Twitter Spaces recording only lives for 30 days, afterwards it’s lost.

3reactions
mortyobnoxiouscommented, Jun 20, 2021

It would really be great if this is supported.

More Twitter Spaces links to inspect: https://twitter.com/search?q=lang%3Aen filter%3Aspaces&f=live

Read more comments on GitHub >

github_iconTop Results From Across the Web

The how-to guide for Twitter Spaces | Twitter Create
Our how-to guide for Twitter Spaces answers all of your questions. Want to know how to pin a Tweet? Or learn how to...
Read more >
Twitter Spaces: Your Complete Guide to Getting Started
Twitter Spaces is an audio streaming feature available in the Twitter app. It lets users live stream discussions and allows a wide variety ......
Read more >
How to use Twitter Spaces and grow your live stream #Twitter ...
Twitter Spaces is a new tool available to users on both iOS and Android which grants the ability to host audio only "Spaces"...
Read more >
Your Ultimate Guide to Twitter Spaces in 2023
1. When you’re the host, this is how you’d be able to create a Space: • Long press on the Compose button on your...
Read more >
How To Use Twitter Spaces - Later
Once there are listeners in your Space, you can help guide the conversation and give context to a topic by sharing a Tweet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found