Add import of Audioscrobbler files
Here we add a model for holding Audioscrobbler imports and some code to process the tab-separated files we get from Rockbox.
This commit is contained in:
@ -1,5 +1,13 @@
|
||||
from django import forms
|
||||
|
||||
from scrobbles.models import AudioScrobblerTSVImport
|
||||
|
||||
|
||||
class UploadAudioscrobblerFileForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = AudioScrobblerTSVImport
|
||||
fields = ('tsv_file',)
|
||||
|
||||
|
||||
class ScrobbleForm(forms.Form):
|
||||
item_id = forms.CharField(
|
||||
|
||||
Reference in New Issue
Block a user