mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-12 22:26:16 -04:00
Handle ItemExists in core.py
Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
parent
835c8d4cc6
commit
26cb32b9a4
2 changed files with 11 additions and 5 deletions
|
@ -49,6 +49,7 @@ from . import db
|
|||
from streamrip.exceptions import (
|
||||
AuthenticationError,
|
||||
PartialFailure,
|
||||
ItemExists,
|
||||
MissingCredentials,
|
||||
NonStreamable,
|
||||
NoResultsFound,
|
||||
|
@ -303,6 +304,9 @@ class MusicDL(list):
|
|||
for failed_item in e.failed_items:
|
||||
self.failed_db.add(failed_item)
|
||||
continue
|
||||
except ItemExists as e:
|
||||
click.secho(f'"{e!s}" already exists. Skipping.', fg="yellow")
|
||||
continue
|
||||
|
||||
if hasattr(item, "id"):
|
||||
self.db.add([item.id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue