Explorar el Código

Add support for YouTube /c/X URLs

master
JustAnotherArchivist hace 4 años
padre
commit
00107c0ef0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      website-extract-social-media

+ 1
- 1
website-extract-social-media Ver fichero

@@ -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$'
) \


Cargando…
Cancelar
Guardar