pub / yt2rss

Transforms a youtube channel into a podcast RSS feed to insert into a podcatcher
git clone https://src.jayvii.de/pub/yt2rss.git
Home | Log | Files | Exports | Refs | Submodules | README | LICENSE | RSS

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:
Mindex.php | 6++++++
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"]));