diff options
author | Anton Schubert | 2020-05-07 23:42:45 +0200 |
---|---|---|
committer | Anton Schubert | 2020-05-07 23:42:45 +0200 |
commit | 2947bf6f6ca270f3381e890af6192c68b2443c7d (patch) | |
tree | e699024a68aa2598516ddcea2b60406641764627 /model | |
parent | 262496ad0805b47c878fb9db13573c4588c3a3a7 (diff) |
remove obsolete stereo flag
Diffstat (limited to 'model')
-rw-r--r-- | model/Room.php | 5 | ||||
-rw-r--r-- | model/Stream.php | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/model/Room.php b/model/Room.php index ad4d58d..b0f700a 100644 --- a/model/Room.php +++ b/model/Room.php @@ -373,7 +373,7 @@ class Room throw new NotFoundException('Selection '.$selection.' in Room '.$this->getSlug()); $translation_label = null; - if ($language !== 'native' && $language !== 'stereo') { + if ($language !== 'native') { if (! $this->hasTranslation()) { throw new NotFoundException('Translated Streams of Room '. $this->getSlug()); } @@ -389,9 +389,6 @@ class Room public function createStreamObject($selection, $language = 'native', $languageLabel = null) { - if($language == 'native' && $this->hasStereo()) - $language = 'stereo'; - return new Stream($this, $selection, $language, $languageLabel); } } diff --git a/model/Stream.php b/model/Stream.php index 5f803b6..0abfed2 100644 --- a/model/Stream.php +++ b/model/Stream.php @@ -33,8 +33,7 @@ class Stream public function isTranslated() { return !empty($this->getLanguage()) && - $this->getLanguage() !== 'native' && - $this->getLanguage() !== 'stereo'; + $this->getLanguage() !== 'native'; } public function getVideoSize() |