|
a/src/cdplugins/tidal/tidalapi/models.py |
|
b/src/cdplugins/tidal/tidalapi/models.py |
|
... |
|
... |
15 |
# You should have received a copy of the GNU Lesser General Public License
|
15 |
# You should have received a copy of the GNU Lesser General Public License
|
16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17 |
|
17 |
|
18 |
|
18 |
|
19 |
from __future__ import unicode_literals
|
19 |
from __future__ import unicode_literals
|
20 |
from enum import Enum
|
|
|
21 |
|
20 |
|
22 |
IMG_URL = "http://images.osl.wimpmusic.com/im/im?w={width}&h={height}&{id_type}={id}"
|
21 |
IMG_URL = "http://images.osl.wimpmusic.com/im/im?w={width}&h={height}&{id_type}={id}"
|
23 |
|
22 |
|
24 |
|
23 |
|
25 |
class Model(object):
|
24 |
class Model(object):
|
|
... |
|
... |
84 |
|
83 |
|
85 |
|
84 |
|
86 |
class Category(Model):
|
85 |
class Category(Model):
|
87 |
image = None
|
86 |
image = None
|
88 |
|
87 |
|
89 |
|
|
|
90 |
class Role(Enum):
|
|
|
91 |
main = 'MAIN'
|
|
|
92 |
featured = 'FEATURED'
|
|
|