EmbyPy EmbyObject¶
EmbyObject (object_dict, connector[, save]) |
Deafult EMby Object Template |
EmbyObject.id |
string with hexidecimal hash representing the id of this object in emby |
EmbyObject.name |
name of the item |
EmbyObject.path |
get the filepath of the media file (not url) |
EmbyObject.type |
get the object type (general) |
EmbyObject.media_type |
get the object type (specific) |
EmbyObject.genres |
list of genres |
EmbyObject.tags |
list of tags |
EmbyObject.overview |
the description of the item |
EmbyObject.primary_image_url |
url of the main poster image |
EmbyObject.community_rating |
int [0-10] with the rating of the item |
EmbyObject.primary_image_url |
url of the main poster image |
EmbyObject.parent |
|
EmbyObject.url |
|
EmbyObject.update (**kargs) |
|
EmbyObject.send (**kargs) |
|
EmbyObject.process (**kargs) |
-
class
embypy.objects.
EmbyObject
(object_dict, connector, save=True)[source]¶ Deafult EMby Object Template
Parameters: - object_dict (dict) – dictionary with json info returned from emby
- connector (embypy.utils.connector.Connector) – connector object to make upstream api calls
- save (bool) – if true, append to list of existing objects saves space/increases speed/reduces issues only set to false if creating a temp object that will be thrown out
-
id
¶ string with hexidecimal hash representing the id of this object in emby
-
name
¶ name of the item
See also
post
-
title
¶ same as name
See also
post
-
watched
¶ returns True it item has been watched
-
played
¶ same as watched
-
percentage_played
¶ returns played percentage [0,1] of item
-
duration
¶ returns duration of item in seconds
-
play_count
¶ returns users playcount for item
-
favorite
¶ returns True if user favorited item
-
type
¶ get the object type (general)
See also
list of tags
See also
post
,genres
-
overview
¶ the description of the item
See also
post
-
community_rating
¶ int [0-10] with the rating of the item
See also
post
-
primary_image_url
¶ url of the main poster image
-
date
¶ alias of premier_date
-
premier_date
¶ datetime of when the item premiered (aired/released) (or None)
-
date_created
¶ datetime of when the item was added to the server (or None)
-
parent_id
¶ id of the parent object
See also
parent
-
path
¶ get the filepath of the media file (not url)
See also
url