mediasnacks 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/dlaudio.sh DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
-
3
- yt-dlp -o '%(title)s.%(ext)s' \
4
- -f 'bestaudio[ext=m4a]/bestaudio' "$1"
package/src/dlvideo.sh DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
-
3
- yt-dlp -o '%(title)s.%(ext)s' \
4
- -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' "$1"
package/src/png.sh DELETED
@@ -1,20 +0,0 @@
1
- #!/bin/sh
2
-
3
- help() {
4
- /bin/cat << EOF
5
- SYNOPSIS
6
- mediasnacks png <img1> [img2 ...]
7
-
8
- DESCRIPTION
9
- Losslessly optimizes PNG images with oxipng at max level.
10
-
11
- EXAMPLE
12
- mediasnacks png *.png
13
- EOF
14
- exit "${1:-0}"
15
- }
16
-
17
- [ "$1" = "-h" ] && help
18
- [ $# -eq 0 ] && help 1
19
-
20
- oxipng --opt max "$@"
package/src/unemoji.sh DELETED
@@ -1,30 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Removes emoji's from filenames on the current working directory.
4
- # Does not overwrite files.
5
-
6
- find . -depth | while IFS= read -r file; do
7
- dir=$(dirname "$file")
8
- base=$(basename "$file")
9
-
10
- # Remove Emojis
11
- newbase=$(printf '%s' "$base" | perl -CSD -pe '
12
- s/[\x{1F600}-\x{1F64F}]//g; # Emoticons
13
- s/[\x{1F300}-\x{1F5FF}]//g; # Misc Symbols and Pictographs
14
- s/[\x{1F680}-\x{1F6FF}]//g; # Transport and Map
15
- s/[\x{2600}-\x{26FF}]//g; # Misc symbols
16
- s/[\x{2700}-\x{27BF}]//g; # Dingbats
17
- s/[\x{1F900}-\x{1F9FF}]//g; # Supplemental Symbols and Pictographs
18
- s/[\x{1FA70}-\x{1FAFF}]//g; # Symbols and Pictographs Extended-A
19
- s/[\x{1F1E6}-\x{1F1FF}]//g; # Regional Indicator Symbols
20
- ')
21
-
22
- # Normalize to Unicode NFKC
23
- newbase=$(printf '%s' "$newbase" | perl -CSD -MUnicode::Normalize -pe '$_ = NFKC($_)')
24
-
25
- if [ "$base" != "$newbase" ]; then
26
- newpath="$dir/$newbase"
27
- echo "Renaming: $file -> $newpath"
28
- mv -n "$file" "$newpath"
29
- fi
30
- done