1
0
mirror of https://github.com/bspeice/Melodia synced 2025-07-06 00:14:44 -04:00

Test playlist importing, bugfixes for import

NOTE: This reverts songs to use the ID as PK - breaks IntegerListField
if not done this way.
This commit is contained in:
Bradlee Speice
2013-01-15 14:06:55 -05:00
parent 8125942901
commit d8b7453260
3 changed files with 53 additions and 7 deletions

View File

@ -47,7 +47,7 @@ class Song (models.Model):
bit_rate = models.IntegerField(default = _default_bit_rate)
duration = models.IntegerField(default = _default_bit_rate)
echonest_song_id = models.CharField(max_length = 64, default = _default_echonest_song_id)
url = models.CharField(max_length = 255, primary_key = True)
url = models.CharField(max_length = 255)
file_hash = melodia_settings.HASH_RESULT_DB_TYPE
def populate_metadata(self, use_echonest = False):