Initial commit - SoundWave v1.0
- Full PWA support with offline capabilities - Comprehensive search across songs, playlists, and channels - Offline playlist manager with download tracking - Pre-built frontend for zero-build deployment - Docker-based deployment with docker compose - Material-UI dark theme interface - YouTube audio download and management - Multi-user authentication support
This commit is contained in:
commit
51679d1943
254 changed files with 37281 additions and 0 deletions
22
backend/download/serializers.py
Normal file
22
backend/download/serializers.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
"""Download serializers"""
|
||||
|
||||
from rest_framework import serializers
|
||||
from download.models import DownloadQueue
|
||||
|
||||
|
||||
class DownloadQueueSerializer(serializers.ModelSerializer):
|
||||
"""Download queue serializer"""
|
||||
|
||||
class Meta:
|
||||
model = DownloadQueue
|
||||
fields = '__all__'
|
||||
read_only_fields = ['added_date', 'started_date', 'completed_date']
|
||||
|
||||
|
||||
class AddToDownloadSerializer(serializers.Serializer):
|
||||
"""Add to download queue"""
|
||||
urls = serializers.ListField(
|
||||
child=serializers.URLField(),
|
||||
allow_empty=False
|
||||
)
|
||||
auto_start = serializers.BooleanField(default=False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue