commit a544924d0e8284cbf26882b468252868a05968dd
parent 4e4646f2eed1118894f8ee0e4fddfeca1ec3adb2
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 30 May 2026 21:18:37 +0200
feat: remove all shorts from the feed
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/index.php b/index.php
@@ -158,6 +158,12 @@ if (!empty($channel) && $auth) {
// Add media items
foreach ($channel_xml["entry"] as $entry) {
+ // Skip entry if it is a short
+ $uri = $entry["link"]["@attributes"]["href"];
+ if (preg_match('/\/shorts\/', $uri) > 0) {
+ continue;
+ }
+
// Skip if title matches "exclude"
if (!is_null($_GET["exclude"])) {
$excluded = strstr($entry["title"], rawurldecode($_GET["exclude"]));