|
@@ -56,10 +56,11 @@ class Conf(object):
|
|
|
"password": "",
|
|
|
"youtube-dl": "",
|
|
|
"notify": "yes",
|
|
|
- "config_version": "9",
|
|
|
+ "config_version": "10",
|
|
|
"db_version": "6",
|
|
|
- "videocodec": "mp4",
|
|
|
- "maxresolution": "1080p",
|
|
|
+ "video_codec": "mp4",
|
|
|
+ "video_height": "1080",
|
|
|
+ "audio_quality": "bestaudio",
|
|
|
"maxfails": 50,
|
|
|
"check_title": "no"
|
|
|
}
|
|
@@ -82,10 +83,12 @@ class Conf(object):
|
|
|
"youtube-dl": _("the path to your youtube-dl installation"),
|
|
|
"notify": _("if you want to be notified via e-mail about new "
|
|
|
"videos"),
|
|
|
- "videocodec": _("which video codec you prefer (h264, webm or "
|
|
|
+ "video_codec": _("which video codec you prefer (h264, webm or "
|
|
|
"flv)"),
|
|
|
- "maxresolution": _("which resolution you prefer (360p, 480p, 720p "
|
|
|
- "or 1080p)"),
|
|
|
+ "video_height": _("sets the height of the video to download (e.g."
|
|
|
+ " 1080 for 1920x180)"),
|
|
|
+ "audio_quality": _("sets the requested audio quality "
|
|
|
+ "(e.g. bestaudio)"),
|
|
|
"check_title": _("if you want to compare the title of a video "
|
|
|
"with the subscription search string")
|
|
|
}
|
|
@@ -267,3 +270,6 @@ class Conf(object):
|
|
|
console_handler = logging.StreamHandler()
|
|
|
logger.addHandler(console_handler)
|
|
|
return logger
|
|
|
+
|
|
|
+ def get_value(self, identifier):
|
|
|
+ return self.values[identifier];
|