Commit Graph

29 Commits

Author SHA1 Message Date
KrumpetPirate
a8bddf3df1 Added .authcode support and fixed README 2017-01-05 18:29:37 -06:00
Victor Engmark
aa93813892 Various tweaks (#16)
* Use lower case variable names

* Extract debug print method

* Split lines

* Simplify looping over parameters

* Use a temporary working directory for safety

* Extract metadata fetching into functions

* Don't replace colon in title

It's in the directory structure anyway.

* Use long ffmpeg options where possible

And use the same options everywhere.

* Don't print debug information during normal script run

* Always read into a dummy variable rather than REPLY

* Use `ffprobe` instead of `ffmpeg` to avoid non-zero exit code

* Handle special characters like single quotes in metadata values

* Stop the program if any errors occur

* Use FD 9 for `while` loop input

* Pass AAX file path to metadata extract command

* Avoid skipping every second file

* Don't check for `ffmpeg`

The script will exit if it's not available.

* Declare function variables local

* Fix whitespace handling

Works with filenames containing single quotes.

* Use variables for reused paths

* Put files in output directory immediately

* Clarify debug output

* Extract codec and extension for simple change

* Encode audiobooks as FLAC

* Put output files with input files

* Remove metadata file between files

* Default codec to MP3; enable FLAC using `--flac`
2017-01-05 17:56:32 -06:00
KrumpetPirate
72c949359b Merge pull request #14 from danielhoherd/master
General cleanup
2016-12-15 23:40:18 -06:00
Daniel Hoherd
30b71ba73c Trap ctrl-c and exit 0 2016-12-15 21:03:51 -08:00
Daniel Hoherd
f5c09d7270 read -r, trap and cleanup 2016-12-15 20:54:53 -08:00
Daniel Hoherd
69c1c2e77e Check for ffmpeg. xargs echo. date on status updates. 2016-12-15 20:25:27 -08:00
Daniel Hoherd
c1e1830eb9 Safety quotes, consistent variable braces. 2016-12-15 19:54:19 -08:00
KrumpetPirate
ce2a341ebb Fixed : in Title causing protocol error 2016-08-10 23:48:13 -05:00
KrumpetPirate
ad6a2cd746 Merge pull request #12 from pbowyer/master
Fix for titles with single quotes breaking script
2016-07-17 11:12:37 -05:00
Peter Bowyer
13f756ffb4 Fix for titles with single quotes breaking script
This patch fixes #11 and prevents the following error, which happens when a title contains a single quote (e.g. this `tmp.txt` file: https://gist.github.com/pbowyer/7b7d2181da42c4de1d4f947247a47178):
```
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
```
2016-07-17 16:58:46 +01:00
KrumpetPirate
17895e4663 Merge pull request #9 from iltempo/cover
Extracting cover art at end of script
2016-07-13 07:43:31 -05:00
KrumpetPirate
21e4b5f919 Merge pull request #8 from iltempo/sed
sed -r to sed -e for portability
2016-07-13 07:42:07 -05:00
KrumpetPirate
16b6bac6c0 Merge pull request #7 from iltempo/bash
env bash location
2016-07-13 07:40:45 -05:00
Alexander Greim
2774675e5b Extracting cover art 2016-07-13 11:58:43 +02:00
Alexander Greim
a276e8d731 Don't use -r switch on sed as it's not portable 2016-07-13 11:28:36 +02:00
Alexander Greim
d7f997376c Comply with bash being installed in a different path 2016-07-13 11:25:43 +02:00
KrumpetPirate
9d28be4f06 Added support for chapters as well as convert to bash script 2016-03-30 21:48:35 -05:00
KrumpetPirate
c387b1e03b Fixed README 2015-12-18 13:11:39 -06:00
KrumpetPirate
d8b3888600 Merge branch 'development' 2015-12-18 13:08:32 -06:00
KrumpetPirate
1ca0cd08fd Updated README to remove chapters support 2015-12-18 13:07:59 -06:00
KrumpetPirate
3a38567eea Merge branch 'development' 2015-12-18 13:06:25 -06:00
KrumpetPirate
9f8af5932f Removed chapters functionality and fixed automatic titles 2015-12-18 13:04:23 -06:00
KrumpetPirate
9eeef9de04 Merge branch 'development'
Added libmp3lame to requirements
2015-12-13 17:07:38 -06:00
KrumpetPirate
6687a49104 Made changes to README to include libmp3lame 2015-12-13 17:06:54 -06:00
KrumpetPirate
e0c49a1f68 Merge pull request #1 from KrumpetPirate/development
Development
2015-12-13 16:52:36 -06:00
KrumpetPirate
325ea95ebb Version 1.0 2015-12-13 16:48:30 -06:00
KrumpetPirate
ed281c6336 Initial commit for AAXtoMP3.py script for conversion. 2015-12-13 01:20:05 -06:00
KrumpetPirate
aabc5071b9 Initial Commit 2015-12-13 00:12:37 -06:00
KrumpetPirate
14fef78f64 Initial commit 2015-12-12 23:44:34 -06:00