Changeset 9957

Show
Ignore:
Timestamp:
2008-07-05 12:40:33 (3 months ago)
Author:
murdos
Message:

Added support for cover art from Encyclopedisque.fr (http://wiki.musicbrainz.org/CoverArtSites/Encyclopedisque).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mb_server/trunk/cgi-bin/MusicBrainz/Server/CoverArt.pm

    r9653 r9957  
    8080       imguri     => '', 
    8181       releaseuri => 'http://www.ozon.ru/context/detail/id/$1/?partner=musicbrainz', 
     82   }, 
     83   {  
     84       name       => 'Encyclopédisque', 
     85       domain     => 'encyclopedisque.fr', 
     86       regexp     => 'http://www.encyclopedisque.fr/images/imgdb/(thumb250|main)/(\d+).jpg', 
     87       imguri     => 'http://www.encyclopedisque.fr/images/imgdb/thumb250/$2.jpg', 
     88       releaseuri => 'http://www.encyclopedisque.fr/', 
    8289   }, 
    8390); 
  • mb_server/trunk/htdocs/scripts/ar-frontend.js

    r9653 r9957  
    4949        archive:    new RegExp("^(http://)?([^/]+\.)?archive\.org/.*\.(jpg|jpeg|png|gif)$","i"), 
    5050        cdbaby:     new RegExp("^(http://)?([^/]+\.)?cdbaby\.(com|name)","i"), 
    51         jamendo:    new RegExp("^(http://)?([^/]+\.)?jamendo\.com","i") 
     51        jamendo:    new RegExp("^(http://)?([^/]+\.)?jamendo\.com","i"), 
     52        encyclopedisque:    new RegExp("^(http://)?([^/]+\.)?encyclopedisque\.fr/images/.*\.jpg","i") 
    5253    }; 
    5354 
     
    219220            else if (v.match(this.urlRegExps.jamendo)) 
    220221                site = "cover art"; 
     222            else if (v.match(this.urlRegExps.encyclopedisque)) 
     223                site = "cover art"; 
    221224 
    222225            if (site != "") {