Fix package name references
This commit is contained in:
@@ -6,16 +6,16 @@ from typing import Any, Callable, cast, Iterable, List, Optional, Tuple
|
||||
|
||||
from gi.repository import Gdk, Gio, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import (
|
||||
from ..adapters import (
|
||||
AdapterManager,
|
||||
AlbumSearchQuery,
|
||||
api_objects as API,
|
||||
CacheMissError,
|
||||
Result,
|
||||
)
|
||||
from sublime.config import AppConfiguration
|
||||
from sublime.ui import util
|
||||
from sublime.ui.common import AlbumWithSongs, IconButton, LoadError, SpinnerImage
|
||||
from ..config import AppConfiguration
|
||||
from ..ui import util
|
||||
from ..ui.common import AlbumWithSongs, IconButton, LoadError, SpinnerImage
|
||||
|
||||
|
||||
def _to_type(query_type: AlbumSearchQuery.Type) -> str:
|
||||
|
@@ -5,15 +5,15 @@ from typing import cast, List, Sequence
|
||||
|
||||
from gi.repository import Gio, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import (
|
||||
from ..adapters import (
|
||||
AdapterManager,
|
||||
api_objects as API,
|
||||
CacheMissError,
|
||||
SongCacheStatus,
|
||||
)
|
||||
from sublime.config import AppConfiguration
|
||||
from sublime.ui import util
|
||||
from sublime.ui.common import AlbumWithSongs, IconButton, LoadError, SpinnerImage
|
||||
from ..config import AppConfiguration
|
||||
from ..ui import util
|
||||
from ..ui.common import AlbumWithSongs, IconButton, LoadError, SpinnerImage
|
||||
|
||||
|
||||
class ArtistsPanel(Gtk.Paned):
|
||||
|
@@ -3,10 +3,10 @@ from typing import Any, cast, List, Optional, Tuple
|
||||
|
||||
from gi.repository import Gdk, Gio, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import AdapterManager, api_objects as API, CacheMissError, Result
|
||||
from sublime.config import AppConfiguration
|
||||
from sublime.ui import util
|
||||
from sublime.ui.common import IconButton, LoadError, SongListColumn
|
||||
from ..adapters import AdapterManager, api_objects as API, CacheMissError, Result
|
||||
from ..config import AppConfiguration
|
||||
from ..ui import util
|
||||
from ..ui.common import IconButton, LoadError, SongListColumn
|
||||
|
||||
|
||||
class BrowsePanel(Gtk.Overlay):
|
||||
|
@@ -3,9 +3,9 @@ from typing import Any, cast, List
|
||||
|
||||
from gi.repository import Gdk, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import AdapterManager, api_objects as API, Result
|
||||
from sublime.config import AppConfiguration
|
||||
from sublime.ui import util
|
||||
from sublime_music.adapters import AdapterManager, api_objects as API, Result
|
||||
from sublime_music.config import AppConfiguration
|
||||
from sublime_music.ui import util
|
||||
|
||||
from .icon_button import IconButton
|
||||
from .load_error import LoadError
|
||||
|
@@ -4,9 +4,9 @@ from typing import Any, Optional, Type
|
||||
|
||||
from gi.repository import Gio, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import AdapterManager, UIInfo
|
||||
from sublime.adapters.filesystem import FilesystemAdapter
|
||||
from sublime.config import ConfigurationStore, ProviderConfiguration
|
||||
from ..adapters import AdapterManager, UIInfo
|
||||
from ..adapters.filesystem import FilesystemAdapter
|
||||
from ..config import ConfigurationStore, ProviderConfiguration
|
||||
|
||||
|
||||
class AdapterTypeModel(GObject.GObject):
|
||||
|
@@ -3,16 +3,16 @@ from typing import Any, Callable, Dict, Optional, Set, Tuple
|
||||
|
||||
from gi.repository import Gdk, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import (
|
||||
from ..adapters import (
|
||||
AdapterManager,
|
||||
api_objects as API,
|
||||
DownloadProgress,
|
||||
Result,
|
||||
)
|
||||
from sublime.config import AppConfiguration, ProviderConfiguration
|
||||
from sublime.players import PlayerManager
|
||||
from sublime.ui import albums, artists, browse, player_controls, playlists, util
|
||||
from sublime.ui.common import IconButton, IconMenuButton, SpinnerImage
|
||||
from ..config import AppConfiguration, ProviderConfiguration
|
||||
from ..players import PlayerManager
|
||||
from ..ui import albums, artists, browse, player_controls, playlists, util
|
||||
from ..ui.common import IconButton, IconMenuButton, SpinnerImage
|
||||
|
||||
|
||||
class MainWindow(Gtk.ApplicationWindow):
|
||||
|
@@ -6,10 +6,10 @@ from typing import Any, cast, Dict, List, Tuple
|
||||
from fuzzywuzzy import fuzz
|
||||
from gi.repository import Gdk, Gio, GLib, GObject, Gtk, Pango
|
||||
|
||||
from sublime.adapters import AdapterManager, api_objects as API
|
||||
from sublime.config import AppConfiguration
|
||||
from sublime.ui import util
|
||||
from sublime.ui.common import (
|
||||
from ..adapters import AdapterManager, api_objects as API
|
||||
from ..config import AppConfiguration
|
||||
from ..ui import util
|
||||
from ..ui.common import (
|
||||
IconButton,
|
||||
LoadError,
|
||||
SongListColumn,
|
||||
|
@@ -3,8 +3,8 @@ from datetime import timedelta
|
||||
from enum import Enum
|
||||
from typing import Any, Callable, Dict, Optional, Set, Tuple, Type
|
||||
|
||||
from sublime.adapters import AlbumSearchQuery
|
||||
from sublime.adapters.api_objects import Genre, Song
|
||||
from ..adapters import AlbumSearchQuery
|
||||
from ..adapters.api_objects import Genre, Song
|
||||
|
||||
|
||||
class RepeatType(Enum):
|
||||
@@ -109,7 +109,7 @@ class UIState:
|
||||
self.playing = False
|
||||
|
||||
def __init_available_players__(self):
|
||||
from sublime.players import PlayerManager
|
||||
from sublime_music.players import PlayerManager
|
||||
|
||||
self.available_players = {
|
||||
pt: set() for pt in PlayerManager.available_player_types
|
||||
@@ -125,7 +125,7 @@ class UIState:
|
||||
if not self.play_queue or self.current_song_index < 0:
|
||||
return None
|
||||
|
||||
from sublime.adapters import AdapterManager
|
||||
from sublime_music.adapters import AdapterManager
|
||||
|
||||
current_song_id = self.play_queue[self.current_song_index]
|
||||
|
||||
|
@@ -16,9 +16,9 @@ from typing import (
|
||||
from deepdiff import DeepDiff
|
||||
from gi.repository import Gdk, GLib, Gtk
|
||||
|
||||
from sublime.adapters import AdapterManager, CacheMissError, Result, SongCacheStatus
|
||||
from sublime.adapters.api_objects import Playlist, Song
|
||||
from sublime.config import AppConfiguration
|
||||
from ..adapters import AdapterManager, CacheMissError, Result, SongCacheStatus
|
||||
from ..adapters.api_objects import Playlist, Song
|
||||
from ..config import AppConfiguration
|
||||
|
||||
|
||||
def format_song_duration(duration_secs: Union[int, timedelta, None]) -> str:
|
||||
|
Reference in New Issue
Block a user