You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the catalog only has data for images. To add audio, we need to create the Storage class for audio. The first step for this is extracting common media metadata from ImageStore class to MediaStore class. This MediaStore class will be the base for other media types in the future.
Solution Description
The solution would be to extract the common columns that would be used for any media type into an abstract base class, MediaStore. This class would handle data cleaning and saving the buffer to the disk. The add_item method for cleaning and storing the media items would be implemented in the child classes: ImageStore, AudioStore, etc, as they have some logic specific to the media type.
Alternatives
An alternative could be to create a completely separate AudioStore class. This would be problematic as it would make us have duplicate code.
Additional context
The text was updated successfully, but these errors were encountered:
Problem Description
Currently, the catalog only has data for images. To add audio, we need to create the Storage class for audio. The first step for this is extracting common media metadata from ImageStore class to MediaStore class. This MediaStore class will be the base for other media types in the future.
Solution Description
The solution would be to extract the common columns that would be used for any media type into an abstract base class, MediaStore. This class would handle data cleaning and saving the buffer to the disk. The
add_item
method for cleaning and storing the media items would be implemented in the child classes: ImageStore, AudioStore, etc, as they have some logic specific to the media type.Alternatives
An alternative could be to create a completely separate AudioStore class. This would be problematic as it would make us have duplicate code.
Additional context
The text was updated successfully, but these errors were encountered: