diff options
Diffstat (limited to '')
-rw-r--r-- | lib/helper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 5ae027b..6139a18 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -12,7 +12,9 @@ function link_room($room) function link_player($room, $format, $translated = false) { - return rawurlencode($room).'/'.rawurlencode($format).'/'.($translated ? 'translated/' : ''); + $isDefaultFormat = in_array($format, array('hq', 'video')); + + return rawurlencode($room).'/'.($isDefaultFormat ? '' : rawurlencode($format).'/').($translated ? 'translated/' : ''); } function baseurl() |