cjcodeproj / medialibrary

Python code to read XML media files
MIT License
2 stars 0 forks source link

Abstract catalog object #159

Closed cjcodeproj closed 7 months ago

cjcodeproj commented 7 months ago

Consider an AbstractCatalog class, with common elements used in all catalogs.

Reasoning is because Catalog structures for different content types have different fields.

cjcodeproj commented 7 months ago

Commit:

https://github.com/cjcodeproj/medialibrary/commit/a459494faf9da1daf1d3d0ae123ff9b00ee3b5aa

cjcodeproj commented 7 months ago

Closing notes:

I left a generic Catalog() object class in place, meant to act as a sort of final object.

The unit tests work across the Catalog() object, since the AbstractCatalog is not meant to be used as an instance.