mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-19 01:35:24 -04:00
Catch NonStreamable error
This commit is contained in:
parent
6ed5f77464
commit
c31d334ae7
1 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,7 @@ from .constants import (
|
|||
)
|
||||
from .db import MusicDB
|
||||
from .downloader import Album, Artist, Label, Playlist, Track, Tracklist
|
||||
from .exceptions import AuthenticationError, NoResultsFound, ParsingError
|
||||
from .exceptions import AuthenticationError, NoResultsFound, ParsingError, NonStreamable
|
||||
from .utils import capitalize
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -179,7 +179,11 @@ class MusicDL(list):
|
|||
logger.debug("Added filter argument for artist/label: %s", filters_)
|
||||
|
||||
if not (isinstance(item, Tracklist) and item.loaded):
|
||||
try:
|
||||
item.load_meta()
|
||||
except NonStreamable:
|
||||
click.secho(f"{item!s} is not available, skipping.", fg='red')
|
||||
continue
|
||||
|
||||
if isinstance(item, Track):
|
||||
# track.download doesn't automatically tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue