Merge lp://staging/~lottanzb/lottanzb/download-properties into lp://staging/lottanzb
Proposed by
Marcel de Vries
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~lottanzb/lottanzb/download-properties |
Merge into: | lp://staging/lottanzb |
Diff against target: |
1011 lines (+837/-20) 8 files modified
data/ui/main_window.ui (+25/-2) data/ui/properties_dialog.ui (+500/-0) lottanzb/backend/hubs/general.py (+33/-2) lottanzb/backend/interface/queries.py (+1/-0) lottanzb/core/constants.py (+20/-1) lottanzb/gui/download_properties.py (+213/-0) lottanzb/gui/main.py (+26/-15) lottanzb/util/misc.py (+19/-0) |
To merge this branch: | bzr merge lp://staging/~lottanzb/lottanzb/download-properties |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
LottaNZB Development Team | Pending | ||
Review via email: mp+19126@code.staging.launchpad.net |
To post a comment you must log in.
Gave it a try and it works without a hitch. Great work! It looks like you've also added some useful methods to the backend. hubs.general module.
Some random comments:
- GtkAction "show_propertie s_dialog" should be translatable (it's probably Glade's fault). to_pretty_ string. We'll probably need them elsewhere too.
- Priority strings should also be translatable ("Force", etc.).
- Priority strings could be moved to lottanzb.constants, similar to DownloadStatus.
- gobject.TYPE_STRING can be replaced by a simple str.
- Many if blocks in the update method are nearly identical. It might be possible to use some fancy for loop there.
- What about displaying "unknown" if ETA is None (None won't be translated anyway)?
- TimeDelta objects (duration) have a property "short" that produces a (more or less) pretty string representation.
- "Downloaded:" field could be streamlined a bit when the download is complete. Currently, it's set to something like "1.19 GiB / 1.19 GiB (100%)". Call it "Size:" instead for completed downloads? Not sure about that.
- "Storage path:" field can be quite long and bloat the window. Not sure how to tackle that. When connected to a local instance of SABnzbd, it would be desirable to provide a button that directly opens the storage path.