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:
parent
6952af791f
commit
2801dae076
8 changed files with 35 additions and 14 deletions
|
@ -42,12 +42,20 @@ if (!function_exists('iconv')) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Attempt to figure out what the System Charset is
|
||||||
|
$source_encoding = iconv_get_encoding('output_encoding');
|
||||||
|
|
||||||
// Attempt a simple translation
|
// Attempt a simple translation
|
||||||
$string = iconv(Config::get('site_charset'),Config::get('site_charset'),'For the Love of Music');
|
$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 "Testing Basic Translation, the two strings below should look the same\n";
|
||||||
echo "Original: For the Love of Music\n";
|
echo "Original: For the Love of Music\n";
|
||||||
echo "Translated: $string\n";
|
echo "Translated: $string\n";
|
||||||
echo "---------------------------------------------------------------------\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'";
|
$sql = "SELECT * FROM `catalog` WHERE `catalog_type`='local'";
|
||||||
|
@ -55,10 +63,13 @@ $db_results = Dba::query($sql);
|
||||||
|
|
||||||
while ($row = Dba::fetch_assoc($db_results)) {
|
while ($row = Dba::fetch_assoc($db_results)) {
|
||||||
|
|
||||||
|
echo "Checking " . $row['name'] . " (" . $row['path'] . ")\n";
|
||||||
charset_directory_correct($row['path']);
|
charset_directory_correct($row['path']);
|
||||||
|
|
||||||
} // end of the catalogs
|
} // end of the catalogs
|
||||||
|
|
||||||
|
echo "Finished checking filenames for valid chacters\n";
|
||||||
|
|
||||||
|
|
||||||
/**************************************************
|
/**************************************************
|
||||||
****************** FUNCTIONS *********************
|
****************** FUNCTIONS *********************
|
||||||
|
@ -103,9 +114,10 @@ function charset_directory_correct($path) {
|
||||||
continue;
|
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 "Attempting to Transcode to " . Config::get('site_charset') . "\n";
|
||||||
echo "--------------------------------------------------------------------------------------------\n";
|
echo "--------------------------------------------------------------------------------------------\n";
|
||||||
echo "OLD:$full_file has invalid chars\nNEW:$translated_filename\n";
|
echo "OLD:$full_file has invalid chars\nNEW:$translated_filename\n";
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
v.3.4-Beta3
|
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
|
- Added Ratings links to Browse Albums and Browse Artist
|
||||||
- Fixed seeking on random track, giving you a new track every
|
- Fixed seeking on random track, giving you a new track every
|
||||||
seek
|
seek
|
||||||
|
|
12
docs/README
12
docs/README
|
@ -61,16 +61,16 @@ Contents:
|
||||||
- ASX
|
- ASX
|
||||||
- RAM
|
- RAM
|
||||||
- XSPF
|
- XSPF
|
||||||
- Realtime Downsampled
|
- Realtime Downsampling
|
||||||
- XSPF Based Flash Player
|
- Integrated Flash Player
|
||||||
- Automatic Downsampling based on load
|
- Automatic Downsampling based on load
|
||||||
- Local/Remote network definition based downsampling
|
- Local/Remote network definition based downsampling
|
||||||
- On the Fly Transcoding
|
- On the Fly Transcoding
|
||||||
- Localplay
|
- Localplay
|
||||||
- Music Player Daemon (MPD)
|
- Music Player Daemon (MPD)
|
||||||
- Winamp using (HTTPQ)
|
- Winamp using (HTTPQ)
|
||||||
- Democratic Vote based play
|
- Democratic Vote based playback
|
||||||
- 3rd Party clients using API (Amarok)
|
- 3rd Party clients using API (Amarok,Coherence)
|
||||||
|
|
||||||
C) Current Translations
|
C) Current Translations
|
||||||
|
|
||||||
|
@ -150,8 +150,8 @@ Contents:
|
||||||
Public SVN: https://svn.ampache.org/
|
Public SVN: https://svn.ampache.org/
|
||||||
IRC: irc.ampache.org #ampache (Freenode)
|
IRC: irc.ampache.org #ampache (Freenode)
|
||||||
Forums: http://ampache.org/forums
|
Forums: http://ampache.org/forums
|
||||||
Bugs: http://trac.ampache.org/
|
Bugs: http://ampache.org/bugs
|
||||||
Wiki: http://trac.ampache.org/wiki
|
Wiki: http://ampache.org/bugs/wiki
|
||||||
Demo: http://ampache.org/demo
|
Demo: http://ampache.org/demo
|
||||||
|
|
||||||
Ampache Development Team
|
Ampache Development Team
|
||||||
|
|
|
@ -126,5 +126,5 @@ class xmlRpcClient {
|
||||||
|
|
||||||
} // create_client
|
} // create_client
|
||||||
|
|
||||||
} // xmlRpcServer
|
} // xmlRpcClient
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -31,7 +31,7 @@ switch ($_REQUEST['action']) {
|
||||||
|
|
||||||
// Check 'value' with isset because it can null
|
// Check 'value' with isset because it can null
|
||||||
//(user type a "start with" word and deletes it)
|
//(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
|
// Set any new filters we've just added
|
||||||
Browse::set_filter($_REQUEST['key'],$_REQUEST['multi_alpha_filter']);
|
Browse::set_filter($_REQUEST['key'],$_REQUEST['multi_alpha_filter']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2001 - 2007 Ampache.org
|
Copyright (c) Ampache.org
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
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'; ?>
|
<?php require Config::get('prefix') . '/templates/show_live_stream_row.inc.php'; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } //end foreach ($artists as $artist) ?>
|
<?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">
|
<tr class="th-bottom">
|
||||||
<th class="cel_add"><?php echo _('Add'); ?></th>
|
<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>
|
<th class="cel_streamname"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Name'),'live_stream_sort_name_bottom'); ?></th>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2001 - 2008 Ampache.org
|
Copyright (c) Ampache.org
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2001 - 2008 Ampache.org
|
Copyright (c) Ampache.org
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
@ -31,7 +31,8 @@
|
||||||
?>
|
?>
|
||||||
<div class="shout <?php echo flip_class(); ?>">
|
<div class="shout <?php echo flip_class(); ?>">
|
||||||
<?php echo $shout->get_image(); ?>
|
<?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="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>
|
<span class="shouttext"><?php echo scrub_out($shout->text); ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue