request from Flash - organize audio books

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

request from Flash - organize audio books

#1 Post by MU »

from:
http://www.murga-linux.com/puppy/viewto ... 9&start=15

Hey, Mark, since you're writing a filemanager anyway, could you include the ability to display a truncated tree view?
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...
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

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/viewto ... 757#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
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

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! :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

ok, received your folder.

Please install EmbeddedBookmarks 0.3.
http://www.murga-linux.com/puppy/viewto ... 882#303882

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

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

Code: Select all

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: Select all

#!/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".
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 :)

You also requested:
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
Attachments
audiobooks.jpg
(30.57 KiB) Downloaded 1018 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

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

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#6 Post by Aitch »

OOOH

Mark

I like the look of this :D

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 :)

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#7 Post by BarryK »

Already done. It's in pups 416/417.
Needs to be tested though.
[url]https://bkhome.org/news/[/url]

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#8 Post by Aitch »

Great, thanks

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

Aitch :)
Attachments
icon_pidu.gif
(7.35 KiB) Downloaded 1089 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

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?

Post Reply