![]() Registered Member ![]()
|
Hi all!
Maybe I am missing something simple.. ?? How am I able to export my Collection? I would like to do so on the CommandLine off my MySql Base. I am not that familiar with MySQL yet. The problem is, amaroK uses plenty tables, hmm.. Anybody a short BashScript @ hand exporting Artist, Album, Title? thx!
Last edited by DocReedSolomon on Fri Sep 01, 2006 4:03 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
|
![]() Moderator ![]()
|
check http://kde-apps.org - someone may have written a script already to do this, or similar.
"There are two theories to arguing with women. Neither one works."
. If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss" |
![]() Registered Member ![]()
|
I already looked there, thanks. Also nothing at http://kde-files.org/ I just would like to share my Collection (List) with others. Maybe some kind of an Export function should be added to amaroK then? |
![]() Registered Member ![]()
|
You can try this script I wrote.
"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained." Frank Herbert, 'God Emperor Of Dune' |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
Works great! Could you please sort the Tracks as well?
Group / Album are sorted fine, but the Tracks look somehow unsorted.
Anyway, good job, really! and fast! Thx a lot. BTW: does also work using Python 2.4 ![]() |
![]() Registered Member ![]()
|
Fixed and uploaded.
Report back if you encounter any other problem, please.
"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained." Frank Herbert, 'God Emperor Of Dune' |
![]() Registered Member ![]()
|
Looks much better!
Well, i would leave out the word "Track" (could probably fix that myself). Additionally, a leading 0 would be fine.. just some Eye Candy you know. It would look more sorted to have 01 02 10 11 etc.. (Never came across any album with >99 Tracks). Also I would leave out the Length, I dont think that really matters? What do others think? Oh, and btw.. The Comment field would be nice (maybe optionally?). OTOH, I can live with that now as is. Really excellent work, highly appreciated, Thanks! Maybe you upload that one to KDE-APPS? I am sure others will like it too. |
![]() Registered Member ![]()
|
I'll look into fixing your suggestions either later today or tomorrow. Thatnks for the input.
I'll upload it to kde-apps then, too (just wanted someone to test it before I upload it there ![]()
"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained." Frank Herbert, 'God Emperor Of Dune' |
![]() Registered Member ![]()
|
Great - thanks! |
![]() Registered Member ![]()
|
I uploaded a new version with a few fixes to my page (mostly removed the "Track" and made sure it would print 01 instead of 1). I decided to make this a little easier to use than just using a bazillion command line switches and trow out a few QT dialogs and maybe even make it a proper amarok script, so it takes some extra time (mostly due to the fact that I don't know QT which will change ![]()
"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained." Frank Herbert, 'God Emperor Of Dune' |
![]() Registered Member ![]()
|
Thx, will try asap.
Hmm.. maybe you shouldn't name every version 0.1 ![]() Sometimes it is nice to step back a Version. Looks alright to me:
BTW: The CommandLineSwitches are OK, IMHO, specially for those who have more then one database? Actually I thought this is a feature ![]() Why drawing menus and whatnot, hmm.. personaly I like it the way it is, and i dont have to start KDE at all just to create a list. Comment Field would be nice, though ![]() Would be "done" for me then
Last edited by DocReedSolomon on Fri Sep 01, 2006 3:59 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
Just to give others an Overview about the speed:
And we are talking about 13.000+ Files Well, dont know about sqllite, this is mysql. @Jürgen: you could make the database name default to "amarok" if omitted, so this would be a parameter less on the Commandline for most users. uname and pw is OK, imho. On the contrary: While looking for an export tool I came across "playlist2html". This one comes with amaroK. It still was not finished after ONE HOUR so I simply gave up! I mean - hey, I have 1GB of RAM, 2.4Ghz CPU and SATA2. That python script was actually using 98% of my RAM - no **** Sherlock |
![]() Registered Member ![]()
|
maybe I'll keep the original script intact (meaning callable from commandline like this one) and just use the QT thingies to make things easier for those that don't like commandline. Right now it's just a nice thing to play with QT
![]()
"Governments can be useful to the governed only so long as inherent
tendencies toward tyranny are restrained." Frank Herbert, 'God Emperor Of Dune' |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]