Commit Graph

14 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
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
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
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