]> jfr.im git - yt-dlp.git/commit - yt_dlp/extractor/youtube.py
[extractor/youtube] Differentiate between no and disabled comments (#5491)
authorMatthew <redacted>
Thu, 10 Nov 2022 03:33:03 +0000 (16:33 +1300)
committerGitHub <redacted>
Thu, 10 Nov 2022 03:33:03 +0000 (03:33 +0000)
commit0cf643b234ff2f4d017a980dbaefdb14ed6e4db6
tree1611c3a216592b489065340805ad030d70801db1
parentdc3028d233b2f7091215dc0d9acc522914b9b59d
[extractor/youtube] Differentiate between no and disabled comments (#5491)

`comments` and `comment_count` will be set to None, as opposed to
an empty list and 0, respectively.

Fixes https://github.com/yt-dlp/yt-dlp/issues/5068

Authored by: coletdjnz, pukkandan
yt_dlp/extractor/common.py
yt_dlp/extractor/youtube.py