HoloArchivists / twspace-dl

A python module to download twitter spaces.
GNU General Public License v2.0
479 stars 78 forks source link

**Title: Error downloading Twitter Space recording: HTTP 400 and EXTINF segment errors** #109

Open rasrobo opened 6 months ago

rasrobo commented 6 months ago

Hello,

I'm experiencing issues with the twspace_dl tool while trying to download recordings from Twitter Spaces. Despite ensuring my cookie file is up-to-date and correctly formatted, I am encountering persistent errors.

Error Description:

The tool throws multiple errors during the download process, notably failing to parse the EXTINF value of HLS segments and returning HTTP 400 Bad Request errors. Here's a snippet of the error log:

[hls @ 0xaddress] Cannot get correct #EXTINF value of segment [URL], set to default value to 1ms.
[https @ 0xaddress] HTTP error 400 Bad Request
hls @ 0xaddress] Failed to open segment [index] of playlist 0

Attempts to Resolve:

Questions:

  1. Has there been any change in how Twitter handles HLS streams that I might be unaware of?
  2. Is there an update to the tool or a patch available that addresses these new changes?
  3. Could anyone suggest alternative tools or methods to download Twitter Space recordings?

Any help or guidance on this would be greatly appreciated as this tool is critical for my usage scenario. Thank you!

rasrobo commented 6 months ago

twspace_dl -i 'https://twitter.com/i/spaces/1LyxBnrkXOjxN' -o '/mnt/d/Documents/2024-04-16A.m4a' --input-cookie-file /mnt/d/Documents/X\ Spaces\ Recordings/cookie/x_cookie.txt