style: format code using black
This commit is contained in:
parent
c3e60f7cd4
commit
1e6c5a84d3
8 changed files with 7 additions and 6 deletions
|
@ -47,7 +47,6 @@ class StatsCollector:
|
|||
self,
|
||||
output: AnyOutput,
|
||||
) -> Dict[str, Stats]:
|
||||
|
||||
response = self._session.get(
|
||||
url=self.get_output_url(output),
|
||||
auth=(output.admin_user, output.admin_password),
|
||||
|
|
|
@ -234,7 +234,6 @@ class PypoFetch(Thread):
|
|||
|
||||
# Download all the media and put playlists in liquidsoap "annotate" format
|
||||
try:
|
||||
|
||||
# Make sure cache_dir exists
|
||||
download_dir = self.cache_dir
|
||||
try:
|
||||
|
|
|
@ -28,7 +28,6 @@ def create_liquidsoap_annotation(media):
|
|||
# with the metadata we get from Airtime. (You can modify metadata in Airtime's library,
|
||||
# which doesn't get saved back to the file.)
|
||||
if "metadata" in media:
|
||||
|
||||
if "artist_name" in media["metadata"]:
|
||||
artist_name = media["metadata"]["artist_name"]
|
||||
if isinstance(artist_name, str):
|
||||
|
|
|
@ -118,7 +118,6 @@ class ShowRecorder(Thread):
|
|||
return self.p is not None
|
||||
|
||||
def upload_file(self, filepath):
|
||||
|
||||
filename = os.path.split(filepath)[1]
|
||||
|
||||
# files is what requests actually expects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue