Browse Source

Add support for YouTube /c/X URLs

master
JustAnotherArchivist 4 years ago
parent
commit
00107c0ef0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      website-extract-social-media

+ 1
- 1
website-extract-social-media View File

@@ -45,7 +45,7 @@ function fetch_n_extract {
) \
>(
# YouTube
grep -Poi '(youtube\.com/((user|channel|embed)/)?((?!&quot;)[^/ <"'"'"'])+|youtu\.be/((?!&quot;)[^/ <"'"'"'])+)' | \
grep -Poi '(youtube\.com/((user|channel|c|embed)/)?((?!&quot;)[^/ <"'"'"'])+|youtu\.be/((?!&quot;)[^/ <"'"'"'])+)' | \
awk '/^youtube/ { print "https://www." $0 } /^youtu\.be/ { print "https://" $0 }' | \
grep -vi -e '^https://www\.youtube\.com/vi$'
) \


Loading…
Cancel
Save