summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2020-07-20 21:33:54 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2020-07-20 21:34:23 +0200
commitf60827a088145b54865b904bdcbce79b84ba67f1 (patch)
tree9192cdc1dc52c674dd913d89d476e9c223808ab5
parent0882cafb03dd9a5fc5ddbd9a4e0a5be2e092fca0 (diff)
downloadsoup-backup-master.tar
soup-backup-master.zip
Extend extract-videos with additional asset server patternHEADmaster
Reported-by: sofia
-rwxr-xr-xfetch-enclosures2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-enclosures b/fetch-enclosures
index 42d5084..37b98fb 100755
--- a/fetch-enclosures
+++ b/fetch-enclosures
@@ -36,7 +36,7 @@ extract-images () {
grep -A 1 '<div class="imagecontainer"' | sed -n -r '/<img / {s#^.*src="([^"]+)".*$#\1#;p}'
}
extract-videos () {
- grep -A 1 '<div class="embed"' | sed -n -r '/<video / {s#^.*src="(http://asset-.\.soupcdn\.com/[^"]+)".*$#\1#;p}' | grep '^http://asset-.\.soupcdn\.com/'
+ grep -A 1 '<div class="embed"' | sed -n -r '/<video / {s#^.*src="(https?://(asset-.\.soupcdn\.com|asset\.soup\.io)/[^"]+)".*$#\1#;p}' | grep -E '^https?://(asset-.\.soupcdn\.com|asset\.soup\.io)/'
}