|
@@ -36,7 +36,7 @@ class Video(object):
|
|
|
self._id = video_id
|
|
|
self.title = title
|
|
|
self.site_id = site_id
|
|
|
- self.__conf = conf
|
|
|
+ self._conf = conf
|
|
|
self.downloaded = downloaded
|
|
|
self.failcnt = int(failcount)
|
|
|
|
|
@@ -55,7 +55,7 @@ class Video(object):
|
|
|
:return: boolean value
|
|
|
:rtype: bool
|
|
|
"""
|
|
|
- targetdir = self.__conf.values["downloaddir"] + "/" + directory
|
|
|
+ targetdir = self._conf.values["downloaddir"] + "/" + directory
|
|
|
if not os.access(targetdir, os.F_OK):
|
|
|
try:
|
|
|
LOGGER.debug(_("Creating directory %s"), targetdir)
|
|
@@ -66,7 +66,7 @@ class Video(object):
|
|
|
os.chdir(targetdir)
|
|
|
if self.downloaded == 0:
|
|
|
try:
|
|
|
- youtubedl_wrapper.download_video(self.__conf, url,
|
|
|
+ youtubedl_wrapper.download_video(self._conf, url,
|
|
|
itag_value)
|
|
|
except stov_exceptions.YoutubeDlCallFailed:
|
|
|
self.failcnt = int(self.failcnt) + 1
|