Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 814209

Summary: <=media-sound/streamripper-1.64.6 fails with SR_ERROR_INVALID_METADATA when server uses chunked encoding
Product: Gentoo Linux Reporter: Geo Theall <theall+gentoo>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: UNCONFIRMED ---    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: force streamripper to use HTTP/1.0

Description Geo Theall 2021-09-21 19:08:33 UTC
Created attachment 740559 [details, diff]
force streamripper to use HTTP/1.0

Streamripper 1.64.6 recently started to fail for me while trying to rip a stream, exiting with :

  error -28 [SR_ERROR_INVALID_METADATA]

Investigating turned up a long-standing open bug upstream for this -- https://sourceforge.net/p/streamripper/bugs/193/ Essentially, streamripper sends an HTTP/1.1 request for the stream but doesn't support chunked transfer encoding and fails if the response uses that.

As the upstream bug notes, the solution should be for streamripper to support chunked transfer encoding. Until then, a quick and dirty fix may be to patch streamripper to use HTTP/1.0 rather than HTTP/1.1. https://sourceforge.net/p/streamripper/bugs/193/#6a82 contains a patch (which I've attached) that does just that.