You are not logged in.

#1 2012-05-30 13:25:04

th0th
Member
From: Turkey
Registered: 2011-03-19
Posts: 22

Harmony - music folder organizer

Hello guys,

I have written a python application that reads tags of mp3 files and organizes them copying/moving around. I wrote a PKGBUILD and put it on AUR*. It would be awesome if anybody tries and reports feedback. This is my first GUI application, I hope you guys like it.

AUR Link: https://aur.archlinux.org/packages.php?ID=59633
Website: http://code.returnfalse.net/app/harmony

Offline

#2 2012-05-30 15:21:00

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Harmony - music folder organizer

So, before I try this and disorganize my folder ( tongue), how exactly does this organize things? For example, what I do manually (and what I'd hope Harmony does!) is

$HOME/Music/<artist>/<album>/<track number><title>

Also, I think this is more suitable for Community Contributions


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#3 2012-05-30 15:37:42

th0th
Member
From: Turkey
Registered: 2011-03-19
Posts: 22

Re: Harmony - music folder organizer

Unia wrote:

So, before I try this and disorganize my folder ( tongue), how exactly does this organize things? For example, what I do manually (and what I'd hope Harmony does!) is

$HOME/Music/<artist>/<album>/<track number><title>

Also, I think this is more suitable for Community Contributions

Thanks for first reply! tongue

You can select the file mask (what i call mask is what you do manually smile ). There are some predefined masks in application and you can type your owns, too.

{artist}/{title}.mp3
{artist}/{album}/{title}.mp3

are some example masks.

Offline

#4 2012-05-30 15:47:37

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Harmony - music folder organizer

Hmmmm.... that does look interesting for the lazy ones amongst us tongue Will give it a whirl tonight!

EDIT: It segfaults when running it:

┌─[jente@lappy harmony][17:48:23] 
└─> harmony 
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:47: RuntimeWarning: You have imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail.  As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0
  warnings.warn(warn_msg, RuntimeWarning)
/usr/lib/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject

** (harmony:3680): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (harmony:3680): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (harmony:3680): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

(harmony:3680): Gtk-WARNING **: Unknown property: GtkWindow.valign

(harmony:3680): Gtk-WARNING **: Unknown property: GtkBox.margin-left

(harmony:3680): Gtk-WARNING **: Unknown property: GtkBox.margin-right

(harmony:3680): Gtk-WARNING **: Unknown property: GtkBox.margin-top

(harmony:3680): Gtk-WARNING **: Unknown property: GtkBox.margin-bottom
/usr/lib/python2.7/site-packages/gi/types.py:43: Warning: cannot create instance of abstract (non-instantiatable) type `GtkBox'
  return info.invoke(*args, **kwargs)
Segmentatiefout

Do I need GTK3?

EDIT2: Seems like I do. You should add this to the PKGBUILD.
Also, it starts minimized in the system tray. Can this be edited so it shows up? If I wouldn't have had the system-tray patch for DWM I wouldn't have been able to actually use it

Last edited by Unia (2012-05-30 15:51:52)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#5 2012-05-30 15:59:30

th0th
Member
From: Turkey
Registered: 2011-03-19
Posts: 22

Re: Harmony - music folder organizer

You are right, forgot to add GTK3 as dependency. I'll update PKGBUILD.

I also thought system tray might be an issue but couldn't guess what should be the default behavior. If there is no system tray displayed to user, closing window will hide the window and user won't be able to call the window again. Next version I will add some command line parameters i guess, making tray support optional.

Also, harmony-cli will land on next version, for users like you and me (i use xmonad as wm).

Offline

#6 2012-05-30 16:19:18

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Harmony - music folder organizer

th0th wrote:

You are right, forgot to add GTK3 as dependency. I'll update PKGBUILD.

I also thought system tray might be an issue but couldn't guess what should be the default behavior. If there is no system tray displayed to user, closing window will hide the window and user won't be able to call the window again. Next version I will add some command line parameters i guess, making tray support optional.

Also, harmony-cli will land on next version, for users like you and me (i use xmonad as wm).

That would be nice, yea. I just checked it out quickly, and it does look nice. I'll make a test run later.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB