[Slim-Checkins] r10886 - in /trunk/server: Changelog6.html
Slim/Utils/Scanner.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Wed Dec 6 13:59:28 PST 2006
Author: andy
Date: Wed Dec 6 13:59:28 2006
New Revision: 10886
URL: http://svn.slimdevices.com?rev=10886&view=rev
Log:
Bug 4522, bypass scanning if in transcode mode with an MMS URL
Modified:
trunk/server/Changelog6.html
trunk/server/Slim/Utils/Scanner.pm
Modified: trunk/server/Changelog6.html
URL: http://svn.slimdevices.com/trunk/server/Changelog6.html?rev=10886&r1=10885&r2=10886&view=diff
==============================================================================
--- trunk/server/Changelog6.html (original)
+++ trunk/server/Changelog6.html Wed Dec 6 13:59:28 2006
@@ -123,6 +123,7 @@
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4533">#4533</a> - snow screensaver overlapped by VU meter, briefly</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4549">#4549</a> - dirsFor HTML returns html wrongly for OS</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4550">#4550</a> - titles command find playlists & playlists search broken</li>
+ <li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4522">#4522</a> - MMS-only streams don't work even with wmadec</li>
</ul>
</ul>
Modified: trunk/server/Slim/Utils/Scanner.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Utils/Scanner.pm?rev=10886&r1=10885&r2=10886&view=diff
==============================================================================
--- trunk/server/Slim/Utils/Scanner.pm (original)
+++ trunk/server/Slim/Utils/Scanner.pm Wed Dec 6 13:59:28 2006
@@ -402,6 +402,31 @@
return $cb->( $foundItems, @{$pt} );
}
+
+ # Bug 4522, if user has disabled native WMA decoding to get MMS support, don't scan MMS URLs
+ if ( $url =~ /^mms/i ) {
+
+ my ($command, $type, $format) = Slim::Player::TranscodingHelper::getConvertCommand(
+ $args->{'client'},
+ $url,
+ 'wma',
+ );
+
+ if ( defined $command && $command ne '-' ) {
+
+ $log->debug('Not scanning MMS URL because transcoding is enabled.');
+
+ my $track = Slim::Schema->rs('Track')->updateOrCreate({
+ 'url' => $url,
+ });
+
+ $track->content_type( 'wma' );
+
+ push @{$foundItems}, $track;
+
+ return $cb->( $foundItems, @{$pt} );
+ }
+ }
my $originalURL = $url;
More information about the checkins
mailing list