Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 03:01
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
request from Flash - organize audio books
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Mon 01 Jun 2009, 11:17    Post subject:  request from Flash - organize audio books  

from:
http://www.murga-linux.com/puppy/viewtopic.php?t=42979&start=15

Hey, Mark, since you're writing a filemanager anyway, could you include the ability to display a truncated tree view?

Quote:
I have a lot of mp3 audio books, and there is no good way to display them in any file manager. I'd like a tree view which shows all the authors, and beneath each author the folders containing the books that author wrote, but without showing the actual mp3 files in the tree view. There is a program called "tree" which can do what I want, but changing its font so that it is readable for me is difficult. I just thought that it might be a useful thing to include in a file manager the ability to show a truncated tree view.


Hi Flash,
ok, this will need some messages, so I start a new thread for it.
I could write a utility like the picturebrowser:
http://www.murga-linux.com/puppy/viewtopic.php?t=41919

Got a call, will be back later...

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 02 Jun 2009, 17:05    Post subject:  

Flash,

I'm a step further.

Please have a look at this program (you can use it without Puppybrowser)
http://www.murga-linux.com/puppy/viewtopic.php?p=311757#311757

EmbeddedBookmarks shows categories in a tree.
So you could add things like:

- author A
-- book a
-- book b

- author B
-- book a
-- book b
-- book c

Then when you click on a book, Rox-filer would be opened with the corresponding folder.

The tree in this case is not created dynamically from a folderstructure, but it is created from a configfile.

But this file is so simple, that it could be generated by a script, that scans your mp3 folder.

Let me know, if this would be ok for you, then I would write such a script.
It would be interesting to know, how your mp3 folder look like.

Please run this command:
cd /to-your-mp3folder
find . * > /root/MU.txt
gzip /root/MU.txt


Then send me /root/MU.txt.gz attached to a personal message.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11157
Location: Arizona USA

PostPosted: Wed 03 Jun 2009, 18:35    Post subject:  

OK, I'll try to get that done sometime this evening and report the results. (It's on a different computer from the one I use online.) Thanks! Smile
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 04 Jun 2009, 02:10    Post subject:  

ok, received your folder.

Please install EmbeddedBookmarks 0.3.
http://www.murga-linux.com/puppy/viewtopic.php?p=303882#303882

Then edit:
/usr/local/EmbeddedBookmarks/audiobook-example/generate-config

You must set here the path of the folder, that contains your books:

Code:
audiofolder=/usr/local/EmbeddedBookmarks/audiobook-example/examplefolder/audiobooks


Then run "audiobooks" from the "multimedia" menu in Puppy.
If you do not change the path, an example folder is used (it contains no mp3s, it just demonstrates how the folders are converted).
Then you should see a result as on the attached screenshot.

The "audiobooks" are started from a script:
/usr/local/EmbeddedBookmarks/audiobook

It looks like this:
Code:
#!/bin/bash


cd /usr/local/EmbeddedBookmarks

mkdir $HOME/.EmbeddedBookmarks 2>/dev/null

/usr/local/EmbeddedBookmarks/audiobook-example/generate-config

./EmbeddedBookmarks audiobooks.txt Books


So it first runs the "generate-config", the script, that converts folders to a configfile for the Tree.
Then it launches the tree. The options mean: the tree will use "audiobooks.txt" as configfile, and the default word "category" in the view is replaced with "Books".

Quote:
If a truncated (leaving out the files) tree view were available in a file manager that allowed me to drag folders from the tree view folder to my mp3 player ... well, that's too much to ask for.


The tree has no drag'n''drop yet, maybe I can add it next week, when I will be offline to visit my mother in northern germany Smile

You also requested:
Quote:
Author 1
Title 1
Title 2
Perhaps the Title 2 folder contains some folders
etc. ...

Author 2
Title 1
Title 2
etc. ...


"Perhaps the Title 2 folder contains some folders"
This is not possible with the current concept.
This would require a tree, that "really" browses folders like the Picturebrowser.
It will take longer, to enhance the picturebrowser, so that it can be used for this purpose.

Mark
audiobooks.jpg
 Description   
 Filesize   30.57 KB
 Viewed   860 Time(s)

audiobooks.jpg


_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 04 Jun 2009, 02:36    Post subject:  

I uploaded the pet again, with a small change:
the titles now are sorted alphabetically (the screenshot still shows the older, unsorted version).

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sun 19 Jul 2009, 13:06    Post subject:  

OOOH

Mark

I like the look of this Very Happy

Is there a pet for this alphabetical folder search/browser bookmarks thingie?

I just love the intuitive simplicity of alphabetic search

PLEASE..... can this feature be made mainstream, Barry!!

Aitch Smile
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7082
Location: Perth, Western Australia

PostPosted: Mon 20 Jul 2009, 02:09    Post subject:  

Already done. It's in pups 416/417.
Needs to be tested though.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Mon 20 Jul 2009, 14:30    Post subject:  

Great, thanks

Here's to your continued good health, and enthusiasm....

Aitch Smile
icon_pidu.gif
 Description   
 Filesize   7.35 KB
 Viewed   894 Time(s)

icon_pidu.gif

Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11157
Location: Arizona USA

PostPosted: Mon 20 Jul 2009, 20:06    Post subject:  

Maybe I missed something. As far as I could figure out, I still have to click each author individually to see what books are in that author's folder. How do I have it open all the author folders at once, the way Tree shows the library?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0719s ][ Queries: 13 (0.0062s) ][ GZIP on ]