From 4cd75714b7dae9b7e6a3f615e88cd803bbedec06 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 14 Mar 2013 22:23:39 +0100 Subject: [PATCH] support for users --- svtplay-dl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/svtplay-dl b/svtplay-dl index 5e74bd5..32438bd 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -46,6 +46,8 @@ class Options: self.hls = False self.other = None self.subtitle = False + self.username = None + self.password = None def get_media(url, options): stream = service_handler(url) @@ -109,6 +111,10 @@ def main(): parser.add_option("-S", "--subtitle", action="store_true", dest="subtitle", default=False, help="Download subtitle from the site if available.") + parser.add_option("-u", "--username", default=None, + help="Username") + parser.add_option("-p", "--password", default=None, + help="Password") (options, args) = parser.parse_args() if len(args) != 1: parser.error("incorrect number of arguments")