Dmap.AvRecord

g Dmap.AvRecord Dmap.AvRecord GObject.GInterface GObject.GInterface GObject.GInterface->Dmap.AvRecord

Implementations:

None

Methods

class

cmp_by_album (a, b, db)

itunes_compat ()

read ()

Virtual Methods

do_itunes_compat ()

do_read ()

Properties

Name

Type

Flags

Short Description

bitrate

int

r/w

Song data bitrate in Kb/s

disc

int

r/w

Song disc number

duration

int

r/w

Song duration in seconds

filesize

int

r/w

Song data size in bytes

firstseen

int

r/w

FIXME

format

str

r/w

Song data format

has-video

bool

r/w

Song has video component

hash

GLib.Array

r/w

Hash of media file contents

location

str

r/w

URI pointing to song data

mediakind

Dmap.MediaKind

r/w

Media kind

mtime

int

r/w

Song modification time

rating

int

r/w

Song rating

songalbum

str

r/w

Album name

songalbumid

int

r/w

Album id

songartist

str

r/w

Song artist

songgenre

str

r/w

Song genre

sort-album

str

r/w

Album sort name

sort-artist

str

r/w

Song artist sort name

title

str

r/w

Song title

track

int

r/w

Song track number

year

int

r/w

Song publication year

Signals

None

Fields

None

Class Details

class Dmap.AvRecord
Bases:

GObject.GInterface

Structure:

Dmap.AvRecordInterface

classmethod cmp_by_album(a, b, db)
Parameters:
Return type:

int

Compares the two records associated with the provided keys according to album. Suitable to sort lists of albums.

itunes_compat()
Returns:

True if record is compatible with iTunes, else False.

Return type:

bool

read()
Raises:

GLib.Error

Returns:

A Gio.InputStream that provides read-only access to the data stream associated with record.

Return type:

Gio.InputStream

do_itunes_compat() virtual
Returns:

True if record is compatible with iTunes, else False.

Return type:

bool

do_read() virtual
Returns:

A Gio.InputStream that provides read-only access to the data stream associated with record.

Return type:

Gio.InputStream

Property Details

Dmap.AvRecord.props.bitrate
Name:

bitrate

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song data bitrate in Kb/s

Dmap.AvRecord.props.disc
Name:

disc

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song disc number

Dmap.AvRecord.props.duration
Name:

duration

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song duration in seconds

Dmap.AvRecord.props.filesize
Name:

filesize

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song data size in bytes

Dmap.AvRecord.props.firstseen
Name:

firstseen

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

FIXME

Dmap.AvRecord.props.format
Name:

format

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Song data format

Dmap.AvRecord.props.has_video
Name:

has-video

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Song has video component

Dmap.AvRecord.props.hash
Name:

hash

Type:

GLib.Array

Default Value:

None

Flags:

READABLE, WRITABLE

Hash of media file contents

Dmap.AvRecord.props.location
Name:

location

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

URI pointing to song data

Dmap.AvRecord.props.mediakind
Name:

mediakind

Type:

Dmap.MediaKind

Default Value:

Dmap.MediaKind.MUSIC

Flags:

READABLE, WRITABLE

Media kind

Dmap.AvRecord.props.mtime
Name:

mtime

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song modification time

Dmap.AvRecord.props.rating
Name:

rating

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song rating

Dmap.AvRecord.props.songalbum
Name:

songalbum

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Album name

Dmap.AvRecord.props.songalbumid
Name:

songalbumid

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Album id

Dmap.AvRecord.props.songartist
Name:

songartist

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Song artist

Dmap.AvRecord.props.songgenre
Name:

songgenre

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Song genre

Dmap.AvRecord.props.sort_album
Name:

sort-album

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Album sort name

Dmap.AvRecord.props.sort_artist
Name:

sort-artist

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Song artist sort name

Dmap.AvRecord.props.title
Name:

title

Type:

str

Default Value:

'Unknown'

Flags:

READABLE, WRITABLE

Song title

Dmap.AvRecord.props.track
Name:

track

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song track number

Dmap.AvRecord.props.year
Name:

year

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Song publication year