Fix: Add missing backend/services module with SpotifyService and cache

This commit is contained in:
Khoa Vo 2026-01-01 17:34:13 +07:00
parent 1b141f57eb
commit e412888f68
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1 @@
# Services Package

View file

@ -0,0 +1,4 @@
# Cache Service - Re-export CacheManager from backend.cache_manager
from backend.cache_manager import CacheManager
__all__ = ['CacheManager']

View file

@ -0,0 +1,19 @@
# Spotify Service - Placeholder for YouTube Music API interactions
# Currently uses yt-dlp directly in routes.py
class SpotifyService:
"""
Placeholder service for Spotify/YouTube Music integration.
Currently, all music operations are handled directly in routes.py using yt-dlp.
This class exists to satisfy imports but has minimal functionality.
"""
def __init__(self):
pass
def search(self, query: str, limit: int = 20):
"""Search for music - placeholder"""
return []
def get_track(self, track_id: str):
"""Get track info - placeholder"""
return None