diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-25 12:38:33 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-25 13:00:42 +0530 |
commit | 28787f16c6811cc4f2cc067d5739caf257b3ea75 (patch) | |
tree | cbdee87a7eb9be95f03c122bf485e33c87cbfee3 /yt_dlp/utils.py | |
parent | 1fb707badb35d01d4ad7831a19f3469de2ef9141 (diff) | |
download | hypervideo-pre-28787f16c6811cc4f2cc067d5739caf257b3ea75.tar.lz hypervideo-pre-28787f16c6811cc4f2cc067d5739caf257b3ea75.tar.xz hypervideo-pre-28787f16c6811cc4f2cc067d5739caf257b3ea75.zip |
[downloader] Fix invocation of `HttpieFD`
Closes #3154
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index c71a7b833..4961ba14d 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -5502,3 +5502,11 @@ has_websockets = bool(compat_websockets) def merge_headers(*dicts): """Merge dicts of http headers case insensitively, prioritizing the latter ones""" return {k.title(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))} + + +class classproperty: + def __init__(self, f): + self.f = f + + def __get__(self, _, cls): + return self.f(cls) |