Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  "Add To Playlist" patch
« previous next »
  • Print
Pages: 1 2 [3] 4 5 ... 10

Author Topic: "Add To Playlist" patch  (Read 67069 times)

Offline Assimalyst

  • Artist
  • Member
  • *
  • Posts: 355
  • Cluck
Re: "Add To Playlist" patch
« Reply #30 on: January 20, 2006, 09:47:18 AM »
Quote from: Shebb on January 20, 2006, 08:19:38 AM
Anyway, a nicely working patch should be done by this evening.

Looking forward to it! Thanks for all your time and effort!

As regards the playlist directory, i personally use this method, but still think it's a good idea to keep the current catalog method because it gives the user more freedom.

Thanks again.
Logged
Smack ma goblin!

Offline Shebb

  • Member
  • *
  • Posts: 42
Re: "Add To Playlist" patch
« Reply #31 on: January 21, 2006, 01:04:35 PM »
Anyway...  think I have nailed it now.  Took me a little longer than I thought because I decided to redo most things so the quality of coding is at least a little above my normal hacks.

Rough documentation:

- File context menu:
- - playlists
- - - Add playlist -> adds playlist to catalog if it is not there
- - - Remove playlist -> removes playlist from catalog if it is there
- - music, directories, playlists
- - - Add to playlist -> adds to the end of a playlist
- - - Add to new playlist -> can create a new playlist this way, or just access an existing one.  will add the playlist to the catalog afterwards if it is not present.

Main menu -> playlist options
- Catalog sort -> either priority or alphabetical
- Playlist catalog -> is also accessed when adding files to a playlist but then the context menu cannot be used and the selected list is just chosen rather than played
- - Buttons:
- - Select on main and remote -> plays the selected playlist
- - A-B/mode on main and remote -> changes the sorting
- - Hold select on main or play on remote -> enters context menu
- - - Play playlist
- - - View playlist
- - - Remove playlist -> removes it from catalog
- - - Delete playlist -> removes it then deletes the actual file
- - - Rename playlist -> renames actual playlist file

[attachment deleted by admin, too old]
Logged
Why is the dove the symbol of peace?  The pillow has just as many feathers but no nasty beak.

Offline Shebb

  • Member
  • *
  • Posts: 42
Re: "Add To Playlist" patch
« Reply #32 on: January 21, 2006, 01:06:04 PM »
These files also are needed. They are to be placed in the /apps folder.

[attachment deleted by admin, too old]
Logged
Why is the dove the symbol of peace?  The pillow has just as many feathers but no nasty beak.

Offline lenny

  • Member
  • *
  • Posts: 190
Re: "Add To Playlist" patch
« Reply #33 on: January 21, 2006, 02:34:44 PM »
great shebb. I hope it gets in cvs soon.

This is what I have to say. Take it or leave it.

1) the "add to new playlist" feature is great. perfect, infact.
2) I wish you hadn't taken out the ability to browse the playlists from the context menu. having to go into the main menu is a pain.
3) the alphabetical sort doesn't work as I'd expect. It seems to sort all uppercase letters before all lowercase letters. This is what it's doing:

X.m3u
Y.m3u
Z.m3u
a.m3u
b.m3u
c.m3u

dig?

EDIT: ignore that (# 3)...

that's all I have to say. this is fantastic, thanks again Shebb.
« Last Edit: January 21, 2006, 04:01:31 PM by lenny »
Logged

Offline amiconn

  • Developer
  • Member
  • *
  • Posts: 176
Re: "Add To Playlist" patch
« Reply #34 on: January 21, 2006, 03:46:39 PM »
Set 'Sort Case sensitive' to No.
Logged
Jens

Offline lenny

  • Member
  • *
  • Posts: 190
Re: "Add To Playlist" patch
« Reply #35 on: January 21, 2006, 04:00:50 PM »
thanks buddy
Logged

Offline Shebb

  • Member
  • *
  • Posts: 42
Re: "Add To Playlist" patch
« Reply #36 on: January 21, 2006, 04:32:05 PM »
Sorry about the case thing.  Silly of me.  Since all my playlists start with a capital I forgot the need for a case insensitive compare.  New file should correct all that.

I had to take the browse playlists function out of the context menu because it has nothing to do with the file selected.  As Linus said, create directory should also be moved from here.  If the playlist thing has enough appeal then a button could be assigned to it.

[attachment deleted by admin, too old]
Logged
Why is the dove the symbol of peace?  The pillow has just as many feathers but no nasty beak.

Offline lenny

  • Member
  • *
  • Posts: 190
Re: "Add To Playlist" patch
« Reply #37 on: January 21, 2006, 05:24:45 PM »
thanks shebb. I'll try it later. I wouldn't have noticed if I didn't have one playlist with a lowercase letter.

I don't quite understand why it had to come out of the context menu, but I'll take your word for it. the record button isn't doing anything... :p

but that gets me thinking that there could be a variety of functions for the record button and the user could select which one to asign it from the settings. makes sense to me anyway.
Logged

Offline Assimalyst

  • Artist
  • Member
  • *
  • Posts: 355
  • Cluck
Re: "Add To Playlist" patch
« Reply #38 on: January 22, 2006, 10:14:44 AM »
Great work Shebb, thanks a lot!

I agree with point 2 that lenny made, think it would be useful.

Quote from: lenny on January 21, 2006, 02:34:44 PM
2) I wish you hadn't taken out the ability to browse the playlists from the context menu. having to go into the main menu is a pain.

