mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
Empty commit
This commit is contained in:
parent
e03aa41d03
commit
7aef077622
@ -3,9 +3,10 @@
|
|||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
gc_enable();
|
gc_enable();
|
||||||
|
|
||||||
$PCount = shell_exec("/usr/bin/pgrep -cf schedule.php");
|
$PCount = chop(shell_exec("/usr/bin/pgrep -cf schedule.php"));
|
||||||
if ($PCount >= 0) {
|
if ($PCount > 3) {
|
||||||
die();
|
// 3 because the cron job starts two processes and pgrep finds itself
|
||||||
|
die("schedule.php is already running. Exiting ($PCount)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: make it awesome, make it flexible!
|
//TODO: make it awesome, make it flexible!
|
||||||
|
@ -215,7 +215,7 @@
|
|||||||
// Fix Last.fm API returning more than one entry despite limit on certain conditions.
|
// Fix Last.fm API returning more than one entry despite limit on certain conditions.
|
||||||
if ( typeof(json[0]) === "object" ) json = json[0];
|
if ( typeof(json[0]) === "object" ) json = json[0];
|
||||||
html += '<li class="lastfm_essential">Last played: ';
|
html += '<li class="lastfm_essential">Last played: ';
|
||||||
html += '<a href="artist.php?artistname=' + escapeAmpUrl(json['artist']['#text']) + '">' + escapeHtml(json['artist']['#text']) + '</a> - <a href="torrents.php?filelist=' + escapeAmpUrl(json['name']) + '">' + escapeHtml(json['name']) + '</a>';
|
html += '<a href="artist.php?artistname=' + escapeAmpUrl(json['artist']['#text']) + '">' + escapeHtml(json['artist']['#text']) + '</a> - <a href="torrents.php?artistname=' + escapeAmpUrl(json['artist']['#text']) +'&filelist=' + escapeAmpUrl(json['name']) + '">' + escapeHtml(json['name']) + '</a>';
|
||||||
html += "</li>";
|
html += "</li>";
|
||||||
lastPlayedTrack = html;
|
lastPlayedTrack = html;
|
||||||
}
|
}
|
||||||
@ -336,11 +336,11 @@
|
|||||||
var k = initialCount;
|
var k = initialCount;
|
||||||
if (j.length < 3) k = j.length;
|
if (j.length < 3) k = j.length;
|
||||||
for (var i = 0; i < k; i++) {
|
for (var i = 0; i < k; i++) {
|
||||||
html += '<li><a href="artist.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '">' + escapeHtml(j[i]['artist']['name']) + '</a> - <a href="torrents.php?filelist=' + escapeAmpUrl(j[i]['name']) + '">' + escapeHtml(j[i]['name']) + '</a></li>'
|
html += '<li><a href="artist.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '">' + escapeHtml(j[i]['artist']['name']) + '</a> - <a href="torrents.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '&filelist=' + escapeAmpUrl(j[i]['name']) + '">' + escapeHtml(j[i]['name']) + '</a></li>'
|
||||||
}
|
}
|
||||||
if ( j.length>3 ){
|
if ( j.length>3 ){
|
||||||
for (i = 3; i < j.length; i++) {
|
for (i = 3; i < j.length; i++) {
|
||||||
html += '<li class="hidden"><a href="artist.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '">' + escapeHtml(j[i]['artist']['name']) + '</a> - <a href="torrents.php?filelist=' + escapeAmpUrl(j[i]['name']) + '">' + escapeHtml(j[i]['name']) + '</a></li>'
|
html += '<li class="hidden"><a href="artist.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '">' + escapeHtml(j[i]['artist']['name']) + '</a> - <a href="torrents.php?artistname=' + escapeAmpUrl(j[i]['artist']['name']) + '&filelist=' + escapeAmpUrl(j[i]['name']) + '">' + escapeHtml(j[i]['name']) + '</a></li>'
|
||||||
}
|
}
|
||||||
html+= '<li>[<a href="#toptracks" id="lastfm_expand" onclick="return false">Expand</a>]</li>'
|
html+= '<li>[<a href="#toptracks" id="lastfm_expand" onclick="return false">Expand</a>]</li>'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user