1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 18:29:40 +02:00

fixed show album art, added input for source charset on fix_filenames, added "add" to shoutbox display, updated links

This commit is contained in:
Karl 'vollmerk' Vollmer 2008-04-20 22:35:21 +00:00
parent 6952af791f
commit 2801dae076
8 changed files with 35 additions and 14 deletions

View file

@ -42,12 +42,20 @@ if (!function_exists('iconv')) {
exit;
}
// Attempt to figure out what the System Charset is
$source_encoding = iconv_get_encoding('output_encoding');
// Attempt a simple translation
$string = iconv(Config::get('site_charset'),Config::get('site_charset'),'For the Love of Music');
echo "Testing Basic Translation, the two strings below should look the same\n";
echo "Original: For the Love of Music\n";
echo "Translated: $string\n";
echo "---------------------------------------------------------------------\n";
echo "Input Charset ($source_encoding):";
$input = trim(fgets(STDIN));
if (strlen($input) > 0) { $source_encoding = trim($input); }
echo "Using $source_encoding as source character set\n";
$sql = "SELECT * FROM `catalog` WHERE `catalog_type`='local'";
@ -55,10 +63,13 @@ $db_results = Dba::query($sql);
while ($row = Dba::fetch_assoc($db_results)) {
echo "Checking " . $row['name'] . " (" . $row['path'] . ")\n";
charset_directory_correct($row['path']);
} // end of the catalogs
echo "Finished checking filenames for valid chacters\n";
/**************************************************
****************** FUNCTIONS *********************
@ -103,9 +114,10 @@ function charset_directory_correct($path) {
continue;
}
$translated_filename = iconv(Config::get('site_charset'),Config::get('site_charset') . '//IGNORE',$full_file);
$verify_filename = iconv(Config::get('site_charset'),Config::get('site_charset') . '//IGNORE',$full_file);
if (strcmp($full_file,$translated_filename) != '0') {
if (strcmp($full_file,$verify_filename) != '0') {
$translated_filename = iconv($source_encoding,Config::get('site_charset') . '//IGNORE',$full_file);
echo "Attempting to Transcode to " . Config::get('site_charset') . "\n";
echo "--------------------------------------------------------------------------------------------\n";
echo "OLD:$full_file has invalid chars\nNEW:$translated_filename\n";

View file

@ -4,6 +4,9 @@
--------------------------------------------------------------------------
v.3.4-Beta3
- Added prompt for input charset to fix_filenames.inc
- Updated Links in Readme
- Fixed Show Art filter on browse by albums
- Added Ratings links to Browse Albums and Browse Artist
- Fixed seeking on random track, giving you a new track every
seek

View file

@ -61,16 +61,16 @@ Contents:
- ASX
- RAM
- XSPF
- Realtime Downsampled
- XSPF Based Flash Player
- Realtime Downsampling
- Integrated Flash Player
- Automatic Downsampling based on load
- Local/Remote network definition based downsampling
- On the Fly Transcoding
- Localplay
- Music Player Daemon (MPD)
- Winamp using (HTTPQ)
- Democratic Vote based play
- 3rd Party clients using API (Amarok)
- Democratic Vote based playback
- 3rd Party clients using API (Amarok,Coherence)
C) Current Translations
@ -150,8 +150,8 @@ Contents:
Public SVN: https://svn.ampache.org/
IRC: irc.ampache.org #ampache (Freenode)
Forums: http://ampache.org/forums
Bugs: http://trac.ampache.org/
Wiki: http://trac.ampache.org/wiki
Bugs: http://ampache.org/bugs
Wiki: http://ampache.org/bugs/wiki
Demo: http://ampache.org/demo
Ampache Development Team

View file

@ -126,5 +126,5 @@ class xmlRpcClient {
} // create_client
} // xmlRpcServer
} // xmlRpcClient
?>

View file

@ -31,7 +31,7 @@ switch ($_REQUEST['action']) {
// Check 'value' with isset because it can null
//(user type a "start with" word and deletes it)
if ($_REQUEST['key'] && isset($_REQUEST['multi_alpha_filter'])) {
if ($_REQUEST['key'] && (isset($_REQUEST['multi_alpha_filter']) OR isset($_REQUEST['value']))) {
// Set any new filters we've just added
Browse::set_filter($_REQUEST['key'],$_REQUEST['multi_alpha_filter']);
}

View file

@ -1,7 +1,7 @@
<?php
/*
Copyright (c) 2001 - 2007 Ampache.org
Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@ -48,6 +48,11 @@ foreach ($object_ids as $radio_id) {
<?php require Config::get('prefix') . '/templates/show_live_stream_row.inc.php'; ?>
</tr>
<?php } //end foreach ($artists as $artist) ?>
<?php if (!count($object_ids)) { ?>
<tr>
<td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td>
</tr>
<?php } ?>
<tr class="th-bottom">
<th class="cel_add"><?php echo _('Add'); ?></th>
<th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Name'),'live_stream_sort_name_bottom'); ?></th>

View file

@ -1,7 +1,7 @@
<?php
/*
Copyright (c) 2001 - 2008 Ampache.org
Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or

View file

@ -1,7 +1,7 @@
<?php
/*
Copyright (c) 2001 - 2008 Ampache.org
Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@ -31,7 +31,8 @@
?>
<div class="shout <?php echo flip_class(); ?>">
<?php echo $shout->get_image(); ?>
<strong><?php echo ucfirst($shout->object_type); ?>:</strong> <?php echo $object->f_link; ?>
<?php echo Ajax::button('?action=basket&type=' . $shout->object_type .' &id=' . $shout->object_id,'add',_('Add'),'add_' . $shout->object_type . '_' . $shout->object_id); ?>
<?php echo $object->f_link; ?>
<span class="information"><?php echo $client->f_link; ?> <?php echo date("d/m H:i",$shout->date); ?></span>
<span class="shouttext"><?php echo scrub_out($shout->text); ?></span>
</div>