| 93 self.skip_to_next() |
93 self.skip_to_next() |
| 94 result.author, result.username = self.parse_pattern(r'^Author: ([^\[]+)\s*(?:\[(.+)\])?$', 'author') |
94 result.author, result.username = self.parse_pattern(r'^Author: ([^\[]+)\s*(?:\[(.+)\])?$', 'author') |
| 95 for header_entry in self.get_more_header_stuff(): |
95 for header_entry in self.get_more_header_stuff(): |
| 96 if self.try_to_match( |
96 if self.try_to_match( |
| 97 '^!LDRAW_ORG ' + |
97 '^!LDRAW_ORG ' + |
| 98 r'(' \ |
98 r'((?:Unofficial_)?(?:' \ |
| 99 '(?:Unofficial_)?' \ |
|
| 100 'Part|' \ |
99 'Part|' \ |
| 101 'Subpart|' \ |
100 'Subpart|' \ |
| 102 'Primitive|' \ |
101 'Primitive|' \ |
| 103 '8_Primitive|' \ |
102 '8_Primitive|' \ |
| 104 '48_Primitive|' \ |
103 '48_Primitive|' \ |
| 105 'Shortcut' \ |
104 'Shortcut' \ |
| 106 ')\s?' \ |
105 '))\s?' \ |
| 107 '(.*)$', |
106 '(.*)$', |
| 108 'part type'): |
107 'part type'): |
| 109 result.filetype = self.groups[0] |
108 result.filetype = self.groups[0] |
| 110 result.qualifiers = re.findall(r'(?:Physical_Colour|Alias|ORIGINAL|UPDATE \d\d\d\d-\d\d)', self.groups[1]) |
109 result.qualifiers = re.findall(r'(?:Physical_Colour|Alias|ORIGINAL|UPDATE \d\d\d\d-\d\d)', self.groups[1]) |
| 111 elif self.try_to_match( |
110 elif self.try_to_match( |