This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A MusicBrainz release represents the unique release (i.e. issuing) of a product on a | |
specific date with specific release information such as the country, label, barcode, | |
packaging etc. If you walk into a store and purchase an album or single, they're each | |
represented in MusicBrainz as one release. | |
Each release belongs to a release group and contains at least one medium (commonly | |
referred to as a disc when talking about a CD release). Each medium holds a tracklist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[% l('Expires in {hours}, {minutes}', | |
{ hours => ln('{num} hour', '{num} hours', num, | |
{ num => 1 }), | |
minutes => ln('{num} minute', '{num} minutes', num, | |
{ num => Countdown.minutes(datetime) }) }) %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub countdown | |
{ | |
my ($self, $future) = @_; | |
my $now = DateTime->now; | |
return unless $future > $now; | |
my $diff = $future->subtract_datetime($now); | |
my $delta = $now->delta_days($future)->delta_days; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub browse : Path('') | |
{ | |
my ($self, $c) = @_; | |
$c->stash( template => 'browse/index.tt' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://git.musicbrainz.org/musicbrainz-server/core.git mb_server | |
cd mb_server | |
cp lib/DBDefs.pm.default lib/DBDefs.pm | |
=> Modify sub MB_SERVER_ROOT | |
sudo apt-get install build-essentials | |
sudo apt-get install postgresql-8.4 | |
sudo apt-get install postgresql-server-dev-8.4 | |
sudo apt-get install postgresql-contrib | |
perl ./Makefile.PM | |
sudo make installdeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(master) navap@hobbit:~/Documents/mb_server$ ./script/musicbrainz_server.pl -r | |
Couldn't require XML::Feed::Format::Atom : Can't locate XML/Atom/Feed.pm in @INC (@INC contains: /home/navap/Documents/mb_server/script/../lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.0/XML/Feed/Format/Atom.pm line 7. | |
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/XML/Feed/Format/Atom.pm line 7. | |
Compilation failed in require at (eval 1577) line 3. | |
at /usr/local/lib/perl/5.10.0/Module/Pluggable.pm line 28 | |
Couldn't load class (MusicBrainz::Server) because: Couldn't load class (MusicBrainz::Server::Edit::WithDifferences) because: Can't locate Data/Compare.pm in @INC (@INC contains: /home/navap/Documents/mb_server/script/../lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- TryCatch ...loaded. (1.002000) | |
- XML::Feed ...Couldn't require XML::Feed::Format::Atom : Can't locate XML/Atom/Feed.pm in @INC (@INC contains: /home/navap/Documents/mb_server/inc /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl /home/navap/Documents/mb_server) at /usr/local/share/perl/5.10.0/XML/Feed/Format/Atom.pm line 7. | |
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/XML/Feed/Format/Atom.pm line 7. | |
Compilation failed in require at (eval 1547) line 3. | |
at /usr/local/lib/perl/5.10.0/Module/Pluggable.pm line 28 | |
loaded. (0.43 >= 0.410) | |
- XML::Simple ...loaded. (2.18 >= 2.14) | |
<snip> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Mar 17 01:10:04 2010 : import finished | |
Loaded 81 tables (56257076 rows) in 1093 seconds | |
Failed to import dataset. | |
Wed Mar 17 01:10:06 2010 : InitDb.pl failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub open : Local RequireAuth | |
{ | |
die("in a fire"); | |
my ($self, $c) = @_; | |
my $edits = $self->_load_paged($c, sub { | |
$c->model('Edit')->find({ status => $STATUS_OPEN }, shift, shift); | |
}); | |
$c->model('Edit')->load_all(@$edits); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
[% IF edit.is_open %] | |
[%- l('This edit is set to a {quality}. It requires {votes}.', | |
{ quality => quality_name(edit.quality), | |
votes => ln('1 vote to accept/reject', '{n} unanimous votes to accept/reject', | |
edit.conditions.votes, { n => edit.conditions.votes }) | |
}) -%] | |
[% ELSE %] | |
[% l('This edit was set to a {quality}. It required {votes}.', | |
{ quality => quality_name(edit.quality), |