|
@@ -96,6 +96,7 @@ class ConfigFileWriteErrorException(Exception):
|
|
file fails.
|
|
file fails.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(ConfigFileWriteErrorException, self).__init__()
|
|
super(ConfigFileWriteErrorException, self).__init__()
|
|
self.__message = _("The configuration could not be written, please"
|
|
self.__message = _("The configuration could not be written, please"
|
|
@@ -110,6 +111,7 @@ class DirectoryCreationFailedException(Exception):
|
|
"""This exception will be raised when the creation of a directory failed.
|
|
"""This exception will be raised when the creation of a directory failed.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(DirectoryCreationFailedException, self).__init__()
|
|
super(DirectoryCreationFailedException, self).__init__()
|
|
self.__message = _("The directory could not be created, "
|
|
self.__message = _("The directory could not be created, "
|
|
@@ -125,6 +127,7 @@ class ConfigFileReadErrorException(Exception):
|
|
opened for reading
|
|
opened for reading
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(ConfigFileReadErrorException, self).__init__()
|
|
super(ConfigFileReadErrorException, self).__init__()
|
|
self.__message = _("The configuration could not be read, please check "
|
|
self.__message = _("The configuration could not be read, please check "
|
|
@@ -140,6 +143,7 @@ class InvalidConfigurationVersionException(Exception):
|
|
is detected.
|
|
is detected.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(InvalidConfigurationVersionException, self).__init__()
|
|
super(InvalidConfigurationVersionException, self).__init__()
|
|
self.__message = _("Invalid config version read.")
|
|
self.__message = _("Invalid config version read.")
|
|
@@ -153,6 +157,7 @@ class SubscriptionDisabledException(Exception):
|
|
a requested action is not taken because of this fact.
|
|
a requested action is not taken because of this fact.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self, subscription):
|
|
def __init__(self, subscription):
|
|
super(SubscriptionDisabledException, self).__init__()
|
|
super(SubscriptionDisabledException, self).__init__()
|
|
self.__message = _("The subscription %s is disabled, videos will"
|
|
self.__message = _("The subscription %s is disabled, videos will"
|
|
@@ -167,6 +172,7 @@ class DownloadDirectoryCreationFailedException(Exception):
|
|
directory to download a video failed.
|
|
directory to download a video failed.
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(DownloadDirectoryCreationFailedException, self).__init__()
|
|
super(DownloadDirectoryCreationFailedException, self).__init__()
|
|
self.__message = _("The download directory does not exist and can't "
|
|
self.__message = _("The download directory does not exist and can't "
|
|
@@ -181,6 +187,7 @@ class ConfigurationMigrationFailed(Exception):
|
|
"""This exception will be raised when the migration of the configuration
|
|
"""This exception will be raised when the migration of the configuration
|
|
to the json format fails.
|
|
to the json format fails.
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(ConfigurationMigrationFailed, self).__init__()
|
|
super(ConfigurationMigrationFailed, self).__init__()
|
|
self._message = _("The migration of the configuration to the json "
|
|
self._message = _("The migration of the configuration to the json "
|
|
@@ -194,6 +201,7 @@ class YoutubeDlCallFailed(Exception):
|
|
"""This exception will be raised when a call to youtube-dl fails because
|
|
"""This exception will be raised when a call to youtube-dl fails because
|
|
of an error returned by youtube-dl.
|
|
of an error returned by youtube-dl.
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(YoutubeDlCallFailed, self).__init__()
|
|
super(YoutubeDlCallFailed, self).__init__()
|
|
self._message = _("Execution of youtube-dl failed.")
|
|
self._message = _("Execution of youtube-dl failed.")
|
|
@@ -206,6 +214,7 @@ class ChannelNotFound(Exception):
|
|
""" Will be raised when a specific user or channel cannot be found on
|
|
""" Will be raised when a specific user or channel cannot be found on
|
|
the site.
|
|
the site.
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(ChannelNotFound, self).__init__()
|
|
super(ChannelNotFound, self).__init__()
|
|
self._message = _("Channel not found on video site")
|
|
self._message = _("Channel not found on video site")
|
|
@@ -217,6 +226,7 @@ class ChannelNotFound(Exception):
|
|
class SiteUnsupported(Exception):
|
|
class SiteUnsupported(Exception):
|
|
""" Will be raised when stov is called for an unsupported site
|
|
""" Will be raised when stov is called for an unsupported site
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(SiteUnsupported, self).__init__()
|
|
super(SiteUnsupported, self).__init__()
|
|
self._message = _("Error: This site is not (yet) supported by stov!")
|
|
self._message = _("Error: This site is not (yet) supported by stov!")
|
|
@@ -229,6 +239,7 @@ class TypeNotSupported(Exception):
|
|
""" Will be raised when a video site does not support a specific
|
|
""" Will be raised when a video site does not support a specific
|
|
subscription type
|
|
subscription type
|
|
"""
|
|
"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(TypeNotSupported, self).__init__()
|
|
super(TypeNotSupported, self).__init__()
|
|
self._message = _("Error: This subscription type is not supported by "
|
|
self._message = _("Error: This subscription type is not supported by "
|