diff --git a/src/ytdl_sub/entries/entry_parent.py b/src/ytdl_sub/entries/entry_parent.py index 13062449..c2af6341 100644 --- a/src/ytdl_sub/entries/entry_parent.py +++ b/src/ytdl_sub/entries/entry_parent.py @@ -18,6 +18,12 @@ class EntryParent(BaseEntry): def _get_children_entry_variables_to_add( self, child_entries: List[TChildEntry] ) -> Dict[str, str | int]: + """ + Adds source variables to the child entry derived from the parent entry. + """ + if not child_entries: + return {} + return {"playlist_max_upload_year": max(entry.upload_year for entry in child_entries)} # pylint: enable=no-self-use