Query() shouldn't be translated (or there should be a more parsable version)
Bug #796149 reported by
Wojtek Jurkowlaniec
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Wishlist
|
Mathias Brodala |
Bug Description
I was checking how dbus communication works in exaile. Everything is fine except for the Query() command.
In my opinion it shouldn't be translated.
If somebody wants to create program which gets the information about currently playing song, he has to deal also with translations.
so my suggestion, and very simple patch not to translate dbus information.
Related branches
Changed in exaile: | |
importance: | Undecided → Medium |
milestone: | none → 0.3.3.0 |
Changed in exaile: | |
milestone: | 0.3.3.0 → 0.3.3.1 |
Changed in exaile: | |
milestone: | 0.3.3.1 → 0.3.3.0 |
Changed in exaile: | |
importance: | Medium → Wishlist |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Query isn't really intended to be machine-parsable, its main reason for existence is to support the --query commandline option, which is intended to be human-readable and which should therefore be translated.
At present, using GetTrackAttr is the best way to get machine-suitable values. We've been discussing this in IRC a bit though and are considering adding some new method (GetTrackAttrs?) that would dump all the metadata about the current track to XML and return that over DBUS, which would both be faster (when using many tags, since you only need one round-trip) and would make it much easier for clients to support a greater variety of information and formattings. We could also then implement --query on the client side and deprecate the DBUS Query method, since it doesn't really make sense as part of the api exposed to other applications.