mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-19 09:45:47 -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)
|
self.move(self.final_path)
|
||||||
|
|
||||||
database = kwargs.get("database")
|
database = kwargs.get("database")
|
||||||
if database is not None:
|
if database:
|
||||||
database.add(self.id)
|
database.add(self.id)
|
||||||
logger.debug(f"{self.id} added to database")
|
logger.debug(f"{self.id} added to database")
|
||||||
|
|
||||||
|
|
|
@ -63,14 +63,14 @@ class TrackMetadata:
|
||||||
self.album: str
|
self.album: str
|
||||||
self.albumartist: str
|
self.albumartist: str
|
||||||
self.composer: str
|
self.composer: str
|
||||||
self.comment: Optional[str]
|
self.comment: Optional[str] = None
|
||||||
self.description: Optional[str]
|
self.description: Optional[str] = None
|
||||||
self.purchase_date: Optional[str]
|
self.purchase_date: Optional[str] = None
|
||||||
self.grouping: Optional[str]
|
self.grouping: Optional[str] = None
|
||||||
self.lyrics: Optional[str]
|
self.lyrics: Optional[str] = None
|
||||||
self.encoder: Optional[str]
|
self.encoder: Optional[str] = None
|
||||||
self.compilation: Optional[str]
|
self.compilation: Optional[str] = None
|
||||||
self.cover: str
|
self.cover: Optional[str] = None
|
||||||
self.tracktotal: int
|
self.tracktotal: int
|
||||||
self.tracknumber: int
|
self.tracknumber: int
|
||||||
self.discnumber: int
|
self.discnumber: int
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
downloadable form.
|
downloadable form.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
@ -561,6 +563,7 @@ class Artist(Tracklist):
|
||||||
logger.debug(f"Length of tracklist {len(self)}")
|
logger.debug(f"Length of tracklist {len(self)}")
|
||||||
logger.debug(f"Filters: {filters}")
|
logger.debug(f"Filters: {filters}")
|
||||||
|
|
||||||
|
final: Iterable
|
||||||
if "repeats" in filters:
|
if "repeats" in filters:
|
||||||
final = self._remove_repeats(bit_depth=max, sampling_rate=min)
|
final = self._remove_repeats(bit_depth=max, sampling_rate=min)
|
||||||
filters = tuple(f for f in filters if f != "repeats")
|
filters = tuple(f for f in filters if f != "repeats")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue