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

1367 commits

Author SHA1 Message Date
Paul Arthur
2eb41bb99a Cosmetic clean up of search.class.php 2013-01-28 13:26:11 -05:00
Paul Arthur
1a164ba699 Yank out the Flash player by the roots. 2013-01-28 13:26:11 -05:00
Holger Brunn
959aebe07f Add an HTML5 player
Merge request #20.  Basic, not very pretty, but works and, unlike the
Flash player, is maintainable.
2013-01-28 13:26:11 -05:00
Paul Arthur
ef4d366060 Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
2013-01-26 03:38:46 -05:00
Paul Arthur
8a750c3e87 Move [un]format_bytes() from general.lib.php to UI 2013-01-26 02:36:58 -05:00
Paul Arthur
a12679b13d Move get_user_icon from ui.lib.php to UI::get_icon 2013-01-26 02:19:06 -05:00
Paul Arthur
80b618ba40 Move update_text from ui.lib.php to UI 2013-01-26 01:42:52 -05:00
Paul Arthur
136f9f5856 Move ajax_include() from ui.lib.php to UI 2013-01-26 01:35:59 -05:00
Paul Arthur
d572c2776f Move show_box_{top,bottom}() from ui.lib.php to UI 2013-01-26 01:28:34 -05:00
Paul Arthur
04aa79b53c Move show_{footer,header}() from ui.lib.php to UI 2013-01-26 01:22:50 -05:00
Paul Arthur
eaa44dcd09 Continue moving things into UI
check_php_iconv() from lib/debug.lib.php becomes UI::check_iconv()
truncate_with_ellipsis() from lib/ui.lib.php becomes UI::truncate()
2013-01-26 01:15:59 -05:00
Paul Arthur
42133f38d2 Move access_denied() from lib/ui.lib.php to UI 2013-01-26 00:57:40 -05:00
Paul Arthur
5f02e4f43c Move flip_class() from lib/ui.lib.php to UI 2013-01-26 00:52:50 -05:00
Paul Arthur
31920c88a7 Move Catalog::get_disabled() to Song 2013-01-26 00:40:03 -05:00
Paul Arthur
d86e605fed Drop unused Catalog::get_catalog_ids() 2013-01-26 00:31:36 -05:00
Paul Arthur
e2d3c94800 Catalog::_check_ticker() -> UI::check_ticker() 2013-01-26 00:30:26 -05:00
Paul Arthur
fd5b7e1b10 Move Catalog::optimize_tables() to Dba 2013-01-26 00:23:12 -05:00
Paul Arthur
7703c9431d Query::clean() -> Query::gc() 2013-01-26 00:19:43 -05:00
Paul Arthur
303ff7d645 Catalog::clean() -> Catalog::gc() 2013-01-26 00:18:36 -05:00
Paul Arthur
dff1d2cf46 Rename shoutBox to Shoutbox 2013-01-25 21:49:47 -05:00
Paul Arthur
57483216e4 Rename tmpPlaylist to Tmp_Playlist 2013-01-25 21:48:51 -05:00
Paul Arthur
1069d54c85 Move clean functions into their respective classes
Uniformly name them gc()
2013-01-25 21:45:47 -05:00
Paul Arthur
cad1380737 Move duplicate searching from Catalog to Song
Catalog::get_duplicate_songs() -> Song::find_duplicates()
Catalog::get_duplicate_info() -> Song::get_duplicate_info()
2013-01-25 20:49:16 -05:00
Paul Arthur
80f4859712 Move Catalog::clear_stats() to Stats::clear() 2013-01-25 20:35:45 -05:00
Paul Arthur
d14b5215eb Cosmetics: s/incase/in case/ 2013-01-25 20:30:36 -05:00
Paul Arthur
9c28ed5ad1 Consistently use _ in two-word class names 2013-01-25 19:54:11 -05:00
Paul Arthur
8808fdf10d conf() -> Config::get()
I have a feeling a lot of these are in stale, unused code, but there
might be some actual bugs here.  conf() was replaced a while back.
2013-01-25 19:29:14 -05:00
Paul Arthur
0c66442b55 require and require_once aren't functions
Since the parentheses are optional, we leave them off to remind ourselve
that PHP be crazy, yo.
2013-01-25 19:20:47 -05:00
Paul Arthur
d90a057aba Clean up outdated comment 2013-01-25 19:10:14 -05:00
Paul Arthur
16c3ba34fd Cosmetics: clean up heads in lib/ 2013-01-25 18:38:22 -05:00
Paul Arthur
83dc27dcce Remove explicit collation settings from updates
Shouldn't be necessary, might be wrong, hmm.
2013-01-25 18:01:15 -05:00
Paul Arthur
9340ff287c Rework transcoding
Remove some of the roundabout complexity that had built up.  Push people
toward using a single, flexible tool for most of their transcoding
needs.  Increase backend and configuration flexibility to support
user-requested format changes (e.g. for an HTML5 player); this
functionality is not yet exposed.
2013-01-23 13:11:16 -05:00
Paul Arthur
37e09a6428 Clean up the bitrate calculation
Dynamic downsampling, I suppose.
2013-01-23 13:09:36 -05:00
Paul Arthur
e1000558fb Tear the offset/eof/size crap out of Stream
Now that playback doesn't pretend it's supported, we don't need the
fragile hacks to support guessing the content size or 'seeking' within
a transcoded stream.
2013-01-23 13:09:27 -05:00
Paul Arthur
984c738187 Mess around with rating search
Simplify the rating search and drop the ugly subquery; make it a
straight query against the current user's ratings.
2013-01-23 13:06:35 -05:00
Paul Arthur
fd214fdcb7 Mess around with ratings
Drop the public variables from the rating class; everyone should use the
getters.

Add the ability for themes and applications to distinguish between
a user's actual rating and the global average rating; in the web
interface the average shows up if a user hasn't rated something but at
least one other user has.
2013-01-23 13:03:14 -05:00
Paul Arthur
af6fdbb67e Change the gc on stream sessions
It's a little suspect to automatically delete them just because another
was used. Waiting for them to expire will get rid of them plenty quick,
with less chance for weird issues.
2013-01-15 23:15:49 -05:00
Paul Arthur
246e9094d1 Fix regression in generation of xspf playlists
When it's a video, add some special sauce.
2013-01-15 15:56:54 -05:00
Paul Arthur
e2ca05d5b4 Make playlist downloads idempotent
Should fix the VLC plugin, as well as allow direct use of an Ampache
site on Android devices.

First, split the Stream class into an instantiable class that does the
playlist wrangling and a static class that handles the streaming stuff.

How does this work? Well, stream.php does its fancy stuff like
gathering the media IDs and clearing the playlist, but instead
of generating the playlist file there we use the Stream_Playlist
class to store the list of URLs in the database, then redirect to
play/index.php to create the actual download (there are some magic
playlist types like localplay that don't need to redirect.)
The playlist will be cached as long as that stream session is active, so
it can be downloaded multiple times and by clients that don't share the
browser's cookie cache.

Clean up the playlist generation by reducing copypasta.
2013-01-15 11:30:47 -05:00
Paul Arthur
4be88447e8 Break Localplay->add(), it's been replaced 2013-01-15 01:26:38 -05:00
Paul Arthur
4818baade2 Rename localplay.abstract.php
The actual class name is localplay_controller, the filename should
reflect that.
2013-01-15 01:26:38 -05:00
Paul Arthur
7cd9fd9e08 localplay: make add_url actually do something 2013-01-15 01:26:38 -05:00
Paul Arthur
a1594882c7 Add Stream_URL class for passing them around 2013-01-15 01:26:38 -05:00
Paul Arthur
4afe4b507b Cosmetics: correct outdated tmpPlaylist comment 2013-01-15 01:26:37 -05:00
Paul Arthur
663798897f Cosmetics: remove unused variables in Stream 2013-01-14 13:57:20 -05:00
Paul Arthur
b423def173 Add a convenience function to generate an AJAX url 2012-12-19 12:54:58 -05:00
Paul Arthur
0982bc392e Use Ajax::action to generate the browse AJAX. 2012-12-19 12:44:20 -05:00
Paul Arthur
4e247196ff Rip out ugly lyrics code 2012-11-13 18:51:11 -05:00
Paul Arthur
75b6969ae1 Cosmetics: fix typo 2012-11-13 18:44:46 -05:00
Paul Arthur
d772b031a9 Switch from print_r to json_encode in debug output 2012-11-13 18:31:33 -05:00