ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class MediaSharingImpl.MediaSharingImpl(system, config)¶
- comment(msg)¶
Add the given message as a comment on the current media.
- post(src, title, desc)¶
Post a new bit of content to the site.
Parameters:
src: the string source material to post (could be file path or URL)
title: the title of this new post
desc: the description of this content
- search(terms)¶
Search the media site for content related to the given terms
- watch(target)¶
Watch the media with the given target identifier (e.g., the text of the link to click to start it)
- watch_random()¶
Given a list of available media to consume, watch one of them chosen at random.
- MediaSharingImpl.get_media_sharing(system, config, m_type=None)¶
Get an instance of the proper class for the given Media Sharing type.
Parameters:
system: the <no title> instance connected to the target system
config: the <no title> instance defining this user
m_type: Optionally, the type to create overriding what is in config