mirror of
https://github.com/miaowware/qrm2.git
synced 2026-06-01 13:44:02 -04:00
Metadata update!
- Added flag emojis to commands with countries. - Added image attribution and description to "image" commands. - Added file metadata to image resources. - Added new key in options.py: pika. - Added classes to deal with file metadata. - Added common paths to common.py. - Changed directory/file names of resources. - Documented the new metadata format. Fixes #83 - Metadata storage Fixes #86 - Country flags
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# File metadata format
|
||||
|
||||
Used for grouping info such as name, description, source, and such.
|
||||
|
||||
|
||||
## Format
|
||||
|
||||
*`id` is the dictionary key, and the list items are the attributes for each files.*
|
||||
|
||||
`meta.json`
|
||||
```json
|
||||
{
|
||||
"id": ["filename", "name", "long_name", "description", "source", "emoji"]
|
||||
}
|
||||
```
|
||||
|
||||
| Attribute | Description | Examples |
|
||||
| ------------- | ----------------------------------------------- | ------------------------------------------------ |
|
||||
| `filename` | The file name of the file, without the path. | `ca.png`, `itu.png` |
|
||||
| `name` | The name of the file. | `Canada`, `ITU Zones` |
|
||||
| `long_name` | The long name (title) of the file. | `Worldwide map of ITU Zones` |
|
||||
| `description` | The description accompanying the file. | `Full radio allocations chart for all services.` |
|
||||
| `source` | The source of the file. | `Instituto Federal de Telecomunicaciones (IFT)` |
|
||||
| `emoji` | A Unicode emoji associated with the file. | `📻`, `🇨🇦` |
|
||||
Reference in New Issue
Block a user