summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/seiga.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/seiga.py')
-rw-r--r--gallery_dl/extractor/seiga.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/seiga.py b/gallery_dl/extractor/seiga.py
index b32a170..7f9130d 100644
--- a/gallery_dl/extractor/seiga.py
+++ b/gallery_dl/extractor/seiga.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2016-2019 Mike Fährmann
+# Copyright 2016-2020 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -54,6 +54,10 @@ class SeigaExtractor(Extractor):
@cache(maxage=7*24*3600, keyarg=1)
def _login_impl(self, username, password):
+ if not username or not password:
+ raise exception.AuthenticationError(
+ "Username and password required")
+
self.log.info("Logging in as %s", username)
url = "https://account.nicovideo.jp/api/v1/login"
data = {"mail_tel": username, "password": password}