Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Custom pattern for song structure filter #5

Open
kelvinlawson opened this issue Jun 27, 2011 · 1 comment
Open

New Feature: Custom pattern for song structure filter #5

kelvinlawson opened this issue Jun 27, 2011 · 1 comment

Comments

@kelvinlawson
Copy link
Owner

Moved from Sourceforge tracker:

I've got a zip archive with a structued KAR file in the following way:
language/artist/song.kar

The version 0.7.4 does not parse it properly. The quick fix for it is bellow:

--- pykdb.py.orig 2011-06-22 16:52:34.855172010 +0800
+++ pykdb.py 2011-06-22 16:54:11.872172004 +0800
@@ -213,6 +213,9 @@
self.Filepath += 'cdg'

    if ZipStoredName:
  •        ZipSplit = ZipStoredName.rpartition(".")[0]
    
  •        self.Title = ZipSplit.rpartition("/")[2]
    
  •        self.Artist = ZipSplit.rpartition("/")[0].rpartition("/")[2]
        self.DisplayFilename = os.path.basename(ZipStoredName)
        if isinstance(self.DisplayFilename, types.StringType):
            self.DisplayFilename = self.DisplayFilename.decode(settings.ZipfileCoding)
    

However, you might want to fix it properly which would require much more programming.

@kelvinlawson
Copy link
Owner Author

Original feature request at Sourceforge: http://sourceforge.net/tracker/?func=detail&atid=695884&aid=3324428&group_id=123242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant