Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit 2e5a47da400b645aadbda6afd1…
Browse files Browse the repository at this point in the history
…156bd89c744f48
  • Loading branch information
github-actions[bot] committed May 31, 2024
1 parent 1ad45f9 commit 57a3f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/yt_dlp/extractor/patreon.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ def _real_extract(self, url):
campaign_id, vanity = self._match_valid_url(url).group('campaign_id', 'vanity')
if campaign_id is None:
webpage = self._download_webpage(url, vanity, headers={'User-Agent': self.USER_AGENT})
campaign_id = self._search_regex(r'https://www.patreon.com/api/campaigns/(\d+)/?', webpage, 'Campaign ID')
campaign_id = self._search_nextjs_data(
webpage, vanity)['props']['pageProps']['bootstrapEnvelope']['pageBootstrap']['campaign']['data']['id']

params = {
'json-api-use-default-includes': 'false',
Expand Down
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8b46ad4d8b8ee8c5472af0cde863baa89ca3f425
2e5a47da400b645aadbda6afd1156bd89c744f48

0 comments on commit 57a3f87

Please sign in to comment.