From f6abfd2627e5410d2c612b976b57ff2cdc7cb3bf Mon Sep 17 00:00:00 2001 From: Chris Putnam Date: Fri, 22 Jan 2021 01:11:04 -0600 Subject: [PATCH] adding test case for paywalled patreon-hosted video --- youtube_dl/extractor/patreon.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/youtube_dl/extractor/patreon.py b/youtube_dl/extractor/patreon.py index 19ec3eab7..6e9a73ca2 100644 --- a/youtube_dl/extractor/patreon.py +++ b/youtube_dl/extractor/patreon.py @@ -19,6 +19,7 @@ import re class PatreonIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?patreon\.com/(?:creation\?hid=|posts/(?:[\w-]+-)?)(?P\d+)' + _NETRC_MACHINE = 'patreon' _TESTS = [{ 'url': 'http://www.patreon.com/creation?hid=743933', 'md5': 'e25505eec1053a6e6813b8ed369875cc', @@ -66,6 +67,11 @@ class PatreonIE(InfoExtractor): }, { 'url': 'https://www.patreon.com/posts/743933', 'only_matching': True, + }, { + # embedded patreon-hosted video, paywalled + 'url': 'https://www.patreon.com/posts/terps-part-1-46181905', + 'only_matching': True, + 'skip': 'Patron-only content' }] def _login(self):