diff --git a/app/Models/ChapterLive.php b/app/Models/ChapterLive.php index 44f764fa..34c17d96 100644 --- a/app/Models/ChapterLive.php +++ b/app/Models/ChapterLive.php @@ -99,11 +99,15 @@ class ChapterLive extends Model public static function generateStreamName($id) { + if ($id == 'test') return $id; + return sprintf('chapter-%03d', $id); } public static function parseFromStreamName($streamName) { + if ($streamName == 'test') return $streamName; + return (int)str_replace('chapter-', '', $streamName); }