diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 99ee6cd..d6af818 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/migrations/0002_station_metadata_api_url.py b/core/migrations/0002_station_metadata_api_url.py new file mode 100644 index 0000000..a088bdd --- /dev/null +++ b/core/migrations/0002_station_metadata_api_url.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.7 on 2026-01-30 13:50 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='station', + name='metadata_api_url', + field=models.URLField(blank=True, help_text='Optional API URL to fetch current track metadata', null=True), + ), + ] diff --git a/core/migrations/__pycache__/0002_station_metadata_api_url.cpython-311.pyc b/core/migrations/__pycache__/0002_station_metadata_api_url.cpython-311.pyc new file mode 100644 index 0000000..6a360dd Binary files /dev/null and b/core/migrations/__pycache__/0002_station_metadata_api_url.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index a441a2d..1f2cdba 100644 --- a/core/models.py +++ b/core/models.py @@ -3,6 +3,7 @@ from django.db import models class Station(models.Model): name = models.CharField(max_length=100) stream_url = models.URLField(help_text="URL for the radio stream") + metadata_api_url = models.URLField(blank=True, null=True, help_text="Optional API URL to fetch current track metadata") description = models.TextField(blank=True) color = models.CharField(max_length=7, default="#FF007F", help_text="Hex color for the vinyl") image = models.FileField(upload_to="stations/", blank=True, null=True) @@ -19,4 +20,4 @@ class Track(models.Model): created_at = models.DateTimeField(auto_now_add=True) def __str__(self): - return f"{self.artist} - {self.title}" + return f"{self.artist} - {self.title}" \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index da7a7c3..4428370 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -34,7 +34,7 @@
- +