line |
true |
false |
branch |
167
|
0 |
1 |
if ($$options{'optionfile'}) |
175
|
0 |
1 |
if ($self->options->{'lastfm_client_id'} eq 'tst') |
178
|
0 |
1 |
if ($self->options('mpd_server') =~ /^(.*)@(.*)/) |
187
|
1 |
0 |
unless ($self->options('lastfm_md5password')) |
188
|
1 |
0 |
if ($self->options('lastfm_password')) |
207
|
0 |
0 |
if ($self->is_connected) { } |
215
|
0 |
0 |
unless ($$self{'scrobble_ok'}) |
216
|
0 |
0 |
if (time - $$self{'lastscrobbled'} > 600) |
328
|
10 |
1 |
if (exists $$self{'_options'}) { } |
350
|
0 |
0 |
if ($new) |
353
|
0 |
0 |
unless (exists $$self{'mpdsock'}) |
367
|
0 |
0 |
if ($self->mpdsock and $self->is_connected) |
379
|
0 |
0 |
unless ($self->mpdsock and $self->mpdsock->connected) |
384
|
0 |
0 |
if ($self->mpdsock->getline =~ /^OK MPD (.+)$/) { } |
391
|
0 |
0 |
if $self->options('mpd_password') |
403
|
0 |
0 |
if ($self->mpdsock and $self->mpdsock->connected) |
419
|
0 |
0 |
if ($self->mpdsock and $self->mpdsock->connected) |
424
|
0 |
0 |
if ($line =~ /^ACK \[(\d+)\@(\d+)\] {(.*)} (.+)$/) |
432
|
0 |
0 |
if $line =~ /^OK/ |
449
|
0 |
0 |
if ($self->is_connected) |
477
|
0 |
0 |
if (/^(.[^:]+):\s(.+)$/) |
541
|
0 |
0 |
if ($level <= $self->options->{'verbose'}) |
556
|
0 |
0 |
if ($fh) |
559
|
0 |
0 |
if (not $self->options->{'logfile'} or $self->options->{'logfile'} eq 'STDERR') { } |
|
0 |
0 |
elsif ($self->options->{'logfile'} eq 'STDOUT') { } |
565
|
0 |
0 |
unless (exists $$self{'logfile'} and $$self{'logfile'}) |
567
|
0 |
0 |
unless ($fh) |
587
|
0 |
0 |
if ($new) |
590
|
0 |
0 |
unless (exists $$self{'mas'} and ref $$self{'mas'}) |
607
|
0 |
0 |
if ($$self{'current_song'} =~ /^http/i) { } |
|
0 |
0 |
elsif (-e 'File::Spec'->rel2abs($$self{'current_song'}, $self->options->{'music_directory'})) { } |
608
|
0 |
0 |
if ($self->options('allow_stream')) { } |
628
|
0 |
0 |
if ($self->options->{'musictag'}) |
642
|
0 |
0 |
$$self{'current_file'} ? : |
654
|
0 |
0 |
if (defined $$self{'current_file'} and $$self{'running_time'} >= 240 || $$self{'running_time'} >= $$self{'song_duration'} / 2 and $$self{'song_duration'} >= 30 || $$self{'info'}{'mbid'}) { } |
669
|
0 |
0 |
if (defined $$self{'current_file'} and $$cinfo{'Time'} and $state eq 'play') { } |
694
|
0 |
0 |
if ($$status{'time'}) |
698
|
0 |
0 |
if ($$self{'state'} eq 'play') { } |
|
0 |
0 |
elsif ($$self{'state'} eq 'stop' and $$self{'running_time'}) { } |
699
|
0 |
0 |
unless ($$cinfo{'Id'} eq $$self{'current_id'}) |
702
|
0 |
0 |
unless (defined $$self{'last_running_time'}) |
705
|
0 |
0 |
unless (defined $$self{'last_update_time'}) |
713
|
0 |
0 |
if ($run_since_update > 0 and $run_since_update <= $time_since_update) { } |
|
0 |
0 |
elsif ($run_since_update < -240 or $run_since_update < -1 * ($$self{'song_duration'} / 2)) { } |
|
0 |
0 |
elsif ($run_since_update) { } |
733
|
0 |
0 |
if ($self->options->{'monitor'}) |
747
|
0 |
0 |
$$self{'state'} ? : |
|
0 |
0 |
$$self{'current_id'} ? : |
|
0 |
0 |
$$self{'running_time'} ? : |
760
|
0 |
0 |
if (defined $$self{'current_file'}) { } |
780
|
0 |
0 |
unless ref $commands and scalar @{$commands;} |
782
|
0 |
0 |
if ($pid) { } |
|
0 |
0 |
elsif (defined $pid) { } |
787
|
0 |
0 |
if ($self->options->{'logfile'}) |
807
|
0 |
0 |
if ($s) { } |
824
|
0 |
0 |
unless (exists $$self{'reapme'}) |
832
|
0 |
0 |
if (exists $$self{'reapme'}) |
835
|
0 |
0 |
unless waitpid $_, 1 |
837
|
0 |
0 |
if (@newreap) { } |