/usr/lib/python3/dist-packages/tunigo/release.py is in python3-tunigo 1.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | from __future__ import unicode_literals
from tunigo import utils
class Release(object):
def __init__(
self,
album_name='',
artist_name='',
artist_uri='',
author_ids=[],
created=0,
description='',
genre_id='',
id='',
image='',
location='',
num_tracks=0,
publication_date='',
regions=[],
tags=[],
updated=0,
uri='',
version=0,
item_array=None):
if item_array:
utils.set_instance_array_variables(
self,
['_author_ids', '_regions', '_tags'],
item_array)
utils.set_instance_int_variables(
self,
['_created', '_num_tracks', '_updated', '_version'],
item_array)
utils.set_instance_string_variables(
self,
['_album_name', '_artist_name', '_artist_uri', '_description',
'_genre_id', '_id', '_image', '_location',
'_publication_date', '_uri'],
item_array)
else:
self._album_name = album_name
self._artist_name = artist_name
self._artist_uri = artist_uri
self._author_ids = author_ids
self._created = int(created)
self._description = description
self._genre_id = genre_id
self._id = id
self._image = image
self._location = location
self._num_tracks = int(num_tracks)
self._publication_date = publication_date
self._regions = regions
self._tags = tags
self._updated = int(updated)
self._uri = uri
self._version = int(version)
def __repr__(self):
return "Release(uri='{}')".format(self._uri)
def __str__(self):
return '{} - {} ({})'.format(
self._artist_name,
self._album_name,
self._uri)
@property
def album_name(self):
return self._album_name
@property
def artist_name(self):
return self._artist_name
@property
def artist_uri(self):
return self._artist_uri
@property
def author_ids(self):
return self._author_ids
@property
def created(self):
return self._created
@property
def description(self):
return self._description
@property
def genre_id(self):
return self._genre_id
@property
def id(self):
return self._id
@property
def image(self):
return self._image
@property
def location(self):
return self._location
@property
def num_tracks(self):
return self._num_tracks
@property
def publication_date(self):
return self._publication_date
@property
def regions(self):
return self._regions
@property
def tags(self):
return self._tags
@property
def updated(self):
return self._updated
@property
def uri(self):
return self._uri
@property
def version(self):
return self._version
|