mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
fixed sending to localplay for democratic playlist
This commit is contained in:
parent
afb0aafbfe
commit
ca7851d0e0
4 changed files with 12 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
v.3.4-Beta2
|
v.3.4-Beta2
|
||||||
|
- Fixed problem where democratic play wouldn't send to localplay
|
||||||
|
and would just display a blank screen
|
||||||
- Added Multi-Character Filter on browse pages
|
- Added Multi-Character Filter on browse pages
|
||||||
- Fixed Flag Management Interface
|
- Fixed Flag Management Interface
|
||||||
- Added Export Catalog to CSV
|
- Added Export Catalog to CSV
|
||||||
|
|
|
@ -63,6 +63,14 @@ switch ($_REQUEST['action']) {
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case 'send_playlist':
|
||||||
|
if (!Access::check('interface','75')) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$_SESSION['iframe']['target'] = Config::get('web_path') . '/stream.php?action=democratic';
|
||||||
|
$results['rfc3514'] = '<script type="text/javascript">reload_util("'.$_SESSION['iframe']['target'].'")</script>';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$results['rfc3514'] = '0x1';
|
$results['rfc3514'] = '0x1';
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -146,7 +146,7 @@ switch ($_REQUEST['action']) {
|
||||||
case 'democratic':
|
case 'democratic':
|
||||||
$democratic = Democratic::get_current_playlist();
|
$democratic = Democratic::get_current_playlist();
|
||||||
$urls[] = $democratic->get_url();
|
$urls[] = $democratic->get_url();
|
||||||
$song_ids = array();
|
$song_ids = array('0');
|
||||||
break;
|
break;
|
||||||
case 'download':
|
case 'download':
|
||||||
$song_ids[] = $_REQUEST['song_id'];
|
$song_ids[] = $_REQUEST['song_id'];
|
||||||
|
|
|
@ -44,7 +44,7 @@ show_box_top(_('Manage Democratic Playlists')); ?>
|
||||||
<td><?php echo $playlist->f_link; ?></td>
|
<td><?php echo $playlist->f_link; ?></td>
|
||||||
<td><?php echo $democratic->count_items(); ?></td>
|
<td><?php echo $democratic->count_items(); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=democratic"><?php echo get_user_icon('all'); ?></a>
|
<?php echo Ajax::button('?page=democratic&action=send_playlist','all',_('Play'),'play_democratic'); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } if (!count($playlists)) { ?>
|
<?php } if (!count($playlists)) { ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue