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 MediaSharing.MediaSharing(system, config)

Provide the standard API for interacting with a media sharing site.

Such sites include things like YouTube or a Media Goblin hosted site.

Parameters:

  • system: the <no title> instance connected to the target system

  • config: the <no title> instance defining this user

comment(msg)

Add the given message as a comment on the current media.

login()

Using the given information in the config object, login to the correct site.

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.