mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Removed AAX, causes issues with some audiobooks
This commit is contained in:
parent
ed084692a2
commit
0c2c439d55
17
AAXtoMP3
17
AAXtoMP3
@ -15,7 +15,8 @@ if ! [[ $(type -P "$GREP") ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
echo "Usage: bash AAXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}"
|
#echo "Usage: bash AXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}"
|
||||||
|
echo "Usage: bash AXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -26,12 +27,12 @@ then
|
|||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == '--aac' ]]
|
#if [[ "$1" == '--aac' ]]
|
||||||
then
|
#then
|
||||||
codec=copy
|
# codec=copy
|
||||||
extension=m4b
|
# extension=m4b
|
||||||
shift
|
# shift
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [[ "$1" == '--single' ]]
|
if [[ "$1" == '--single' ]]
|
||||||
then
|
then
|
||||||
@ -81,7 +82,7 @@ do
|
|||||||
save_metadata "${path}"
|
save_metadata "${path}"
|
||||||
genre=$(get_metadata_value genre)
|
genre=$(get_metadata_value genre)
|
||||||
artist=$(get_metadata_value artist)
|
artist=$(get_metadata_value artist)
|
||||||
title=$(get_metadata_value title) | sed -e 's/\:/-/g' | xargs -0
|
title=$(get_metadata_value title | sed 's/'\:'/'-\ '/g' | xargs -0)
|
||||||
output_directory="$(dirname "${path}")/${genre}/${artist}/${title}"
|
output_directory="$(dirname "${path}")/${genre}/${artist}/${title}"
|
||||||
mkdir -p "${output_directory}"
|
mkdir -p "${output_directory}"
|
||||||
full_file_path="${output_directory}/${title}.${extension}"
|
full_file_path="${output_directory}/${title}.${extension}"
|
||||||
|
@ -31,7 +31,7 @@ Thanks to kbabioch, this script has also been packaged in the [AUR](https://aur.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```
|
```
|
||||||
bash AAXtoMP3.sh [--flac] [--aac] [--single] AUTHCODE {FILES}
|
bash AAXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}
|
||||||
```
|
```
|
||||||
* AUTHCODE: **your** Audible auth code (it won't correctly decode otherwise) (required)
|
* AUTHCODE: **your** Audible auth code (it won't correctly decode otherwise) (required)
|
||||||
* Everything else is considered an input file, useful for batching!
|
* Everything else is considered an input file, useful for batching!
|
||||||
|
Loading…
Reference in New Issue
Block a user