youtube-lbry: Allow for YouTube IDs starting with -.

This commit is contained in:
Ole Tange 2021-03-13 23:50:52 +01:00
parent 5d44c749f5
commit 162d6e0589

View file

@ -78,7 +78,7 @@ copy_one() {
tmp=$(mktemp -p "`pwd`" -d)
cd "$tmp"
# Get metadata in .json-format
youtube-dl --write-description --write-info-json --write-annotations "$youtubeurl"
youtube-dl --write-description --write-info-json --write-annotations -- "$youtubeurl"
# youtube-dl may download a .webm but convert it to mkv
# So we do not know the extension. Instead we use the newest