Skip to content

Commit

Permalink
Revert to default sql-lite config values until rudimeier/bash_ini_par…
Browse files Browse the repository at this point in the history
…ser#2 is fixed.
  • Loading branch information
jcass77 committed Mar 10, 2015
1 parent bb7032b commit 52c0070
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 15 additions & 11 deletions filechanges/boot/config/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,22 @@ excluded_file_extensions = .html, .jpeg, .jpg, .log, .nfo, .png, .txt, .mkv, .av
[local-sqlite]
enabled = true

# NOTE: Handling of complex paramters (e.g. that contain spaces and do not contain '=') are not
# currently handled properly by read_ini.sh. Commented out this section in order to revert
# to using default values instead.
# (see https://github.com/rudimeier/bash_ini_parser/issues/2 for details
# top-level directories for browsing, as <name> <uri>
directories =
Albums local:directory?type=album
Artists local:directory?type=artist
Composers local:directory?type=artist&role=composer
Folders local:directory:
Genres local:directory?type=genre
Performers local:directory?type=artist&role=performer
Release Years local:directory?type=date&format=%25Y
Tracks local:directory?type=track
Last Week's Updates local:directory?max-age=604800
Last Month's Updates local:directory?max-age=2592000
#directories =
# Albums local:directory?type=album
# Artists local:directory?type=artist
# Composers local:directory?type=artist&role=composer
# Folders local:directory:
# Genres local:directory?type=genre
# Performers local:directory?type=artist&role=performer
# Release Years local:directory?type=date&format=%25Y
# Tracks local:directory?type=track
# Last Week's Updates local:directory?max-age=604800
# Last Month's Updates local:directory?max-age=2592000

# database connection timeout in seconds
timeout = 10
Expand Down
4 changes: 1 addition & 3 deletions filechanges/opt/musicbox/read_ini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ function read_ini()
fi

# Valid var/value line? (check for variable name and then '=')
# HACK: Handling of local-sqlite's 'directories' variables. Bypass lines ending in 'directory:'
# as if they are valid.
if ! [[ "${line}" =~ ^[[:print:]]+[[:space:]]*directory:|= ]]
if ! [[ "${line}" =~ ^[[:print:]]+[[:space:]]*= ]]
then
echo "Error: Invalid line:" >&2
echo " ${LINE_NUM}: '$line'" >&2
Expand Down

0 comments on commit 52c0070

Please sign in to comment.