Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
else:
self.rss = utils.convert_youtube_id_to_rss(
'playlist',
youtube_id,
)
def set_source(self, source):
self.source = source
class Video(GenericMedia):
"""Python class that handles an individual video.
Args:
dbid (int): A unique ID for this media data object
name (str): The video name
parent_obj (media.Channel, media.Playlist, media.Folder): The parent
media data object, if any
options_obj (options.OptionsManager): The object specifying download
options for this video, if any
no_sort_flag (bool): True when the calling code wants to delay sorting
def set_parent_obj(self, parent_obj):
self.parent_obj = parent_obj
def set_warning(self, msg):
# The media.Folder object has no error/warning IVs (and shouldn't
# receive any error/warning messages)
if not isinstance(self, Folder):
self.warning_list.append(msg)
class GenericContainer(GenericMedia):
"""Base python class inherited by media.Channel, media.Playlist and
media.Folder."""
# Public class methods
def compile_all_containers(self, container_list):
"""Can be called by anything. Subsequently called by this function
recursively.
Appends to the specified list this container, then calls all this
function recursively for all media.Channel, media.Playlist and
media.Folder objects, so they too can be added to the list.