slartibartfast wrote: 
> It still appears to be converting FLAC to MP3 with the conversion turned
> off.

Yup, the reading of this flag is broken. Will release an update in a
bit. For now you could edit Plugin.pm and change (from line 344) from:


Code:
--------------------
    
  sub _convertToMip {
  my $path = shift;
  my $mipPath = shift;
  my $lmsPath = shift;
  my $convertExt = shift;
  my $fixed = $path;
  
  if ($convertExt) {
  my @parts = split(/#/, $path);
  if (2==scalar(@parts)) {
  $fixed = $parts[0] . ".CUE_TRACK." . $parts[1] . ".mp3";
  }
  if (!main::ISWINDOWS && !main::ISMAC) {
  if (! ('.mp3' eq substr $fixed, -length('.mp3'))) {
  $fixed = $fixed . ".mp3";
  }
  }
  }
  if ($mipPath) {
  $fixed =~ s/$lmsPath/$mipPath/g;
  }
  
  if ($convertExt || $mipPath) {
  main::DEBUGLOG && $log->debug("TO MIP: " . $path . " -> " . $fixed);
  }
  return $fixed;
  }
  
  sub _convertFromMip {
  my $path = shift;
  my $mipPath = shift;
  my $lmsPath = shift;
  my $fixed = $path;
  my $convertExt = shift;
  
  if ($convertExt) {
  my @parts = split(/\.CUE_TRACK\./, $path);
  if (2==scalar(@parts)) {
  my $end = substr $parts[1], 0, -4; # Remove .mp3 ext
  $fixed = $parts[0] . "#" . $end;
  }
  if (!main::ISWINDOWS && !main::ISMAC) {
  if ('.m4a.mp3' eq substr $fixed, -length('.m4a.mp3')) {
  $fixed = substr $fixed, 0, -4;
  } elsif ('.ogg.mp3' eq substr $fixed, -length('.ogg.mp3')) {
  $fixed = substr $fixed, 0, -4;
  } elsif ('.flac.mp3' eq substr $fixed, -length('.flac.mp3')) {
  $fixed = substr $fixed, 0, -4;
  }
  }
  }
  if ($mipPath) {
  $fixed =~ s/$mipPath/$lmsPath/g;
  }
  
  if ($convertExt || $mipPath) {
  main::DEBUGLOG && $log->debug("FROM MIP: " . $path . " -> " . $fixed);
  }
  return $fixed;
  }
  
--------------------


to 


Code:
--------------------
    
  sub _convertToMip {
  my $path = shift;
  my $mipPath = shift;
  my $lmsPath = shift;
  my $convertExt = shift;
  my $fixed = $path;
  
  return $fixed;
  }
  
  sub _convertFromMip {
  my $path = shift;
  my $mipPath = shift;
  my $lmsPath = shift;
  my $fixed = $path;
  my $convertExt = shift;
  
  return $fixed;
  }
  
--------------------


This will disable all path conversions.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
2. Open browser's developer tools 3. Open console tab in developer tools
4. REQ/RESP messages sent to/from LMS will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=112714

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to