Skip to content

Commit b651c4b

Browse files
committed
special content
1 parent 510c4f9 commit b651c4b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

app/bin/lerama

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function showUsage(CLImate $climate): void
112112
$climate->out(" php bin/lerama feed:process [--parallel|-p N] Process all feeds (optionally with N parallel workers, max 10)");
113113
$climate->out(" php bin/lerama feed:id {ID_DO_FEED} Process a specific feed by ID");
114114
$climate->out(" php bin/lerama feed:check-status Check and update status of paused feeds");
115-
$climate->out(" php bin/lerama feed:subscribercheck Check all feed items for subscriber-only content");
115+
$climate->out(" php bin/lerama feed:check-real-content Check all feed items for real contents");
116116
$climate->out(" php bin/lerama feed:import <CSV_FILE> Import feeds from CSV file (columns: url, tags, category)");
117117
$climate->out(" php bin/lerama proxy:update Update proxy list from PROXY_LIST URL");
118118
$climate->out("");
@@ -121,5 +121,5 @@ function showUsage(CLImate $climate): void
121121
$climate->out(" php bin/lerama feed:process --parallel 5 Process feeds with 5 parallel workers");
122122
$climate->out(" php bin/lerama feed:process -p 3 Process feeds with 3 parallel workers");
123123
$climate->out(" php bin/lerama feed:import feeds.csv Import feeds from CSV file");
124-
$climate->out(" php bin/lerama feed:subscribercheck Check for subscriber-only content");
124+
$climate->out(" php bin/lerama feed:check-real-content Check for real content");
125125
}

app/src/Commands/FeedProcessor.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,9 +1194,17 @@ private function checkRealContent(?string $content, ?string $url = ''): array
11941194
}
11951195

11961196
// WordPress Password Protected Post
1197-
if (strpos($content, 'wp-login.php?action=postpass') !== false) {
1198-
$this->climate->whisper("Detected WordPress password protected post in: {$url}");
1199-
return ['status' => 'invisible', 'reason' => 'wordpress_password_protected'];
1197+
$passwordPatterns = [
1198+
'wp-login.php?action=postpass',
1199+
'Este conteúdo está protegido por senha',
1200+
'This content is password protected.'
1201+
];
1202+
1203+
foreach ($passwordPatterns as $pattern) {
1204+
if (strpos($content, $pattern) !== false) {
1205+
$this->climate->whisper("Detected WordPress password protected post in: {$url}");
1206+
return ['status' => 'invisible', 'reason' => 'wordpress_password_protected'];
1207+
}
12001208
}
12011209

12021210
$trimmedContent = trim($content);

0 commit comments

Comments
 (0)