rg3/youtube-dl — pull request #1176 by brimston3 (2013-08-03 20:18:33+00:00)
Title: Optionally set the expected final filesize of a download as an xattribute

Requires python-xattr and a filesystem that supports user xattributes.

The xattr used is user.ytdl.filesize.

This can be useful, for example, if you want to restream a partially downloaded file over http and need to know the content length before hand.