Skip to content

Commit 8ef3d6b

Browse files
committed
master: final push
1 parent 0f059ab commit 8ef3d6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/models/Video/Quote.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ public function getYoutubeTimestampAttribute()
3939
$bits = explode(':', $this->timeStart);
4040
if (count($bits) == 3) {
4141
$seconds = ($bits[0] * 60 * 60) + ($bits[1] * 60) + $bits[2];
42-
} else {
42+
} else if (count($bits) == 2) {
4343
$seconds = ($bits[0] * 60) + $bits[1];
44+
} else {
45+
$seconds = $bits[0];
4446
}
4547

4648
return $seconds;
@@ -61,4 +63,4 @@ public function getLinkOnlyAttribute()
6163
/********************************************************************
6264
* Extra Methods
6365
*******************************************************************/
64-
}
66+
}

0 commit comments

Comments
 (0)