MythTV  master
Functions | Variables
discid.util Namespace Reference

Functions

def _encode (string)
 
def _decode (byte_string)
 
def _sectors_to_seconds (sectors)
 

Variables

int SECTORS_PER_SECOND = 75
 

Function Documentation

◆ _encode()

def discid.util._encode (   string)
private
Encode (unicode) string to byte string

Definition at line 25 of file util.py.

Referenced by discid.disc.Disc.read().

◆ _decode()

def discid.util._decode (   byte_string)
private

◆ _sectors_to_seconds()

def discid.util._sectors_to_seconds (   sectors)
private
Round sectors to seconds like done on MusicBrainz Server

The result is forced to :obj:int to make formatted output easier.

Definition at line 46 of file util.py.

Referenced by discid.track.Track.seconds(), and discid.disc.Disc.seconds().

Variable Documentation

◆ SECTORS_PER_SECOND

int discid.util.SECTORS_PER_SECOND = 75

Definition at line 23 of file util.py.