After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666413 - Banshee does not allow me to define more advanced AND and OR conditions for its smart playlists
Banshee does not allow me to define more advanced AND and OR conditions for i...
Status: RESOLVED DUPLICATE of bug 571105
Product: banshee
Classification: Other
Component: Smart Playlists
unspecified
Other All
: Normal trivial
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-17 18:34 UTC by alexander255
Modified: 2011-12-17 18:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description alexander255 2011-12-17 18:34:34 UTC
When editing a smart playlist one can only choose between "all" (AND) and "any" (OR) for the types of matching condition relations. It would be nice to be able to add more advanced algorithms for matching.

Example (what I tried to do):
.."Genre" is "Rock"
AND
...."Rating" is 0 (unrated)
..OR
...."Rating" is at least 2

When I realized that the smart playlist interface wouldn't let me do this I tried modifying banshee's database (banshee.db) directly. So I entered (in compliance of how the other smart playlist entries where written...) the following in the "CoreSmartPlaylists" "Conditions" colom as a one-liner:
<request>
	<query bashee-version="1">
		<and>
			<equals>
				<field name="genre" />
				<string>Rock</string>
			</equals>
			
			<or>
				<equals>
					<field name="rating" />
					<int>0</int>
				</equals>
				
				<greaterThanEquals>
					<field name="rating" />
					<int>2</int>
				</greaterThanEquals>
			</or>
		</and>
	</query>
</request>

When I started banshee afterwards I selected the playlist and banshee showed me all entries form my library instead of just the expected results... :( Also everything was reset in the playlist settings dialog. (No surprise there...)

Conclusion: Please add at least the possibility to add more advanced matching algorithms in database and maybe (on day) also to the interface...
Comment 1 Andrés G. Aragoneses (IRC: knocte) 2011-12-17 18:57:43 UTC
You can already do this if you know SQL and the XML format of playlists, as explained in bug 571105 comment 10.

Still, it would be nice if there was a way to do it via Banshee's UI, which is actually what is requested in bug 571105, so I'm going to mark this as a duplicate.

Feel free to reopen the bug if you think they are not duplicates.

*** This bug has been marked as a duplicate of bug 571105 ***