Summary: | [PATCH] 'stop playing after this song' for radio streams | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Dominik Karall <dominik.karall> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.3 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch that enables stop after song in streams... A minor bug there is, it shows OSD for next track, too, but I couldn't find very clean way to prevent that from happening... And it barely matters. |
Description
Dominik Karall
2005-08-19 08:34:06 UTC
Created attachment 18390 [details]
Patch that enables stop after song in streams... A minor bug there is, it shows OSD for next track, too, but I couldn't find very clean way to prevent that from happening... And it barely matters.
SVN commit 602384 by aoliveira: Stop after current works for streams. Patch by Tuomas Nurmi <tnurmi@edu.kauhajoki.fi> BUG: 111058 M +3 -2 playlist.cpp --- trunk/extragear/multimedia/amarok/src/playlist.cpp #602383:602384 @@ -2224,11 +2224,12 @@ { if ( m_currentTrack && !trackChanged ) { //if the track hasn't changed then this is a meta-data update - + if( stopAfterMode() == StopAfterCurrent ) + Playlist::instance()->playNextTrack( true ); //this is a hack, I repeat a hack! FIXME FIXME //we do it because often the stream title is from the pls file and is informative //we don't want to lose it when we get the meta data - if ( m_currentTrack->artist().isEmpty() ) { + else if ( m_currentTrack->artist().isEmpty() ) { QString comment = m_currentTrack->title(); m_currentTrack->copyFrom( bundle ); m_currentTrack->setComment( comment ); |