Skip to content

Commit

Permalink
Merge pull request #88 from goodtrailer/fix-falseknees-2024.616.0
Browse files Browse the repository at this point in the history
FalseKnees: Fix patterns
  • Loading branch information
goodtrailer authored Jun 17, 2024
2 parents dafbd48 + f693c73 commit efcdb40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DailyDesktop.Providers.FalseKnees/FalseKneesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FalseKneesProvider : IProvider
private const string IMAGE_RELATIVE_URI_PATTERN = "imgs/[0-9]*?\\.[a-zA-Z]+";
private const string TITLE_RELATIVE_URI_PATTERN = "(?<=URL=)[0-9]+\\.[a-zA-Z]+";
private const string DESCRIPTION_PATTERN = "(?<=<img.*title=\").*?(?=\")";
private const string TITLE_PATTERN = "(?<=index\\.html.*- ).*?(?=<)";
private const string TITLE_PATTERN = "(?<=<p class=\"div-overflow\">.*?- ).*?(?=</p>)";

public string DisplayName => "False Knees";

Expand All @@ -32,7 +32,7 @@ public async Task ConfigureWallpaperAsync(HttpClient client, IPublicWallpaperCon

string pageHtml = await client.GetStringAsync(SourceUri, cancellationToken);

string imageUri = SourceUri + "/" + Regex.Match(pageHtml, IMAGE_RELATIVE_URI_PATTERN).Value;
string imageUri = SourceUri + "/comics/" + Regex.Match(pageHtml, IMAGE_RELATIVE_URI_PATTERN).Value;
string titleUri = SourceUri + "/" + Regex.Match(pageHtml, TITLE_RELATIVE_URI_PATTERN).Value;
string description = Regex.Match(pageHtml, DESCRIPTION_PATTERN).Value;

Expand Down

0 comments on commit efcdb40

Please sign in to comment.