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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Third Party
| |-+  Other Utilities
| | |-+  dbm - On The Go Last.fm-like Playlists from Rockbox
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: dbm - On The Go Last.fm-like Playlists from Rockbox  (Read 20956 times)

Offline archivator

  • Member
  • *
  • Posts: 7
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #30 on: March 12, 2009, 02:00:13 PM »
You might find Mirage interesting.

It requires computing a unique ID that can be used to map the songs by similarity. It's excruciatingly slow as a Banshee plugin but it's a good (free) start. Perhaps we could rewrite that in C/C++?
Logged

Offline shayguitarra

  • Member
  • *
  • Posts: 27
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #31 on: March 19, 2009, 05:54:09 AM »
@Myrmornis

Hi, this program looks fantastic but I can't get it to work.

I think I'm doing everything right. I'm pointing it at my ipod but when I try to run it I get no output, just the prompt. I thought it may have been the size of my music collection so I set up a test folder with a small selection of artists (all tagged through picard) and the same thing happened.

I tried it against a folder on my hard drive, and while it told me it had output the playlists, when I go to check they are empty. It also completed the process in a matter of seconds.

Can you think of anything obvious I'm doing wrong? Or if you need more info let me know.
Logged

Offline evilnick

  • Rockbox Expert
  • Member
  • *
  • Posts: 431
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #32 on: March 19, 2009, 07:17:23 AM »
What format files are you using on your iPod?
Logged

Offline shayguitarra

  • Member
  • *
  • Posts: 27
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #33 on: March 19, 2009, 11:04:44 AM »
My ipod is a mixture of mp3 and ogg. I have flac, mp3 and ogg on my pc. I transcode the flac files to ogg before transferring them to the ipod. When I created my test folder I also made sure that all files had been tagged through picard to give the program a fairly easy test.
Logged

Offline Myrmornis

  • Member
  • *
  • Posts: 13
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #34 on: March 19, 2009, 11:19:03 AM »
@shayguitarra: Could you provide the exact command line you're using, and describe the contents of your test library? What operating system are you using? For testing, a single album by a single artist should be enough, i.e. a toy library like this:
Code: [Select]
library/sole_artist/sole_album/track1.ogg
library/sole_artist/sole_album/track2.ogg
...
Then
Code: [Select]
python dbm.py -i library -o output-directoryought to work.

I'm sorry that it's not producing any helpful error messages for you. I'm working on a new version at the moment that will be flexible about the way the library is organised, still try to work when musicbrainz tags are missing, deal with compilations / various artist albums better, support flac and mpc, have better error messages, ....
« Last Edit: March 19, 2009, 11:23:13 AM by Myrmornis »
Logged

Offline shayguitarra

  • Member
  • *
  • Posts: 27
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #35 on: March 19, 2009, 05:29:36 PM »
OK I posted a message here about 30 minutes ago and have deleted it. The problem was my own ineptitude in Ubuntu terminal.

I've run a test in a hard drive folder (my music library on my hard drive is broken down by artist initial so the selection wasn't great) and it's generated playlists in the random folder for each artist. Marvellous!

But when I ran it on my iPod I got the following:

sheamus@sheamus-desktop:~/dbm$ python dbm.py -i /media/"SHEAMUS'S I"/Media -o dbm-output-folder
dbm version 0.14
2009-03-19 21:21:33   reading contents of music library at /media/SHEAMUS'S I/Media
/AC_DC/High Voltage
/50FootWave/Golden Ocean
/The Uniques/Trojan Rocksteady Box Set (disc 1)
/L7/The Best of L7 The Slash Years
/MC5/Kick Out the Jams
Traceback (most recent call last):
  File "dbm.py", line 669, in <module>
    make_mdirs_and_tracks()
  File "dbm.py", line 78, in make_mdirs_and_tracks
    dirtracks = map(parse_mutagen_tags, map(readtags, dirpaths))
  File "dbm.py", line 454, in parse_mutagen_tags
    elif tags['format'] in 'flac':
TypeError: 'in <string>' requires string as left operand


And then it stops.

The selection of problem folders seems fairly random. There are over 1100 artist folders in total.


Logged

Offline Myrmornis

  • Member
  • *
  • Posts: 13
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #36 on: March 19, 2009, 06:10:45 PM »
@shayguitarra: Sorry, that was a bug. Not your fault at all. Should be fixed now. Could you re-download it and try again? (Make sure you clear your firefox cache so you really do re-download it... the new version number is 0.15). I think I must have accidentally uploaded a change that I was half-way through making -- it doesn't support flac yet.
Logged

Offline shayguitarra

  • Member
  • *
  • Posts: 27
Re: On The Go Last.fm-like Playlists from Rockbox
« Reply #37 on: March 27, 2009, 04:58:53 AM »
Has anyone seen this? It seems like it can create playlists from your own listening habits, tags etc.

http://www.last.fm/group/I+Use+Local.fm

How feasible would it be to create a version that acts like DBM does? That is, create these playlists from the music on your ipod or other media player?
Logged

  • Print
Pages: 1 2 [3]
« previous next »
+  Rockbox Technical Forums
|-+  Third Party
| |-+  Other Utilities
| | |-+  dbm - On The Go Last.fm-like Playlists from Rockbox
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.059 seconds with 22 queries.