[ie/patreon:campaign] Fix extractor (#15108)

Closes #15094
Authored by: thomasmllt
This commit is contained in:
thomasmllt 2025-12-01 00:59:28 +01:00 committed by GitHub
parent 4433b3a217
commit 023e4db9af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -598,7 +598,8 @@ class PatreonCampaignIE(PatreonBaseIE):
'props', 'pageProps', 'bootstrapEnvelope', 'pageBootstrap', 'campaign', 'data', 'id', {str}))
if not campaign_id:
campaign_id = traverse_obj(self._search_nextjs_v13_data(webpage, vanity), (
lambda _, v: v['type'] == 'campaign', 'id', {str}, any, {require('campaign ID')}))
((..., 'value', 'campaign', 'data'), lambda _, v: v['type'] == 'campaign'),
'id', {str}, any, {require('campaign ID')}))
params = {
'json-api-use-default-includes': 'false',