diff --git a/js/youtube.js b/js/youtube.js
index 20516d76..084438c4 100755
--- a/js/youtube.js
+++ b/js/youtube.js
@@ -111,6 +111,17 @@ function onPlayerStateChange(newState) {
console.log("new state: "+newState.data);
console.log("beginning: "+beginning);
//ytplayer.seekTo(15);
+ if(newState.data === 0)
+ {
+ quickFixCountdown = setTimeout(function(){
+ console.log("trying quickfix");
+ if(ytplayer.getPlayerState() === 0 && wasPaused){
+ console.log("quickfixPlay");
+ startNextSong();
+ wasPaused = false;
+ }
+ },5000);
+ }
if((newState.data === 0 && checkEnd()) || (newState.data == 1 && checkEnd()))
{
console.log("nummer 1");
@@ -141,17 +152,6 @@ function onPlayerStateChange(newState) {
$("#playpause").toggleClass("pause");
}
}
- if(newState.data === 0)
- {
- quickFixCountdown = setTimeout(function(){
- console.log("trying quickfix");
- if(ytplayer.getPlayerState() === 0 && wasPaused){
- console.log("quickfixPlay");
- startNextSong();
- wasPaused = false;
- }
- },5000);
- }
}
function checkEnd()
diff --git a/php/footer.php b/php/footer.php
index f11290a5..fcb9a043 100755
--- a/php/footer.php
+++ b/php/footer.php
@@ -4,4 +4,8 @@
-
\ No newline at end of file
+
+
+
+
+
\ No newline at end of file