forked from lay295/TwitchDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChatDownloadArgs.cs
43 lines (31 loc) · 2.11 KB
/
ChatDownloadArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using CommandLine;
using TwitchDownloaderCore.Options;
namespace TwitchDownloaderCLI.Modes.Arguments
{
[Verb("chatdownload", HelpText = "Downloads the chat from a VOD or clip")]
public class ChatDownloadArgs
{
[Option('u', "id", Required = true, HelpText = "The ID of the VOD or clip to download that chat of.")]
public string Id { get; set; }
[Option('o', "output", Required = true, HelpText = "Path to output file. File extension will be used to determine download type. Valid extensions are: json, html, and txt.")]
public string OutputFile { get; set; }
[Option('b', "beginning", HelpText = "Time in seconds to crop beginning.")]
public int CropBeginningTime { get; set; }
[Option('e', "ending", HelpText = "Time in seconds to crop ending.")]
public int CropEndingTime { get; set; }
[Option('E', "embed-images", Default = false, HelpText = "Embed first party emotes, badges, and cheermotes into the chat download for offline rendering.")]
public bool EmbedData { get; set; }
[Option("bttv", Default = true, HelpText = "Enable BTTV embedding in chat download. Requires -E / --embed-images!")]
public bool? BttvEmotes { get; set; }
[Option("ffz", Default = true, HelpText = "Enable FFZ embedding in chat download. Requires -E / --embed-images!")]
public bool? FfzEmotes { get; set; }
[Option("stv", Default = true, HelpText = "Enable 7tv embedding in chat download. Requires -E / --embed-images!")]
public bool? StvEmotes { get; set; }
[Option("timestamp-format", Default = TimestampFormat.Relative, HelpText = "Sets the timestamp format for .txt chat logs. Valid values are: Utc, Relative, and None")]
public TimestampFormat TimeFormat { get; set; }
[Option("chat-connections", Default = 4, HelpText = "Number of downloading connections for chat")]
public int ChatConnections { get; set; }
[Option("temp-path", Default = "", HelpText = "Path to temporary folder to use for cache.")]
public string TempFolder { get; set; }
}
}