Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FFPROBE="/usr/bin/ffprobe"
- ROOT="."
- find "$ROOT" -type f -name "*.m4b" | while read -r file; do
- # Extract metadata
- AUTHOR=$($FFPROBE -v quiet -show_entries format_tags=composer -of default=nw=1:nk=1 "$file")
- SERIES=$($FFPROBE -v quiet -show_entries format_tags=SERIES -of default=nw=1:nk=1 "$file")
- TITLE=$($FFPROBE -v quiet -show_entries format_tags=album -of default=nw=1:nk=1 "$file")
- # Fallbacks
- [ -z "$AUTHOR" ] && AUTHOR="Unknown Author"
- # If SERIES tag missing, use original folder name
- if [ -z "$SERIES" ]; then
- SERIES="$(basename "$(dirname "$file")")"
- fi
- [ -z "$TITLE" ] && TITLE="$(basename "$file")"
- # Sanitize folder names (replace bad characters)
- sanitize() {
- echo "$1" | sed 's/[:]/ -/g'
- }
- AUTHOR=$(sanitize "$AUTHOR")
- SERIES=$(sanitize "$SERIES")
- TITLE=$(sanitize "$TITLE")
- DEST="$ROOT/$AUTHOR/$SERIES/$TITLE"
- mkdir -p "$DEST"
- echo "Moving:"
- echo " $file"
- echo "→ $DEST/"
- mv "$file" "$DEST/"
- done
- echo "Done."
Advertisement
Comments
-
- Thanks.
- Here is powershell version for windows https://pastebin.com/q4iVDxCP
- Works for ebups too using Calibre and I made some other minor changes.
- Sorry for posting here, but I don't have an account "there".
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=eaymezrlsv
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment