Skip to content

Wrong value for the length attribute of the enclosure tag on the rss feeds #774

@maru-sama

Description

@maru-sama

Good Morning,

While trying to download a few videos from the latest conference I noticed that the length attribute of the enlosure tag is different from the actual content length of the video itself.
For example:

The first entry in
https://media.ccc.de/c/37c3/podcast/mp4-hq.xml
has a defined length of

<enclosure url="https://cdn.media.ccc.de/congress/2023/h264-hd/37c3-58019-deu-NSU-Watch_Aufklaeren_Einmischen_Der_Jahresrueckblick_2023_hd.mp4" length="562036736" <-- length type="video/mp4"/>

While the correct size according to wget is the following

HTTP request sent, awaiting response... 200 OK Length: 562902679 (537M) [video/mp4] Saving to: ‘37c3-58019-deu-NSU-Watch_Aufklaeren_Einmischen_Der_Jahresrueckblick_2023_hd.mp4’

I am using the length value to check if a file has been fully downloaded or should be fetched again. Since the value is not correct I cannot do that and have to always send a GET request to fetch the Content-Length.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions