wrolpi/wrolpi/collections/errors.py
Roland 74cb5171da
FileGroups in Collections can be reorganized in the Collection's directory.
* Batch reorganization is supported for both Domain and Channel Collections.
* Batch reorganization happens when any Collection does not match the respective file format. For example, a Channel Collection file format that does not match the `yt_dlp_options.file_name_format` will show `needs_reorganization`.
* Individual Collections can always be reorganized. The reorganization is a little more aggressive. Useful for when some files may have been missed in the batch reorganization.
2026-01-31 18:08:41 -07:00

15 lines
432 B
Python

from wrolpi.errors import APIError
__all__ = ['UnknownCollection', 'ReorganizationConflict']
class UnknownCollection(APIError):
"""Cannot find Collection"""
code = 'UNKNOWN_COLLECTION'
summary = 'Cannot find Collection'
class ReorganizationConflict(APIError):
"""Reorganization would cause filename conflicts"""
code = 'REORGANIZATION_CONFLICT'
summary = 'Reorganization would cause filename conflicts'