Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2e7d13d6f3
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (76 sloc) 3.275 kb
from datetime import datetime, timedelta
from lib.common import prompt
# These following are all the user-editable config vars.
# Sensitive values can be prompted at runtime.
# xyz = prompt("user: ")
# xyz = prompt("pass: ", hidden=True)
# Or have the filesystem revoke other users' read access to this file.
# Parser module name.
# See files in the "./lib/parsers/" directory for details.
# Choices: pickled_snarks, tabbed_text, transcript_lousycanuck,
# tweetsubs_log, twitter_search
#
parser_name = "tweetsubs_log"
# Exporter module name.
# See files in the "./lib/exporters/" directory for details.
# Choices: pickled_snarks, subrip, tabbed_text, transcript_html,
# transcript_wordpress
#
exporter_name = "subrip"
# Source to parse (url).
# Examples:
# http://freethoughtblogs.com/lousycanuck/transcript-post-name/
# file:///c:/saved-post.txt
# file:///saved-post.txt (relative to filesystem root)
# file:saved-post.txt (relative to current dir)
#
src_path = "file:../attic/log_Moontrap.txt"
# Destination to write (filesystem path).
# Examples: "./here.txt" or "C:/there.srt"
#
dest_path = "./MockTM - Moontrap.srt"
# Optional substring to expect of the first tweeted message.
# Use this to skip early msgs, or set to None.
first_msg = None
# Delay all msgs (+/-).
fudge_time = timedelta(minutes=0, seconds=0)
# Users egregiously out of sync can be additionally offset (+/-).
# Later parts of the movie may need different fudging as users pause/buffer/etc.
# Each user gets a list of paired deltas: when to fudge, and how much.
# [(in-movie time, delay thereafter), (in-movie time, delay), ...]
#
fudge_users = {}
fudge_users["@brx0"] = [(timedelta(minutes=0, seconds=0), timedelta(minutes=0, seconds=0))]
# ...
# A list of users to ignore.
# Example: ["@Tom", "@Dick", "@Harry"]
ignore_users = []
# Optional in-movie time to truncate msgs (after fudging).
# Use this to skip late msgs, or set to None.
# end_time = timedelta(hours=2, minutes=0, seconds=0)
#
end_time = timedelta(hours=1, minutes=22, seconds=49)
# Colored subtitles
# Choices: no,random,default
# no: there will be no color info.
# random: assign colors to users randomly.
# default: let the parser decide.
# At low resolutions, colored text can be ugly in VLC.
color_enabled = "random"
# Duration each msg appears on-screen.
show_time = timedelta(seconds=6)
# Parser-specific options.
parser_options = {}
parser_options["lousycanuck.reply_name"] = "MockTM"
parser_options["twitter_search.reply_name"] = "MockTM"
parser_options["twitter_search.since_date"] = datetime(2012, 9, 13)
parser_options["twitter_search.until_date"] = datetime(2012, 9, 15)
parser_options["twitter_search.passes"] = 1
# Exporter-specific options.
exporter_options = {}
exporter_options["subrip.include_names"] = True
exporter_options["transcript_html.faux_twitter_links"] = True
exporter_options["transcript_wordpress.xmlrpc_url"] = "http://.../xmlrpc.php"
exporter_options["transcript_wordpress.blog_user"] = ""
exporter_options["transcript_wordpress.blog_pass"] = ""
exporter_options["transcript_wordpress.post_title"] = ""
Jump to Line
Something went wrong with that request. Please try again.