Check-in [6b2e4d3950]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Filter duplicate entries from SF.net file feed. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6b2e4d3950852a4518b8e13bd63058ac |
User & Date: | mario 2015-05-15 19:07:40 |
Context
2015-06-20
| ||
03:32 | Change minimum `name` length to 2…33 check-in: 9e2363af88 user: mario tags: trunk | |
2015-05-15
| ||
19:07 | Filter duplicate entries from SF.net file feed. check-in: 6b2e4d3950 user: mario tags: trunk | |
2015-04-29
| ||
20:53 | Summarized changes directly from /changelog check-in: 570f97a5af user: mario tags: trunk | |
Changes
Changes to cron.daily/news_feeds.php.
︙ | ︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | "kdeapps,5" => "http://www.kde.org/dot/kde-apps-content.rdf", "qtapps,4" => "http://qt-apps.org/qt-apps-content.rdf", "cliapps,3" => "http://cli-apps.org/cli-apps-content.rdf", ); $filter = "/Please 'report' off-topic|namelessrom|machomebrew/" ; #-- Traverse and collect entries foreach ($feeds as $name=>$url) { // data list($name, $max) = str_getcsv($name); $output = ""; | > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | "kdeapps,5" => "http://www.kde.org/dot/kde-apps-content.rdf", "qtapps,4" => "http://qt-apps.org/qt-apps-content.rdf", "cliapps,3" => "http://cli-apps.org/cli-apps-content.rdf", ); $filter = "/Please 'report' off-topic|namelessrom|machomebrew/" ; $seen = array(); #-- Traverse and collect entries foreach ($feeds as $name=>$url) { // data list($name, $max) = str_getcsv($name); $output = ""; |
︙ | ︙ | |||
62 63 64 65 66 67 68 69 70 71 72 73 74 75 | # per feed switch ($name) { // Extract project base names and version numbers case "sourceforge": if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+([-_. ](rc|beta|alpha|dev)([-._]?\d[.\d]*)?)?).+?/download$~", urldecode($item->link), $m)) { $output .= "<a class=\"feed-$name\" href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n"; $i++; } break; // Extract project base names and version numbers case "distrowatch": | > > > > > > | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | # per feed switch ($name) { // Extract project base names and version numbers case "sourceforge": if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+([-_. ](rc|beta|alpha|dev)([-._]?\d[.\d]*)?)?).+?/download$~", urldecode($item->link), $m)) { if (in_array($m[1], $seen)) { continue; } else { $seen[] = $m[1]; } $output .= "<a class=\"feed-$name\" href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n"; $i++; } break; // Extract project base names and version numbers case "distrowatch": |
︙ | ︙ |