aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/postprocessor/execafterdownload.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/postprocessor/execafterdownload.py')
-rw-r--r--youtube_dlc/postprocessor/execafterdownload.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dlc/postprocessor/execafterdownload.py b/youtube_dlc/postprocessor/execafterdownload.py
index 4083cea3e..24dc64ef0 100644
--- a/youtube_dlc/postprocessor/execafterdownload.py
+++ b/youtube_dlc/postprocessor/execafterdownload.py
@@ -11,12 +11,15 @@ from ..utils import (
class ExecAfterDownloadPP(PostProcessor):
- PP_NAME = 'Exec'
def __init__(self, downloader, exec_cmd):
super(ExecAfterDownloadPP, self).__init__(downloader)
self.exec_cmd = exec_cmd
+ @classmethod
+ def pp_key(cls):
+ return 'Exec'
+
def run(self, information):
cmd = self.exec_cmd
if '{}' not in cmd: