Giter Club home page Giter Club logo

shazam-tags's People

Contributors

sn3p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

d3v-null sidneys

shazam-tags's Issues

Doesn't handle non-ascii characters.

When it tries to print a song where the artist name is RÜFÜS / u'R\xdcF\xdcS' , it gives this error

Traceback (most recent call last):
  File "/Users/derwent/.pyenv/versions/2.7.15/lib/python2.7/pdb.py", line 1314, in main
    pdb._runscript(mainpyfile)
  File "/Users/derwent/.pyenv/versions/2.7.15/lib/python2.7/pdb.py", line 1233, in _runscript
    self.run(statement)
  File "/Users/derwent/.pyenv/versions/2.7.15/lib/python2.7/bdb.py", line 400, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "shazam-tags.py", line 3, in <module>
    import os
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 1: ordinal not in range(128)
Uncaught exception. Entering post mortem debugging

I think sqlite is expecting all data to be encoded in utf-8, but since this string is encoded in latin-1 , it needs to be re-encoded

Shazam database has moved

Hey there, I found that the database no longer lives at ~/Library/Containers/com.shazam.mac.Shazam/Data/Documents/ShazamDataModel.sqlite. I found it at /Users/derwent/Library/Group Containers/4GWDBCF5A4.group.com.shazam/com.shazam.mac.Shazam/ShazamDataModel.sqlite instead.

I'm using version 2.10.0

Bonus: Shazam on iOS uses the same format

Confirmed I was able to load the file from /private/var/mobile/Containers/Shared/AppGroup/7C08F740-CC20-4501-B67C-B9AD17456131/shazam/ShazamDataModel.sqlite and get the tracks out.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.