UrlMatchs.php 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Muzich\CoreBundle\Factory;
  3. use Muzich\CoreBundle\Entity\Element;
  4. class UrlMatchs
  5. {
  6. public static $jamendo = array(
  7. Element::TYPE_TRACK => array(
  8. // http://www.jamendo.com/fr/track/894974
  9. "#^\/[a-zA-Z0-9_-]+\/track\/([0-9]+)#" => 1,
  10. // http://www.jamendo.com/fr/track/347602/come-come
  11. "#^\/[a-zA-Z0-9_-]+\/track\/([0-9]+)\/.#" => 1
  12. ),
  13. Element::TYPE_ALBUM => array(
  14. // http://www.jamendo.com/fr/album/3409
  15. "#^\/[a-zA-Z0-9_-]+\/album\/([0-9]+)#" => 1,
  16. // http://www.jamendo.com/fr/list/a45666/proceed-positron...
  17. "#^\/[a-zA-Z0-9_-]+\/list\/a([0-9]+)\/.#" => 1
  18. )
  19. );
  20. public static $soundcloud = array(
  21. Element::TYPE_OTHER => array(
  22. // http://soundcloud.com/matas/sets/library-project
  23. "#^\/[a-zA-Z0-9_-]+\/sets\/[a-zA-Z0-9_-]+#" => null,
  24. // http://soundcloud.com/noisia/black-sun-empire-noisia-feed
  25. // http://soundcloud.com/user4818423/mechanika-crew-andrew-dj-set
  26. "#^\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+#" => null
  27. )
  28. );
  29. }