# # DANGER DANGER # # You must call Gst.init() before trying to use any GStreamer elements for # anything. For example, if you import a module that has an object that # inherits from Gst.Bin... that can potentially mess up any GStreamer object # creation from that point forward. # # This means that Gst.init needs to be called before any plugins are loaded # from gi.repository import Gst Gst.init(None) try: __gst_version__ = '%s.%s.%s' % (Gst.VERSION_MAJOR, Gst.VERSION_MINOR, Gst.VERSION_MICRO) except AttributeError: # Old version of GStreamer < 1.3.3 # https://bugzilla.gnome.org/show_bug.cgi?id=703021 __gst_version__ = '**unknown version < 1.3.3**' from xl.version import register register('GStreamer', __gst_version__) del register
# exception to your version of the code, but you are not obligated to # do so. If you do not wish to do so, delete this exception statement # from your version. from collections import namedtuple import copy import threading import logging logger = logging.getLogger(__name__) from xl import version import mutagen version.register('Mutagen', mutagen.version_string) INFO_TAGS = ['__bitrate', '__length'] _compute_lock = threading.Lock() # Generic description of cover images # - type is a number corresponding to the cover type of ID3 APIC tags, # desc is a string describing the image, mime is a type, # data is the img data # -> if type is None, then the type is not changeable CoverImage = namedtuple('CoverImage', 'type desc mime data') class NotWritable(Exception): pass
from gi.repository import GLib from gi.repository import Gtk import logging logger = logging.getLogger(__name__) import os import sys from xl import common, player, providers, settings, version, xdg from xl.nls import gettext as _ from xlgui import guiutil version.register( "GTK+", "%s.%s.%s" % (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION, Gtk.MICRO_VERSION)) def get_controller(): return Main._main class Main(object): """ This is the main gui controller for exaile """ _main = None def __init__(self, exaile):
# exception to your version of the code, but you are not obligated to # do so. If you do not wish to do so, delete this exception statement # from your version. from collections import namedtuple import copy import threading import logging logger = logging.getLogger(__name__) from xl import version import mutagen version.register('Mutagen', mutagen.version_string) INFO_TAGS = ['__bitrate', '__length'] _compute_lock = threading.Lock() # Generic description of cover images # - type is a number corresponding to the cover type of ID3 APIC tags, # desc is a string describing the image, mime is a type, # data is the img data # -> if type is None, then the type is not changeable CoverImage = namedtuple('CoverImage', 'type desc mime data') class NotWritable(Exception):
from gi.repository import GLib from gi.repository import Gtk import logging logger = logging.getLogger(__name__) import os import sys from xl import common, player, providers, settings, version, xdg from xl.nls import gettext as _ from xlgui import guiutil version.register( "GTK+", "%s.%s.%s" % (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION, Gtk.MICRO_VERSION)) version.register("GTK+ theme", Gtk.Settings.get_default().props.gtk_theme_name) def get_controller(): return Main._main class Main(object): """ This is the main gui controller for exaile """ _main = None
from gi.repository import GLib from gi.repository import Gtk import logging logger = logging.getLogger(__name__) import os import sys from xl import common, player, providers, settings, version, xdg from xl.nls import gettext as _ from xlgui import guiutil version.register( "GTK+", "%s.%s.%s" % (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION, Gtk.MICRO_VERSION) ) version.register("GTK+ theme", Gtk.Settings.get_default().props.gtk_theme_name) def get_controller(): return Main._main class Main(object): """ This is the main gui controller for exaile """ _main = None
# # You must call Gst.init() before trying to use any GStreamer elements for # anything. For example, if you import a module that has an object that # inherits from Gst.Bin... that can potentially mess up any GStreamer object # creation from that point forward. # # This means that Gst.init needs to be called before any plugins are loaded # from gi.repository import Gst Gst.init(None) try: __gst_version__ = '%s.%s.%s' % ( Gst.VERSION_MAJOR, Gst.VERSION_MINOR, Gst.VERSION_MICRO, ) except AttributeError: # Old version of GStreamer < 1.3.3 # https://bugzilla.gnome.org/show_bug.cgi?id=703021 __gst_version__ = '**unknown version < 1.3.3**' from xl.version import register register('GStreamer', __gst_version__) del register