From 22eddd531ce9fdcf8265e92786fbd4a26dd83129 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Mon, 11 Apr 2022 00:35:16 +0200 Subject: [PATCH] Add more advanced filter to exclude livestreams --- download-music.py | 2 +- download-videos.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download-music.py b/download-music.py index dc9ba7f..abe8807 100644 --- a/download-music.py +++ b/download-music.py @@ -23,7 +23,7 @@ with open("linklist-music.yaml", "r") as yamlfile: --throttled-rate 100M --restrict-filenames --download-archive alreadydownloaded-music.txt - --match-filter "duration < 36000" + --match-filter "duration < 36000 & is_live = false" '{entry['url']}' """.replace('\n', " ") ) diff --git a/download-videos.py b/download-videos.py index 2049c5f..e011d3b 100644 --- a/download-videos.py +++ b/download-videos.py @@ -21,7 +21,7 @@ with open("linklist-videos.yaml", "r") as yamlfile: --throttled-rate 100M --restrict-filenames --download-archive alreadydownloaded-videos.txt - --match-filter "duration < 36000" + --match-filter "duration < 36000 & is_live = false" '{entry['url']}' """.replace('\n', " ") )