File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,12 @@ def splat(license_graph):
74
74
75
75
for uri in license_graph .subjects (NS_RDF .type , NS_CC .License ):
76
76
print uri
77
- m = re .search ('http://creativecommons.org/licenses/( .*?)/((.*?)/((.*?)/)?)?' , str (uri ))
78
- code = m .group (1 )
79
- version = m .group (3 )
80
- jurisdiction = m .group (5 )
77
+ m = re .search ('http://creativecommons.org/(?P<group> licenses|publicdomain)/(?P<code> .*?)/((?P<version> .*?)/((?P<jurisdiction> .*?)/)?)?' , str (uri ))
78
+ code = m .group ('code' )
79
+ version = m .group ('version' )
80
+ jurisdiction = m .group ('jurisdiction' )
81
81
82
- dest = os .path .join (checkout_base (), 'www' , 'l' , code )
82
+ dest = os .path .join (checkout_base (), 'www' , m . group ( 'group' )[ 0 ] , code )
83
83
84
84
code2 = code
85
85
size = '88x31'
You can’t perform that action at this time.
0 commit comments