diff options
-rwxr-xr-x | bin/xgo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,8 +12,8 @@ for url ; do ( # If it's a YouTube video without a given start time, load it in mpv(1) case $url in - # If this is a GitHub link, swap "blob" for "raw" to get the actual file - *://github.com/*/blob/*) + # If this is a GitHub or GitLab link, swap "blob" for "raw" to get the actual file + *://github.com/*/blob/*|*://gitlab.com/*/blob/*) url=$(printf '%s\n' "$url" | sed 's_/blob/_/raw/_') ;; |