diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-22 00:43:52 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-22 00:43:52 -0700 |
commit | 28204088af0d868a65b6dbd3b74b0edefb996184 (patch) | |
tree | bde5a0422d041a1fef65333affc134f481e4cd3f /youtube_dl/extractor/youtube.py | |
parent | f165eb5e29fee1fa4d3d9980d7402e2b6cc9825e (diff) | |
download | yt-local-28204088af0d868a65b6dbd3b74b0edefb996184.tar.lz yt-local-28204088af0d868a65b6dbd3b74b0edefb996184.tar.xz yt-local-28204088af0d868a65b6dbd3b74b0edefb996184.zip |
Fix unlisted video detection
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index bf6eea6..360a0d4 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1701,7 +1701,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # Is it unlisted? - unlisted = (self._search_regex('''<meta itemprop="unlisted" content="(\w*)">''', video_webpage, 'is_unlisted', default='False') == "True") + unlisted = ('<span id="watch-privacy-icon"' in video_webpage) # Related videos related_vid_info = self._search_regex(r"""'RELATED_PLAYER_ARGS':\s*(\{.*?\})""", video_webpage, "related_player_args", default='') |