Parcourir la source

Ignore /vi/* on YouTube (video thumbnails)

master
JustAnotherArchivist il y a 4 ans
Parent
révision
cd0b3f6214
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      website-extract-social-media

+ 2
- 1
website-extract-social-media Voir le fichier

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


Chargement…
Annuler
Enregistrer