FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

[linux-minidisc] [PATCH 09/14] Generate an extra group containing all tracks which are in no group.

<-- thread
<-- date
  • From: Vincent Pelletier <plr.vincent@gmail.com>
  • To: <linux-minidisc@lists.fu-berlin.de>
  • Date: Thu, 28 Jan 2010 08:14:50 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:in-reply-to:references:from:date:subject:to:mime-version :content-type:x-length:x-uid; b=HpBe9fGXhaBes48a6OLQbV/ym8jjjaNpSUDLkTC2dZgnVgt5NljHfsWvySQIWu4ynK nAJCllAS1BR/NitZY09vrJyAIWHG+4jAunNfRH7GWHCKVpL/4nxnqmFbwszl+5QSra/Y oYHi9+TZgsrr2nGzb7rLaEjbA0R8fMUIz1aW0=
  • Subject: [linux-minidisc] [PATCH 09/14] Generate an extra group containing all tracks which are in no group.

It has None as its title to make it stand out of regular groups.
---
 netmd/libnetmd.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/netmd/libnetmd.py b/netmd/libnetmd.py
index 5a9829e..883457b 100644
--- a/netmd/libnetmd.py
+++ b/netmd/libnetmd.py
@@ -700,6 +700,9 @@ class NetMDInterface(object):
                 track_dict[track] = group_name, group_index
                 track_append(track)
             append((group_name, track_list))
+        track_list = [x for x in xrange(track_count) if x not in track_dict]
+        if len(track_list):
+            append((None, track_list))
         return result
 
     def getTrackTitle(self, track, wchar=False):
<-- thread
<-- date
  • linux-minidisc - January 2010 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the linux-minidisc mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal