X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=bin%2Fmpd-feeder;h=95227e9c6dbfd2934a9372d838fafe638233ce55;hb=099f323a72ce907c8f0183f5f924218762d35346;hp=6cc9c196dcf02d7cee1488e367251237cef97139;hpb=7cef318a488aea4d245725b4c47c4474a306aaae;p=mpd-feeder.git diff --git a/bin/mpd-feeder b/bin/mpd-feeder index 6cc9c19..95227e9 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -159,7 +159,8 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf'; method connect_db { return if $db; - $db = DBI->connect( "dbi:" . $opt->db_path, + $db = + DBI->connect( "dbi:Pg:dbname=" . $opt->db_path, $opt->db_user, $opt->db_password, { RaiseError => 1, AutoCommit => 1 } );