feat: implement YouTube API integration for syncing releases with music productions, including new command and UI components
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user