… | |
… | |
570 | if ($meta->{license} =~ s/^#//) { |
570 | if ($meta->{license} =~ s/^#//) { |
571 | $meta->{license} = ({ |
571 | $meta->{license} = ({ |
572 | "pd" => "Public Domain", |
572 | "pd" => "Public Domain", |
573 | "gpl" => "GNU General Public License, version 3.0 or any later", |
573 | "gpl" => "GNU General Public License, version 3.0 or any later", |
574 | "cc/by/2.0" => "Licensed under Creative Commons Attribution 2.0 http://creativecommons.org/licenses/by/2.0/", |
574 | "cc/by/2.0" => "Licensed under Creative Commons Attribution 2.0 http://creativecommons.org/licenses/by/2.0/", |
|
|
575 | "cc/by/2.1" => "Licensed under Creative Commons Attribution 2.1 http://creativecommons.org/licenses/by/2.1/", |
575 | "cc/by/2.5" => "Licensed under Creative Commons Attribution 2.5 http://creativecommons.org/licenses/by/2.5/", |
576 | "cc/by/2.5" => "Licensed under Creative Commons Attribution 2.5 http://creativecommons.org/licenses/by/2.5/", |
576 | "cc/by/3.0" => "Licensed under Creative Commons Attribution 3.0 http://creativecommons.org/licenses/by/3.0/", |
577 | "cc/by/3.0" => "Licensed under Creative Commons Attribution 3.0 http://creativecommons.org/licenses/by/3.0/", |
577 | })->{$meta->{license}} |
578 | })->{$meta->{license}} |
578 | || warn "$dir/$file: license tag '$meta->{license}' not found."; |
579 | || warn "$dir/$file: license tag '$meta->{license}' not found."; |
|
|
580 | } |
|
|
581 | |
|
|
582 | if (!exists $meta->{author} && $meta->{source} =~ m%^http://www.jamendo.com/en/artist/(.*)$%) { |
|
|
583 | ($meta->{author} = $1) =~ s/_/ /g; |
579 | } |
584 | } |
580 | |
585 | |
581 | $file =~ s/\.res$//; |
586 | $file =~ s/\.res$//; |
582 | $file =~ s/\.(ogg|wav|jpg|png)$//; |
587 | $file =~ s/\.(ogg|wav|jpg|png)$//; |
583 | |
588 | |