freesound icon indicating copy to clipboard operation
freesound copied to clipboard

Add license

Open tin2tin opened this issue 1 year ago • 1 comments

From my waveform experiments, this snippet will add license to the file data:

In UI:

            try:
                license = addon_data.freesound_list[addon_data.active_list_item].license
            except:
                license = "Unknown"
            row = col_list.row(align=True)
            split = row.split(factor=0.4, align=True)
            split.alignment = 'RIGHT'
            split.label(text="License")
            split = split.split(factor=0.6, align=True)
            split.alignment = 'LEFT'                
            split.label(text=license)```

And this in freesound.py:

```    license: StringProperty(
        name="License",
        description="The license of this sound",
        default="License"
    )```

tin2tin avatar Jul 30 '22 20:07 tin2tin

What is the purpose? There is already https://github.com/iwkse/freesound/blob/7ac73f675187934f03b964b0b3e63e0a6951abc1/freesound.py#L232

melMass avatar Jul 30 '22 22:07 melMass