Also, an additional feature i think would be useful (though i've no idea how difficult it would be to implement), would be a quick scan of the playlist you're adding to, and only adding the file if it's path does not already exist in the playlist, so preventing duplicates. My memory is shocking and i can never remember what i've already added!

What do you think?

Thanks again for an excellent patch.

Logged
Smack ma goblin!

Offline Sweet Spot

  • Member
  • *
  • Posts: 105
    • Mistic RIver
Re: "Add To Playlist" patch
« Reply #39 on: January 22, 2006, 11:44:10 AM »
Linus, what do you think the likelyhood is,  of having this patch committed ? I think it's a real step up from the standard implamentation, and would make a fantastic edition to the code.

Doug
Logged

Offline Road Runner

  • Member
  • *
  • Posts: 73
Re: "Add To Playlist" patch
« Reply #40 on: January 23, 2006, 08:21:40 AM »
Like many other users, I think playlists are neglected way too much in rockbox :p
and would love to see it changed (currently patching btw)

I just had one question:

Shebb: what's your text editor program? Vim? Emacs? Pine?      .... WORD?!
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: "Add To Playlist" patch
« Reply #41 on: January 24, 2006, 01:36:00 AM »
I am reviewing your patch, and I must say that it is definitely a step in the right direction.

Comments:

- Several strings aren't localized (the error messages)
- When you add your first playlist to the catalog, you get an unnecessary error message "No catalog found"
- I want to move the "Playlist catalog" entry to the top main menu (the catalog browser)
- Perhaps it would be cleaner to use the gui_synclist API directly instead of the menu API
- When you play a playlist from the catalog browser, it doesn't take you to the WPS
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline kenshin

  • Member
  • *
  • Posts: 366
  • IRC Nick: kenshin
Re: "Add To Playlist" patch
« Reply #42 on: January 26, 2006, 04:52:53 PM »
I just loaded lenny's build this morning and found one problem with using this patch. Once you enter the context menu there is no way to "browse back". It seems like "browse back" triggers "exit menu" instead of "return to previous menu". For instance, go into "Playlist catalog" then try to go back one menu. Doesn't work. It goes back to the file browser instead.
Logged
kenshin/kawika/sithia

Offline kenshin

  • Member
  • *
  • Posts: 366
  • IRC Nick: kenshin
Re: "Add To Playlist" patch
« Reply #43 on: January 27, 2006, 02:50:18 PM »
Perhaps I'm alone in this but it seems that after loading lenny's build I have major problems playing tracks from a playlist (.m3u file). The tracks are all there, it tries to play them, but after about 3 or 4 tracks it just simply stops ("hangs") when it tries to load the next song. I see it buffering data from the disk but playback never starts. I can hit track foward followed by a track backward and it starts up playing just fine. Loading up a full directory works just fine. Is it possible I still have a jacked playlist file that's causing this breakage?
Logged
kenshin/kawika/sithia

Offline Assimalyst

  • Artist
  • Member
  • *
  • Posts: 355
  • Cluck
Re: "Add To Playlist" patch
« Reply #44 on: January 28, 2006, 09:00:09 AM »
It could be a problem with the codec loader, which has been fixed, but perhaps still exists in lennys build which is a few days old.

The probelm occurs whenever the codec changes, so if your first 4 tracks are MP3, they'll be fine, then the 5th is OGG, the WPS will display OK, but the playback remains at 0.00

Edit: If you want to PM me your email i'll send you my build, latest bleeding edge (060128-1456), has the codec loader fix in it plus A-B repeat etc. (file's too big to attach).

« Last Edit: January 28, 2006, 10:57:39 AM by Assimalyst »
Logged
Smack ma goblin!

  • Print
Pages: 1 2 [3] 4 5 ... 10
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  "Add To Playlist" patch
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.055 seconds with 15 queries.