From b563b42b65c6cce93c76dbb60726863686153893 Mon Sep 17 00:00:00 2001 From: orkit Date: Fri, 6 Sep 2024 14:41:59 +0200 Subject: [PATCH] Check and update structure of old format sources --- app/Services/Notify/PlayStoreNotify.php | 4 ++++ app/Services/Upload/Metadata.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/Services/Notify/PlayStoreNotify.php b/app/Services/Notify/PlayStoreNotify.php index e1870f03..6e4e3953 100644 --- a/app/Services/Notify/PlayStoreNotify.php +++ b/app/Services/Notify/PlayStoreNotify.php @@ -190,6 +190,10 @@ public function sendSuccess(string $type) public function sendFail(string $type) { + /*** + * Depricated + */ + // type: manual $this->presentation ->makeHidden('id') diff --git a/app/Services/Upload/Metadata.php b/app/Services/Upload/Metadata.php index 714a887b..457400b2 100644 --- a/app/Services/Upload/Metadata.php +++ b/app/Services/Upload/Metadata.php @@ -41,6 +41,11 @@ public function create(ManualPresentation $presentation) 'playAudio' => (bool)$stream->audio ]); + //Check and update the structure of old format sources + if(empty($stream->name)) { + $stream->name = 'main'; + } + $buildsource[$stream->name] = $build; }