pyload/pyload — pull request #622 by andrenam (2014-05-18 19:46:47+00:00)
Title: New Event "packageFinishedUnrar" when there are no more archives to extract in a package

I am using the ExternalScript Hook to run scripts as soon as unrar_finished is triggered.
When there are rar-archives inside rar-archives, of course pyload triggers unrar_finished multiple times.
What I would like to have, is an event that triggers when all archives in a package are extracted. Would be easier for external scripts because you don't have to check for race conditions.

ExtractArchive Hook dispatches a new event: "packageFinishedUnrar"
when there are no more files to extract in a package

ExternalScript Hook listens to the new event "packageFinishedUnrar"
and calls external scripts in folder "package_finished_unrar" with the
arguments "package name", "package folder", "package password", "package id" (same as packageFinished)