mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Removed some debug code to fix random play.
This commit is contained in:
parent
a792f82334
commit
7ea54a5c71
2 changed files with 2 additions and 8 deletions
7
song.php
7
song.php
|
@ -98,16 +98,11 @@ elseif ( $_REQUEST['random'] ) {
|
||||||
if($_REQUEST['catalog'] != '-1') {
|
if($_REQUEST['catalog'] != '-1') {
|
||||||
$matchlist['catalog'] = $_REQUEST['catalog'];
|
$matchlist['catalog'] = $_REQUEST['catalog'];
|
||||||
}
|
}
|
||||||
$_REQUEST['random'] = '100';
|
|
||||||
$_REQUEST['random_type'] = 'normal';
|
|
||||||
unset($matchlist['genre']);
|
|
||||||
unset($matchlist['catalog']);
|
|
||||||
/* Setup the options array */
|
/* Setup the options array */
|
||||||
$options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type']);
|
$options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type']);
|
||||||
|
|
||||||
|
|
||||||
$song_ids = get_random_songs($options, $matchlist);
|
$song_ids = get_random_songs($options, $matchlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
elseif ( $_REQUEST['artist_random'] ) {
|
elseif ( $_REQUEST['artist_random'] ) {
|
||||||
$artist = new Artist($_REQUEST['artist_random']);
|
$artist = new Artist($_REQUEST['artist_random']);
|
||||||
$artist->get_count();
|
$artist->get_count();
|
||||||
|
|
|
@ -112,7 +112,7 @@ $browse_items[] = array('title'=>'Genre','url'=>'browse.php?action=genre','activ
|
||||||
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>
|
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>
|
||||||
<ul class="subnavside">
|
<ul class="subnavside">
|
||||||
<li class="subnavbutton">
|
<li class="subnavbutton">
|
||||||
<form name="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline">
|
<form name="sub_random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline">
|
||||||
<input type="hidden" name="action" value="m3u" />
|
<input type="hidden" name="action" value="m3u" />
|
||||||
<select name="random" style="width:110px;">
|
<select name="random" style="width:110px;">
|
||||||
<option value="1">1</option>
|
<option value="1">1</option>
|
||||||
|
@ -146,5 +146,4 @@ $browse_items[] = array('title'=>'Genre','url'=>'browse.php?action=genre','activ
|
||||||
<?php if (conf('use_auth')) { ?>
|
<?php if (conf('use_auth')) { ?>
|
||||||
<ul><li><a href="<?php echo conf('web_path'); ?>/logout.php">Logout</a></li></ul>
|
<ul><li><a href="<?php echo conf('web_path'); ?>/logout.php">Logout</a></li></ul>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue