Update AdGuard Spanish/Portuguese filter descriptions and add missing PT language tag

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-29 01:25:27 +00:00 committed by Collin Barrett
parent 9e225140df
commit 7133f26352
5 changed files with 88119 additions and 4 deletions

View file

@ -0,0 +1,56 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class UpdateAdGuardPortugueseFilters : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 158,
column: "Description",
value: "Blocks ads on websites in Spanish and Portuguese.");
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2202,
column: "Description",
value: "Blocks ads on websites in Spanish and Portuguese.");
migrationBuilder.InsertData(
table: "FilterListLanguage",
columns: new[] { "FilterListId", "LanguageId" },
values: new object[] { 2202, (short)127 });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2202, (short)127 });
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 158,
column: "Description",
value: "Filter that enables removing of the ads from websites in Spanish.");
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2202,
column: "Description",
value: "Filter that enables removing of the ads from websites in Spanish.");
}
}
}

View file

@ -1139,7 +1139,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
Id = 158,
Description = "Filter that enables removing of the ads from websites in Spanish.",
Description = "Blocks ads on websites in Spanish and Portuguese.",
ForumUrl = "https://forum.adguard.com/index.php?categories/filter-rules.66/",
HomeUrl = "https://github.com/AdguardTeam/AdguardFilters",
IssuesUrl = "https://github.com/AdguardTeam/AdguardFilters/issues",
@ -15783,7 +15783,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
Id = 2202,
Description = "Filter that enables removing of the ads from websites in Spanish.",
Description = "Blocks ads on websites in Spanish and Portuguese.",
ForumUrl = "https://forum.adguard.com/index.php?categories/filter-rules.66/",
HomeUrl = "https://github.com/AdguardTeam/AdguardFilters",
IssuesUrl = "https://github.com/AdguardTeam/AdguardFilters/issues",
@ -23908,6 +23908,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
LanguageId = (short)39
},
new
{
FilterListId = 2202,
LanguageId = (short)127
},
new
{
FilterListId = 2204,
LanguageId = (short)14

View file

@ -874,7 +874,7 @@
"policyUrl": "https://kb.adguard.com/en/general/adguard-filter-policy"
},
{
"description": "Filter that enables removing of the ads from websites in Spanish.",
"description": "Blocks ads on websites in Spanish and Portuguese.",
"forumUrl": "https://forum.adguard.com/index.php?categories/filter-rules.66/",
"homeUrl": "https://github.com/AdguardTeam/AdguardFilters",
"id": 158,
@ -13908,7 +13908,7 @@
"policyUrl": "https://kb.adguard.com/en/general/adguard-filter-policy"
},
{
"description": "Filter that enables removing of the ads from websites in Spanish.",
"description": "Blocks ads on websites in Spanish and Portuguese.",
"forumUrl": "https://forum.adguard.com/index.php?categories/filter-rules.66/",
"homeUrl": "https://github.com/AdguardTeam/AdguardFilters",
"id": 2202,

View file

@ -2867,6 +2867,10 @@
"filterListId": 2202,
"languageId": 39
},
{
"filterListId": 2202,
"languageId": 127
},
{
"filterListId": 2204,
"languageId": 14