Skip to content

Commit f499356

Browse files
committed
MBS-11684 (II): Handle displaying Dogmazic URLs
1 parent 8d5dee9 commit f499356

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

lib/MusicBrainz/Server/Data/URL.pm

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ my %URL_SPECIALIZATIONS = (
5555
'Directlyrics' => qr{^https?://(?:www\.)?directlyrics\.com/}i,
5656
'Discogs' => qr{^https?://(?:www\.)?discogs\.com/}i,
5757
'DiscosDoBrasil' => qr{^https?://(?:www\.)?discosdobrasil\.com\.br/}i,
58+
'Dogmazic' => qr{^https?://(?:[^/]+\.)?dogmazic\.net/}i,
5859
'DNB' => qr{^https?://(?:www\.)?d-nb\.info/}i,
5960
'DRAM' => qr{^https?://(?:www\.)?dramonline\.org/}i,
6061
'DynamicRangeDB' => qr{^https?://dr\.loudness-war\.info/}i,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package MusicBrainz::Server::Entity::URL::Dogmazic;
2+
3+
use Moose;
4+
5+
use MusicBrainz::Server::Translation qw( l );
6+
7+
extends 'MusicBrainz::Server::Entity::URL';
8+
with 'MusicBrainz::Server::Entity::URL::Sidebar';
9+
10+
sub sidebar_name { l('Stream at Dogmazic') }
11+
12+
__PACKAGE__->meta->make_immutable;
13+
no Moose;
14+
1;
15+
16+
=head1 COPYRIGHT AND LICENSE
17+
18+
Copyright (C) 2021 MetaBrainz Foundation
19+
20+
This file is part of MusicBrainz, the open internet music database,
21+
and is licensed under the GPL version 2, or (at your option) any
22+
later version: http://www.gnu.org/licenses/gpl-2.0.txt
23+
24+
=cut
Loading

root/static/scripts/common/constants.js

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export const FAVICON_CLASSES = {
7272
'dhhu.dk': 'dhhu',
7373
'directlyrics.com': 'directlyrics',
7474
'discogs.com': 'discogs',
75+
'dogmazic.net': 'dogmazic',
7576
'dramonline.org': 'dram',
7677
'encyclopedisque.fr': 'encyclopedisque',
7778
'ester.ee': 'ester',

root/static/styles/favicons.less

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
.favicon("directlyrics", 32);
4545
.favicon("discogs", 32);
4646
.favicon("dnb");
47+
.favicon("dogmazic", 32);
4748
.favicon("dram");
4849
.favicon("encyclopedisque");
4950
.favicon("ester");

0 commit comments

Comments
 (0)