Skip to content

Commit

Permalink
Fix logger names
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Nov 6, 2024
1 parent cd9d45d commit e0d018e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/onthespot/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .api.soundcloud import soundcloud_login_user, soundcloud_get_token
from .api.deezer import deezer_login_user, deezer_get_token

logger = get_logger("spotify.downloader")
logger = get_logger("accounts")

class FillAccountPool(QThread):
finished = pyqtSignal()
Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/api/deezer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ..runtimedata import get_logger, account_pool
from ..utils import conv_list_format, make_call

logger = get_logger("spotify.api")
logger = get_logger("api.deezer")

DEEZER_BASE = "https://api.deezer.com/"

Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/api/soundcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

SOUNDCLOUD_BASE = "https://api-v2.soundcloud.com"

logger = get_logger("worker.utility")
logger = get_logger("api.soundcloud")

def soundcloud_parse_url(url):
headers = {}
Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/api/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..runtimedata import get_logger, account_pool
from ..utils import make_call, conv_list_format

logger = get_logger("spotify.api")
logger = get_logger("api.spotify")


def spotify_new_session():
Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .utils import sanitize_data, format_track_path


logger = get_logger("spotify.downloader")
logger = get_logger("downloader")


class DownloadWorker(QObject):
Expand Down
1 change: 1 addition & 0 deletions src/onthespot/gui/mainui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ..accounts import get_account_token, FillAccountPool
from ..search import get_search_results
from ..downloader import DownloadWorker

logger = get_logger('gui.main_ui')


Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/parse_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .accounts import get_account_token
from .api.deezer import deezer_get_album_items, deezer_get_playlist_items, deezer_get_playlist_data, deezer_get_artist_albums

logger = get_logger('gui.main_ui')
logger = get_logger('parse_item')

SOUNDCLOUD_URL_REGEX = re.compile(r"https://soundcloud.com/[-\w:/]+")
SPOTIFY_URL_REGEX = re.compile(r"^(https?://)?open\.spotify\.com/(intl-([a-zA-Z]+)/|)(?P<type>track|album|artist|playlist|episode|show)/(?P<id>[0-9a-zA-Z]{22})(\?si=.+?)?$")
Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/post_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .otsconfig import config
from .runtimedata import get_logger

logger = get_logger("worker.media")
logger = get_logger("post_download")


def convert_audio_format(filename, metadata, bitrate, default_format):
Expand Down
2 changes: 1 addition & 1 deletion src/onthespot/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .api.soundcloud import soundcloud_get_search_results
from .api.deezer import deezer_get_search_results

logger = get_logger("spotify.api")
logger = get_logger("search")

def get_search_results(search_term, content_types=None):
try:
Expand Down

0 comments on commit e0d018e

Please sign in to comment.