Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 16, 2025
1 parent 43b027f commit b33951d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions music_assistant/providers/audiobookshelf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
from collections.abc import AsyncGenerator, Sequence
from typing import TYPE_CHECKING

from music_assistant_models.config_entries import (
ConfigEntry,
ConfigValueType,
ProviderConfig,
)
from music_assistant_models.config_entries import ConfigEntry, ConfigValueType, ProviderConfig
from music_assistant_models.enums import (
ConfigEntryType,
ContentType,
Expand All @@ -39,9 +35,7 @@
from music_assistant_models.streamdetails import StreamDetails

from music_assistant.models.music_provider import MusicProvider
from music_assistant.providers.audiobookshelf.abs_client import (
ABSClient,
)
from music_assistant.providers.audiobookshelf.abs_client import ABSClient
from music_assistant.providers.audiobookshelf.abs_schema import (
ABSAudioBook,
ABSLibrary,
Expand Down Expand Up @@ -182,7 +176,9 @@ def _parse_podcast(self, abs_podcast: ABSPodcast) -> Podcast:
)
mass_podcast.metadata.description = abs_podcast.media.metadata.description
token = self._client.token
image_url = f"{self.config.get_value(CONF_URL)}/api/items/{abs_podcast.id_}/cover?token={token}"
image_url = (
f"{self.config.get_value(CONF_URL)}/api/items/{abs_podcast.id_}/cover?token={token}"
)
mass_podcast.metadata.images = UniqueList(
[MediaItemImage(type=ImageType.THUMB, path=image_url, provider=self.lookup_key)]
)
Expand Down

0 comments on commit b33951d

Please sign in to comment.