feat: implement YouTube API integration for syncing releases with music productions, including new command and UI components

This commit is contained in:
Ümit Tunç
2026-05-20 22:39:20 +03:00
parent 751b9339f0
commit e9f737ab1d
11 changed files with 595 additions and 1 deletions
+11 -1
View File
@@ -21,6 +21,11 @@ class MusicProduction extends Model
'spotify_cover_url',
'spotify_type',
'spotify_synced_at',
'youtube_video_id',
'youtube_url',
'youtube_cover_url',
'youtube_description',
'youtube_synced_at',
'cover_image',
'content',
'client_name',
@@ -42,6 +47,7 @@ class MusicProduction extends Model
protected $casts = [
'production_date' => 'date',
'spotify_synced_at' => 'datetime',
'youtube_synced_at' => 'datetime',
'gallery' => 'array',
'is_active' => 'boolean',
'sort_order' => 'integer',
@@ -61,7 +67,11 @@ class MusicProduction extends Model
if ($this->spotify_cover_url) {
return $this->spotify_cover_url;
}
if ($this->youtube_cover_url) {
return $this->youtube_cover_url;
}
return null;
}