From ee5b204fea0314f9898db30ebba09255b68acbcd Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 30 Jan 2026 14:09:03 +0000 Subject: [PATCH] Lili Records v1.11 --- core/__pycache__/models.cpython-311.pyc | Bin 2128 -> 2277 bytes .../0002_station_metadata_api_url.py | 18 ++++++ ...2_station_metadata_api_url.cpython-311.pyc | Bin 0 -> 877 bytes core/models.py | 3 +- core/templates/core/index.html | 57 +++++++++++++++--- 5 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 core/migrations/0002_station_metadata_api_url.py create mode 100644 core/migrations/__pycache__/0002_station_metadata_api_url.cpython-311.pyc diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 99ee6cd6f7db47438e4b1e3287d4150e36cd026b..d6af818c9fe03823e0186e7b855fd532dd3fe4c1 100644 GIT binary patch delta 509 zcmca0@Klg*IWI340}$wLugT5!-vp8Y=6xKBylRvVE*0aDxI8(S%xYzKY>Ej0LSQQ^!73&)Q zWsE@kffxd!_)`R07@`DH1cMngg>JD2mn4>C=I6bfyqwX>x5~i30K`koQE&|KR0s|7 zQ7Fk*NJ}kA&QM4$EhRdu)+B|k7=5*=wh QIUhmdUl5WKlf^kK0W$t}9smFU delta 363 zcmaDVctL<~IWI340}xCJdtl9(+h@)8$&HQK!PBU!n%fS86yM3Y9NMyC{8AZ zROT!e7(azQg(HP?4c9Vepep9cJ*<-K+$pR;eLR!bu*%D`uHi+~&zHj2!Vtxu!XM0_ zDKPmkqYI}d<1N;toW#8B$stUUT(?;AN^^2F8H;!(Z)2Ju%?-4u805$Xh8z6CJ(U+Y zBtC=e_5*58WDb~om^qVi)nr{3i_P^cs~8!1Cu_0wF^W#!$(GKo2UJ$13nCOIYqJ|j zs(_ecAVLI0sKE%n$tCPd7}X|AawyA#1yL3L;;_lhPbtkwwJS289L=Gs!^tT5fdP}~ TNbAY@2onE-kQAG|hQks7oy$+C 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 0000000000000000000000000000000000000000..6a360dde9af14fa98296a2a2867c85a3b1e860c6 GIT binary patch literal 877 zcmZuvJ#W)M7{0R|$F@?bL`Zyfa0NnSsRI*3h13NEDy8B}CPW83tWcFHueLz766422I?81(&0c!LsQF3ddX3Tzl-UEn1YQ#7& z&q_F`pXG8Ti&#>WE$qjY8Y#{26Gla&-EQATK^*V^hoYYGQmj~vD8~eIjBpyDoQ2Qd zwV$Nw95{5>HXph#p02w*aknY=d#;}|Mq}=BhW&wCwYGFo+X`_!5O$A-DdKdO3nR|M zP-dLc3>4#t$~hHl+W`&9hLmZcavmY!ASCPZkV@P@XeY;^s#T28l*WX{en2y({1?_5 zA@|i9%qXdpSW@96DV<-!H!xG~9dCNQB%)rvmB&2y=q~kho-prC!UkE2ed;N5ynmPH zNt^DVxjU#jVP(!r`j(k;*)k}Qy^>*cItmlm%Z098G)L=&1MH=b&cwPlz2r_WT%R_V z_ildjz8d4Z{qasdZVrDnhm+>8s2jF(2xK@?q0r5yIeMf9yHahn(K3Wh`Z(?;D`cy5 zp*;JEn9HiHti3AHv9)?)gr_ELsIhY(7Eur&s^&cB7(fMx;ChdpPqc;iqd Kj{cJ^_x%g6$mufx literal 0 HcmV?d00001 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 @@
- +
@@ -53,10 +53,11 @@
Available Stations
{% for station in stations %} -