@@ -32,7 +32,7 @@ internal sealed class PatreonPageCrawler : IPageCrawler
3232 //TODO: Research possibility of not hardcoding this string
3333 private const string CrawlStartUrl = "https://www.patreon.com/api/posts?" +
3434 "include=user%2Cattachments_media%2Ccampaign%2Cpoll.choices%2Cpoll.current_user_responses.user%2Cpoll.current_user_responses.choice%2Cpoll.current_user_responses.poll%2Caccess_rules.tier.null%2Cimages.null%2Caudio.null" +
35- "&fields[post]=change_visibility_at%2Ccomment_count%2Ccontent%2Ccurrent_user_can_delete%2Ccurrent_user_can_view%2Ccurrent_user_has_liked%2Cembed%2Cimage%2Cis_paid%2Clike_count%2Cmin_cents_pledged_to_view%2Cpost_file%2Cpost_metadata%2Cpublished_at%2Cpatron_count%2Cpatreon_url%2Cpost_type%2Cpledge_url%2Cthumbnail_url%2Cteaser_text%2Ctitle%2Cupgrade_url%2Curl%2Cwas_posted_by_campaign_owner" +
35+ "&fields[post]=change_visibility_at%2Ccomment_count%2Ccontent%2Ccurrent_user_can_delete%2Ccurrent_user_can_view%2Ccurrent_user_has_liked%2Cembed%2Cimage%2Cis_paid%2Clike_count%2Cmin_cents_pledged_to_view%2Cpost_file%2Cpost_metadata%2Cpublished_at%2Cpatron_count%2Cpatreon_url%2Cpost_type%2Cpledge_url%2Cthumbnail_url%2Cteaser_text%2Ctitle%2Cupgrade_url%2Curl%2Cwas_posted_by_campaign_owner%2Ccontent_json_string " +
3636 "&fields[user]=image_url%2Cfull_name%2Curl" +
3737 "&fields[campaign]=show_audio_post_download_links%2Cavatar_photo_url%2Cearnings_visibility%2Cis_nsfw%2Cis_monthly%2Cname%2Curl" +
3838 "&fields[access_rule]=access_rule_type%2Camount_cents" +
@@ -162,12 +162,12 @@ private async Task<ParsingResult> ParsePage(string json)
162162 {
163163 try
164164 {
165- string filename = "description.html " ;
165+ string filename = "description.json " ;
166166 if ( ! _patreonDownloaderSettings . IsUseSubDirectories )
167167 filename = $ "{ jsonEntry . Id } _{ filename } ";
168168
169169 await File . WriteAllTextAsync ( Path . Combine ( additionalFilesSaveDirectory , filename ) ,
170- jsonEntry . Attributes . Content ) ;
170+ jsonEntry . Attributes . ContentJsonString ) ;
171171 }
172172 catch ( Exception ex )
173173 {
@@ -212,7 +212,8 @@ await File.WriteAllTextAsync(
212212 }
213213
214214 //External urls via plugins (including direct via default plugin)
215- List < string > pluginUrls = await _pluginManager . ExtractSupportedUrls ( jsonEntry . Attributes . Content ) ;
215+ //2026-03-08: disabled due to patreon getting rid of html contentn data replacing it with JSON. Current implementation expects pure HTML.
216+ /*List<string> pluginUrls = await _pluginManager.ExtractSupportedUrls(jsonEntry.Attributes.ContentJsonString);
216217 foreach (string url in pluginUrls)
217218 {
218219 PatreonCrawledUrl subEntry = (PatreonCrawledUrl)entry.Clone();
@@ -221,7 +222,7 @@ await File.WriteAllTextAsync(
221222 crawledUrls.Add(subEntry);
222223 _logger.Info($"[{jsonEntry.Id}] New external entry: {subEntry.Url}");
223224 OnNewCrawledUrl(new NewCrawledUrlEventArgs((CrawledUrl)subEntry.Clone()));
224- }
225+ }*/
225226
226227 _logger . Debug ( $ "[{ jsonEntry . Id } ] Scanning attachment data") ;
227228 //Attachments
0 commit comments