Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814209 - <=media-sound/streamripper-1.64.6 fails with SR_ERROR_INVALID_METADATA when server uses chunked encoding
Summary: <=media-sound/streamripper-1.64.6 fails with SR_ERROR_INVALID_METADATA when s...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-09-21 19:08 UTC by Geo Theall
Modified: 2021-09-23 19:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
force streamripper to use HTTP/1.0 (streamripper-http-1.0.patch,439 bytes, patch)
2021-09-21 19:08 UTC, Geo Theall
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.