mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-19 17:55:23 -04:00
Misc tying fixes
This commit is contained in:
parent
e6a5d2cd39
commit
d6830adcda
3 changed files with 12 additions and 9 deletions
|
@ -241,7 +241,7 @@ class Track:
|
|||
self.move(self.final_path)
|
||||
|
||||
database = kwargs.get("database")
|
||||
if database is not None:
|
||||
if database:
|
||||
database.add(self.id)
|
||||
logger.debug(f"{self.id} added to database")
|
||||
|
||||
|
|
|
@ -63,14 +63,14 @@ class TrackMetadata:
|
|||
self.album: str
|
||||
self.albumartist: str
|
||||
self.composer: str
|
||||
self.comment: Optional[str]
|
||||
self.description: Optional[str]
|
||||
self.purchase_date: Optional[str]
|
||||
self.grouping: Optional[str]
|
||||
self.lyrics: Optional[str]
|
||||
self.encoder: Optional[str]
|
||||
self.compilation: Optional[str]
|
||||
self.cover: str
|
||||
self.comment: Optional[str] = None
|
||||
self.description: Optional[str] = None
|
||||
self.purchase_date: Optional[str] = None
|
||||
self.grouping: Optional[str] = None
|
||||
self.lyrics: Optional[str] = None
|
||||
self.encoder: Optional[str] = None
|
||||
self.compilation: Optional[str] = None
|
||||
self.cover: Optional[str] = None
|
||||
self.tracktotal: int
|
||||
self.tracknumber: int
|
||||
self.discnumber: int
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
downloadable form.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import functools
|
||||
import logging
|
||||
import os
|
||||
|
@ -561,6 +563,7 @@ class Artist(Tracklist):
|
|||
logger.debug(f"Length of tracklist {len(self)}")
|
||||
logger.debug(f"Filters: {filters}")
|
||||
|
||||
final: Iterable
|
||||
if "repeats" in filters:
|
||||
final = self._remove_repeats(bit_depth=max, sampling_rate=min)
|
||||
filters = tuple(f for f in filters if f != "repeats")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue