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

1256 commits

Author SHA1 Message Date
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
Paul Arthur
649298b241 Clean up remaining direct calls to mysql functions
This makes it theoretically possible to replace Dba with a different
implementation somewhat painlessly.
2012-11-08 14:31:53 -05:00
Paul Arthur
c51ddbd3d6 Clean up check_database, more direct mysql calls 2012-11-08 14:02:28 -05:00
Paul Arthur
54f9633498 Cosmetics: clean up spaces 2012-11-08 13:23:27 -05:00
Paul Arthur
93251b3c8d Move check_database_inserted into the Dba class 2012-11-08 13:22:56 -05:00
Paul Arthur
d2eaf10b07 Move check_database into the Dba class 2012-11-08 13:15:19 -05:00
Paul Arthur
bea34c4261 Fix spurious errors from Catalog::create()
is_readable is flaky under Windows, opendir should be more accurate.
2012-10-18 18:16:30 -04:00
Paul Arthur
8821554dda Mainly cosmetic cleanup of the catalog update complete message 2012-10-16 20:35:40 -04:00
Paul Arthur
bc90c0128c Start cleaning up the democratic thing.
Whoever wrote the old implementation of get_items suffered from intense fear
and hatred of SQL.
2012-10-15 13:20:28 -04:00
Paul Arthur
8c4921f5f3 Consistently use 'object_type' in playlist returns 2012-10-15 13:20:27 -04:00
Paul Arthur
866e7f4a1c Add Search->get_random_items 2012-10-01 12:44:36 -04:00
Paul Arthur
cd98c2ed6d Fix inaccurate comment. 2012-10-01 12:21:09 -04:00