Paul Arthur
91603e9800
Don't throw away data that getID3 has deigned to parse
...
Fixes M4A tag parsing, probably other things.
2012-04-11 18:17:54 -04:00
Brian Hasselbeck
2888851fa3
FS#224 - generated .pls playlist doesn't work in some players
...
Initial tag is case sensitive; we were emitting [Playlist] but some
players don't accept that. There is unfortunately no real standard to
check, but this does match what Winamp (ack, pthbbt) does.
2012-04-11 16:52:16 -04:00
Paul Arthur
ec9389f5c6
Make Art->get_from_source() static
...
Half the calls to it were already trying to call it as a static method
anyway. The only time $this was referenced was to get the type, so pass
type as a parameter.
2012-04-09 16:18:13 -04:00
Paul Arthur
2e2c0919cb
Increment the correct variable during verify
...
Final displayed count was always 0 because we were incrementing a
different variable than we were using.
2012-03-31 22:34:37 -04:00
Paul Arthur
ac81e2b0e3
Drop mtime check during verify
...
It does more harm than good, by making it difficult to update records if
you've changed your metadata settings (or fixed a bug).
2012-03-31 22:32:20 -04:00
Paul Arthur
f2e01ab7d5
Increase the size of the mbid column in artist
...
Picard is putting multiple MBIDs in the tags now that MusicBrainz' new
schema is live. The easiest way to deal with this is to store all of
them as an aggregate value and match against that.
2012-03-31 22:29:09 -04:00
Paul Arthur
6f8673b5c7
Don't use LIKE when looking for an artist by MBID
...
There's no reason to do pattern matching.
2012-03-31 21:08:44 -04:00
Paul Arthur
425ecbbb3a
Don't run filename patterns through preg_quote twice
...
This would result in extra slashes, e.g.
'/\/([0-9]+?)\s\\\-\s(.+?)\..+$/' instead of
'/\/([0-9]+?)\s\-\s(.+?)\..+$/'
There are some unrelated cosmetic changes as well.
2012-03-31 20:44:41 -04:00
Paul Arthur
ccb9edbf2d
Clean up get_preferences a little bit
...
Don't use userid as some sort of weird flag value. Especially when
your flag value is a valid value for userid. Just...no.
2012-03-31 17:52:07 -04:00
Paul Arthur
f2e3668528
Fix regex for parsing rules
...
ID can be multiple digits, so we should capture all of them.
2012-03-19 12:21:22 -04:00
Paul Arthur
ca60de30bc
Add CLI tool for running database updates
2012-03-06 16:42:04 -05:00
Paul Arthur
f40866b6d5
Use '$a ?: $b' instead of '$a ? $a : $b' in vainfo
...
Now that we require PHP 5.3, we can use the more compact format.
2012-03-06 12:55:17 -05:00
Paul Arthur
34b0eaf233
Clean up uses of Config::set and Config::set_by_array
...
Consistently pass in a boolean instead of a string or an int for the
clobber flag.
2012-03-06 12:18:57 -05:00
Paul Arthur
08a4f848be
Clean up Config::set and Config::set_by_array
...
Boolean parameters should be boolean.
2012-03-06 12:18:10 -05:00
Paul Arthur
585382422c
Allow multiple valid forms of the same type
...
Use the SID for the primary key, instead of the non-unique form name.
Also add some debugging to the form functions in Core.
2012-03-06 10:58:07 -05:00
Paul Arthur
3d8e3ac86c
Minor clean up of vauth::session_extend
2012-03-02 00:08:57 -05:00
Paul Arthur
dd3d42d644
FS#198 - Export To CSV - Blank Genre
...
Clean up Catalog->export. Genre doesn't exist any more.
2012-03-01 14:24:26 -05:00
Paul Arthur
40e8484a57
FS#213 - User Registration
...
Add an option to have newly registered accounts disabled by default.
2012-03-01 14:06:03 -05:00
Paul Arthur
55ed43c332
Clean up xmlData::songs
...
Drop call to Song->format(); two of the values that we use are exposed
via public getters anyway, and it's not particularly ugly to call
Tag::get_top_tags instead of relying on Song to do that for us.
Remove genre cruft.
Based on a patch by lotan_rm in FS#215
2012-03-01 13:36:41 -05:00
Paul Arthur
6b33ec9be8
Clean up xmlData::tags_string
...
Drop unused parameters. Make sure $tags is an array before we treat it
as one. Correct count value.
Based on a patch by lotan_rm in FS#215
2012-03-01 13:14:42 -05:00
Paul Arthur
bac2618846
Cosmetics: clean up SQL statement in Tag::get_top_tags
2012-03-01 13:03:36 -05:00
Paul Arthur
b5965d2513
Add Art cache to the caches built by Song::build_cache
2012-03-01 12:48:11 -05:00
lotan_rm
500b6cbdb3
Avoid unnecessary work in Song::play_url
...
The only thing we're using that's set by format() is f_artist_full,
which is exactly the same as what's returned by get_artist_name().
2012-03-01 12:45:20 -05:00
Paul Arthur
3bd110181c
Add some caching to the Art class
...
Based on a patch by lotan_rm in FS#215
2012-03-01 12:39:55 -05:00
Paul Arthur
6f0c651075
FS#216 - Cannot add music to catalog with 21 February commit
...
The wrong version of this change got pushed, somehow. Fix parse errors.
2012-02-21 19:19:19 -05:00
Paul Arthur
e9e350b71e
Lengthen varchar for tmp_playlist
.session
...
Sessions can be longer than 32 characters. Bump to 64.
2012-02-21 00:08:20 -05:00
lotan_rm
073f49c3e8
FS#212 - Incorrect album art uri
...
Missing ampersand.
2012-02-20 23:38:48 -05:00
Paul Arthur
e36d29434e
vainfo: unset disk if totaldiscs is 1
...
ID3 should only set disk if it's part of a set, but the same is not true
of other metadata sources.
Also drop no-op attempted cleanup of disk; we've already run intval, so
it won't contain a slash.
2012-02-20 23:11:48 -05:00
Paul Arthur
a40824a96b
Drop unnecessary case branch.
2012-02-20 22:50:41 -05:00
momo-i
95620b40a1
Fixed messages translatable.
2011-12-27 15:30:25 +09:00
momo-i
9f491c064a
Fixed messages translatable.
2011-12-27 15:15:06 +09:00
Karl Vollmer
0c779f36f7
Switched Ping date to ISO 8601, added expire to handshake also ISO 8601
2011-12-19 12:43:51 -04:00
Paul Arthur
0c90811df4
Fix catalog clean
2011-12-02 10:28:20 -05:00
Karl Vollmer
312052f235
Fix some missing documentation, remove some obsolete functions
2011-12-01 22:00:40 -04:00
Karl Vollmer
a350ae1dbc
Fix Libre.FM scrobbling, remove errant data in handshake response
2011-12-01 21:47:24 -04:00
Karl Vollmer
56eb2ac7dc
Fixed two PHP warnings, and some issues with how users were being constructed
...
in init (which makes me wonder) and started trying to figure out why libre.fm broke
2011-12-01 15:59:33 -04:00
Karl Vollmer
d1af05595c
Typo caused songs to be put in null catalog :S
2011-12-01 15:15:32 -04:00
Karl Vollmer
96ea4a9655
Song and Album Art from remote catalogs now inserts locally, can't play the remote
...
songs yet.
2011-12-01 09:33:18 -04:00
Karl Vollmer
296fb051c7
Add mbids and mode to the song xml response
2011-11-29 11:34:33 -04:00
Karl Vollmer
7d9313f808
Merge branch 'master' of gitorious.org:ampache/ampache
2011-11-28 16:07:24 -04:00
Karl Vollmer
ac366c1c0c
Removed defunct functions, in theory inserting remote songs, untested though
2011-11-28 16:06:34 -04:00
Paul Arthur
ca3fe67e49
FS#201 - Video files broken in search
...
Video searching was trying to use explode instead of implode. That
won't work.
2011-11-28 13:35:24 -05:00
Karl Vollmer
2c06cb5440
Switched API to exceptions rather then trigger_error in most instances, more work on the
...
remote catalog indexing.
2011-11-28 11:22:47 -04:00
Karl Vollmer
e862098f66
Testing Bot e-mail function, but a little more work on the remote catalogs
2011-11-23 16:49:36 -04:00
Karl Vollmer
d4390d2dfc
Add Catalog count to handshake response for API, Wiki updated to reflect change
2011-11-23 16:17:14 -04:00
Karl Vollmer
8fbbe64e8f
AmpacheApi -- Store handshake information
...
Catalog -- pull handshake info, do something with it?
2011-11-23 15:59:41 -04:00
Karl Vollmer
d02561c96c
Add remote_username/password to Catalog Edit page
2011-11-23 10:57:54 -04:00
Karl Vollmer
d7c6598528
Fix DB updates so catalog remote_username and remote_password are added correctly, also fix catalog creation so they are stored in the database
2011-11-23 10:45:43 -04:00
Paul Arthur
5b4628c766
Cosmetics: clean up some cruft in vainfo
2011-11-22 17:03:59 -05:00
Paul Arthur
e2a53eac78
Some more cleanup of Last.FM art method
2011-11-09 04:45:20 -05:00