diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 5f5403e7..8207012c 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -24,7 +24,7 @@ jobs: - name: Build Windows GUI run: dotnet publish TwitchDownloaderWPF -p:PublishProfile=Windows -p:DebugType=None -p:DebugSymbols=false - - name: Download Ffmpeg To Workspace + - name: Download FFmpeg To Workspace # You may pin to the exact commit or the version. # uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc uses: carlosperate/download-file-action@v1.0.3 @@ -34,7 +34,7 @@ jobs: # New filename to rename the downloaded file file-name: ffmpeg.zip - - name: Bundle Ffmpeg + - name: Bundle FFmpeg run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe - name: Zip Windows GUI @@ -74,31 +74,31 @@ jobs: - name: Zip Windows CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows/TwitchDownloaderCLI.exe + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows" dest: TwitchDownloaderCLI-Windows-x64.zip - name: Zip Linux CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux" dest: TwitchDownloaderCLI-Linux-x64.zip - name: Zip LinuxAlpine CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine" dest: TwitchDownloaderCLI-LinuxAlpine-x64.zip - name: Zip LinuxArm CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm" dest: TwitchDownloaderCLI-LinuxArm.zip - name: Zip LinuxArm64 CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64" dest: TwitchDownloaderCLI-LinuxArm64.zip - name: Upload Windows CLI Artifact Asset @@ -148,7 +148,7 @@ jobs: - name: Zip MacOS CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS" dest: TwitchDownloaderCLI-MacOS-x64.zip - name: Upload MacOS CLI Artifact Asset diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a09e6af8..e1d49f23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,7 @@ jobs: - name: Build Windows GUI run: dotnet publish TwitchDownloaderWPF -p:PublishProfile=Windows -p:DebugType=None -p:DebugSymbols=false - - name: Download Ffmpeg To Workspace + - name: Download FFmpeg To Workspace # You may pin to the exact commit or the version. # uses: carlosperate/download-file-action@e85e0aa6262f13571d17a4a39687b26981c583dc uses: carlosperate/download-file-action@v1.0.3 @@ -59,7 +59,7 @@ jobs: # New filename to rename the downloaded file file-name: ffmpeg.zip - - name: Bundle Ffmpeg + - name: Bundle FFmpeg run: tar xfz ffmpeg.zip --strip-components=1; copy bin/ffmpeg.exe TwitchDownloaderWPF/bin/Release/net6.0-windows/publish/win-x64/ffmpeg.exe - name: Zip Windows GUI Release Asset @@ -115,31 +115,31 @@ jobs: - name: Zip Windows CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows/TwitchDownloaderCLI.exe + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Windows" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Windows-x64.zip - name: Zip Linux CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/Linux" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-Linux-x64.zip - name: Zip LinuxAlpine CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxAlpine" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxAlpine-x64.zip - name: Zip LinuxArm CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm.zip - name: Zip LinuxArm64 CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/LinuxArm64" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-LinuxArm64.zip - name: Download URL @@ -220,7 +220,7 @@ jobs: - name: Zip MacOS CLI uses: vimtor/action-zip@v1 with: - files: TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS/TwitchDownloaderCLI + files: "TwitchDownloaderCLI/bin/Release/net6.0/publish/MacOS" dest: TwitchDownloaderCLI-${{ github.event.inputs.release_tag }}-MacOS-x64.zip - name: Download URL diff --git a/README.md b/README.md index 670a201d..6673f442 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ TwitchDownloaderCLI.exe videodownload --id -o out.mp4 ``` sudo chmod +x TwitchDownloaderCLI ``` -6. a) If you do not have ffmpeg, you should install it via your distro package manager, however you can also get it as a standalone file from [ffmpeg.org](https://ffmpeg.org/download.html) or by using TwitchDownloaderCLI: +6. a) If you do not have FFmpeg, you should install it via your distro package manager, however you can also get it as a standalone file from [ffmpeg.org](https://ffmpeg.org/download.html) or by using TwitchDownloaderCLI: ``` ./TwitchDownloaderCLI ffmpeg --download ``` @@ -126,7 +126,7 @@ sudo chmod +x ffmpeg ``` chmod +x TwitchDownloaderCLI ``` -4. a) If you do not have ffmpeg, you can install it via [Homebrew package manager](https://brew.sh/), or you can get it as a standalone file from [ffmpeg.org](https://ffmpeg.org/download.html) or by using TwitchDownloaderCLI: +4. a) If you do not have FFmpeg, you can install it via [Homebrew package manager](https://brew.sh/), or you can get it as a standalone file from [ffmpeg.org](https://ffmpeg.org/download.html) or by using TwitchDownloaderCLI: ``` ./TwitchDownloaderCLI ffmpeg --download ``` @@ -181,7 +181,20 @@ cd TwitchDownloaderCLI/bin/Release/net6.0/publish [MIT](./LICENSE.txt) -# Credits -[Noto Color Emoji](https://github.com/googlefonts/noto-emoji) © Google and contributors. +# Third Party Credits -[Twemoji](https://github.com/twitter/twemoji) © Twitter and contributors. +Chat Renders are rendered with [SkiaSharp and HarfBuzzSharp](https://github.com/mono/SkiaSharp) © Microsoft Corporation. + +Chat Renders are encoded and Video Downloads are finalized with [FFmpeg](https://ffmpeg.org/) © The FFmpeg developers. + +Chat Renders may use [Noto Color Emoji](https://github.com/googlefonts/noto-emoji) © Google and contributors. + +Chat Renders may use [Twemoji](https://github.com/twitter/twemoji) © Twitter and contributors. + +Bundled FFmpeg binaries are fetched from [gyan.dev](https://www.gyan.dev/ffmpeg/) © Gyan Doshi. + +FFmpeg binaries fetched are runtime are downloaded using [Xabe.FFmpeg.Downloader](https://github.com/tomaszzmuda/Xabe.FFmpeg) © Xabe. + +Chat Html exports utilize the _Inter_ typeface hosted by the [Google Fonts API](https://fonts.google.com/) © Google. + +For a full list of utilized external libraries, see [THIRD-PARTY-LICENSES.txt](./TwitchDownloaderCore/Resources/THIRD-PARTY-LICENSES.txt). \ No newline at end of file diff --git a/TwitchDownloaderCLI/Modes/Arguments/CacheArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/CacheArgs.cs index dcc49e22..2b30d6fe 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/CacheArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/CacheArgs.cs @@ -4,12 +4,15 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("cache", HelpText = "Manage the working cache")] - public class CacheArgs + public class CacheArgs : ITwitchDownloaderArgs { [Option('c', "clear", Default = false, Required = false, HelpText = "Clears the default cache folder.")] public bool ClearCache { get; set; } [Option("force-clear", Default = false, Required = false, HelpText = "Clears the default cache folder, bypassing the confirmation prompt")] public bool ForceClearCache { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } diff --git a/TwitchDownloaderCLI/Modes/Arguments/ChatDownloadArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/ChatDownloadArgs.cs index 9f4a7b67..66add8ca 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/ChatDownloadArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/ChatDownloadArgs.cs @@ -5,7 +5,7 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("chatdownload", HelpText = "Downloads the chat from a VOD or clip")] - public class ChatDownloadArgs + public class ChatDownloadArgs : ITwitchDownloaderArgs { [Option('u', "id", Required = true, HelpText = "The ID or URL of the VOD or clip to download that chat of.")] public string Id { get; set; } @@ -40,10 +40,13 @@ public class ChatDownloadArgs [Option("chat-connections", Default = 4, HelpText = "Number of downloading connections for chat")] public int ChatConnections { get; set; } - [Option('q', "quiet", Default = false, HelpText = "Suppresses progress console output")] - public bool Quiet { get; set; } + [Option("silent", Default = false, HelpText = "Suppresses progress console output")] + public bool Silent { get; set; } [Option("temp-path", Default = "", HelpText = "Path to temporary folder to use for cache.")] public string TempFolder { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } \ No newline at end of file diff --git a/TwitchDownloaderCLI/Modes/Arguments/ChatRenderArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/ChatRenderArgs.cs index 633779d2..53e3260b 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/ChatRenderArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/ChatRenderArgs.cs @@ -4,7 +4,7 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("chatrender", HelpText = "Renders a chat JSON as a video")] - public class ChatRenderArgs + public class ChatRenderArgs : ITwitchDownloaderArgs { [Option('i', "input", Required = true, HelpText = "Path to JSON chat file input.")] public string InputFile { get; set; } @@ -84,10 +84,10 @@ public class ChatRenderArgs [Option("update-rate", Default = 0.2, HelpText = "Time in seconds to update chat render output.")] public double UpdateRate { get; set; } - [Option("input-args", Default = "-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt {pix_fmt} -video_size {width}x{height} -i -", HelpText = "Input arguments for ffmpeg chat render.")] + [Option("input-args", Default = "-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt {pix_fmt} -video_size {width}x{height} -i -", HelpText = "Input arguments for FFmpeg chat render.")] public string InputArgs { get; set; } - [Option("output-args", Default = "-c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p \"{save_path}\"", HelpText = "Output arguments for ffmpeg chat render.")] + [Option("output-args", Default = "-c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p \"{save_path}\"", HelpText = "Output arguments for FFmpeg chat render.")] public string OutputArgs { get; set; } [Option("ignore-users", Default = "", HelpText = "List of usernames to ignore when rendering, separated by commas. Not case-sensitive.")] @@ -111,13 +111,13 @@ public class ChatRenderArgs [Option("emoji-vendor", Default = "notocolor", HelpText = "The emoji vendor used for rendering emojis. Valid values are: 'twitter' / 'twemoji', 'google' / 'notocolor', and 'system' / 'none'.")] public string EmojiVendor { get; set; } - [Option("ffmpeg-path", HelpText = "Path to ffmpeg executable.")] + [Option("ffmpeg-path", HelpText = "Path to FFmpeg executable.")] public string FfmpegPath { get; set; } [Option("temp-path", Default = "", HelpText = "Path to temporary folder to use for cache.")] public string TempFolder { get; set; } - [Option("verbose-ffmpeg", Default = false, HelpText = "Prints every message from ffmpeg.")] + [Option("verbose-ffmpeg", Default = false, HelpText = "Prints every message from FFmpeg.")] public bool LogFfmpegOutput { get; set; } [Option("skip-drive-waiting", Default = false, HelpText = "Do not wait for the output drive to transmit a ready signal before writing the next frame. Waiting is usually only necessary on low-end USB drives.")] @@ -152,5 +152,8 @@ public class ChatRenderArgs [Option("scale-highlight-indent", Default = 1.0, HelpText = "Number to scale highlight indent size (sub messages).")] public double ScaleAccentIndent { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } \ No newline at end of file diff --git a/TwitchDownloaderCLI/Modes/Arguments/ChatUpdateArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/ChatUpdateArgs.cs index e5b93b7c..bec5865e 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/ChatUpdateArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/ChatUpdateArgs.cs @@ -5,7 +5,7 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("chatupdate", HelpText = "Updates the embedded emotes, badges, bits, and crops of a chat download and/or converts a JSON chat to another format.")] - public class ChatUpdateArgs + public class ChatUpdateArgs : ITwitchDownloaderArgs { [Option('i', "input", Required = true, HelpText = "Path to input file. Valid extensions are: .json, .json.gz.")] public string InputFile { get; set; } @@ -42,5 +42,8 @@ public class ChatUpdateArgs [Option("temp-path", Default = "", HelpText = "Path to temporary folder to use for cache.")] public string TempFolder { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } diff --git a/TwitchDownloaderCLI/Modes/Arguments/ClipDownloadArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/ClipDownloadArgs.cs index 464a75b2..d8374a18 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/ClipDownloadArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/ClipDownloadArgs.cs @@ -4,7 +4,7 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("clipdownload", HelpText = "Downloads a clip from Twitch")] - public class ClipDownloadArgs + public class ClipDownloadArgs : ITwitchDownloaderArgs { [Option('u', "id", Required = true, HelpText = "The ID or URL of the clip to download.")] public string Id { get; set; } @@ -17,5 +17,8 @@ public class ClipDownloadArgs [Option("bandwidth", Default = -1, HelpText = "The maximum bandwidth the clip downloader is allowed to use in kibibytes per second (KiB/s), or -1 for no maximum.")] public int ThrottleKib { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } \ No newline at end of file diff --git a/TwitchDownloaderCLI/Modes/Arguments/FfmpegArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/FfmpegArgs.cs index 7a3ddc82..1979b8c9 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/FfmpegArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/FfmpegArgs.cs @@ -4,9 +4,12 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("ffmpeg", HelpText = "Manage standalone ffmpeg")] - public class FfmpegArgs + public class FfmpegArgs : ITwitchDownloaderArgs { - [Option('d', "download", Default = false, Required = false, HelpText = "Downloads ffmpeg as a standalone file.")] + [Option('d', "download", Default = false, Required = false, HelpText = "Downloads FFmpeg as a standalone file.")] public bool DownloadFfmpeg { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } diff --git a/TwitchDownloaderCLI/Modes/Arguments/ITwitchDownloaderArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/ITwitchDownloaderArgs.cs new file mode 100644 index 00000000..6c272186 --- /dev/null +++ b/TwitchDownloaderCLI/Modes/Arguments/ITwitchDownloaderArgs.cs @@ -0,0 +1,8 @@ +namespace TwitchDownloaderCLI.Modes.Arguments +{ + public interface ITwitchDownloaderArgs + { + // TODO: Mode --silent here + public bool? ShowBanner { get; set; } + } +} \ No newline at end of file diff --git a/TwitchDownloaderCLI/Modes/Arguments/VideoDownloadArgs.cs b/TwitchDownloaderCLI/Modes/Arguments/VideoDownloadArgs.cs index 398148c7..fe4e09fb 100644 --- a/TwitchDownloaderCLI/Modes/Arguments/VideoDownloadArgs.cs +++ b/TwitchDownloaderCLI/Modes/Arguments/VideoDownloadArgs.cs @@ -4,7 +4,7 @@ namespace TwitchDownloaderCLI.Modes.Arguments { [Verb("videodownload", HelpText = "Downloads a stream VOD from Twitch")] - public class VideoDownloadArgs + public class VideoDownloadArgs : ITwitchDownloaderArgs { [Option('u', "id", Required = true, HelpText = "The ID or URL of the VOD to download.")] public string Id { get; set; } @@ -30,10 +30,13 @@ public class VideoDownloadArgs [Option("oauth", HelpText = "OAuth access token to download subscriber only VODs. DO NOT SHARE THIS WITH ANYONE.")] public string Oauth { get; set; } - [Option("ffmpeg-path", HelpText = "Path to ffmpeg executable.")] + [Option("ffmpeg-path", HelpText = "Path to FFmpeg executable.")] public string FfmpegPath { get; set; } [Option("temp-path", Default = "", HelpText = "Path to temporary caching folder.")] public string TempFolder { get; set; } + + [Option("banner", Default = true, HelpText = "Displays a banner containing version and copyright information.")] + public bool? ShowBanner { get; set; } } } diff --git a/TwitchDownloaderCLI/Modes/DownloadChat.cs b/TwitchDownloaderCLI/Modes/DownloadChat.cs index d825ee47..e645d323 100644 --- a/TwitchDownloaderCLI/Modes/DownloadChat.cs +++ b/TwitchDownloaderCLI/Modes/DownloadChat.cs @@ -61,7 +61,7 @@ private static ChatDownloadOptions GetDownloadOptions(ChatDownloadArgs inputOpti Compression = inputOptions.Compression, TimeFormat = inputOptions.TimeFormat, ConnectionCount = inputOptions.ChatConnections, - Quiet = inputOptions.Quiet, + Silent = inputOptions.Silent, BttvEmotes = (bool)inputOptions.BttvEmotes!, FfzEmotes = (bool)inputOptions.FfzEmotes!, StvEmotes = (bool)inputOptions.StvEmotes!, diff --git a/TwitchDownloaderCLI/Program.cs b/TwitchDownloaderCLI/Program.cs index 1ddc3a62..ae262343 100644 --- a/TwitchDownloaderCLI/Program.cs +++ b/TwitchDownloaderCLI/Program.cs @@ -1,9 +1,16 @@ using CommandLine; using System; +using System.Collections.Generic; +using System.Diagnostics; using System.IO; +using System.Linq; +using System.Reflection; +using System.Runtime.InteropServices; +using CommandLine.Text; using TwitchDownloaderCLI.Modes; using TwitchDownloaderCLI.Modes.Arguments; using TwitchDownloaderCLI.Tools; +using TwitchDownloaderCore.Tools; namespace TwitchDownloaderCLI { @@ -11,43 +18,80 @@ class Program { private static void Main(string[] args) { - var processFileName = Path.GetFileName(Environment.ProcessPath); - - WriteNoArgHelpText(args, processFileName); + // Set the working dir to the app dir in case we inherited a different working dir + Directory.SetCurrentDirectory(AppContext.BaseDirectory); - var preParsedArgs = PreParseArgs.Parse(args, processFileName); + var preParsedArgs = PreParseArgs.Parse(args, Path.GetFileName(Environment.ProcessPath)); - Parser.Default.ParseArguments(preParsedArgs) + var parser = new Parser(config => + { + config.CaseInsensitiveEnumValues = true; + config.HelpWriter = TextWriter.Null; + }); + + var parserResult = parser.ParseArguments(preParsedArgs); + parserResult.WithNotParsed(errors => WriteHelpText(errors, parserResult, parser.Settings)); + + CoreLicensor.EnsureFilesExist(AppContext.BaseDirectory); + WriteApplicationBanner((ITwitchDownloaderArgs)parserResult.Value, args); + + parserResult .WithParsed(DownloadVideo.Download) .WithParsed(DownloadClip.Download) .WithParsed(DownloadChat.Download) .WithParsed(UpdateChat.Update) .WithParsed(RenderChat.Render) .WithParsed(FfmpegHandler.ParseArgs) - .WithParsed(CacheHandler.ParseArgs) - .WithNotParsed(_ => Environment.Exit(1)); + .WithParsed(CacheHandler.ParseArgs); } - private static void WriteNoArgHelpText(string[] args, string processFileName) + private static void WriteHelpText(IEnumerable errors, ParserResult parserResult, ParserSettings parserSettings) { - if (args.Length != 0) - { - return; - } - - if (Path.GetExtension(processFileName).Equals(".exe")) + if (errors.FirstOrDefault()?.Tag == ErrorType.NoVerbSelectedError) { - // Some Windows users try to double click the executable - Console.WriteLine("This is a command line tool. Please open a terminal and run \"{0} help\" from there for more information.{1}Press any key to close...", - processFileName, Environment.NewLine); - Console.ReadKey(); + var processFileName = Path.GetFileName(Environment.ProcessPath); + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + // Some Windows users try to double click the executable + Console.WriteLine("This is a command line tool. Please open a terminal and run \"{0} help\" from there for more information.{1}Press any key to close...", + processFileName, Environment.NewLine); + Console.ReadKey(); + } + else + { + Console.WriteLine("Usage: {0} [VERB] [OPTIONS]{1}Try \'{2} help\' for more information.", + processFileName, Environment.NewLine, processFileName); + } } else { - Console.WriteLine("Usage: {0} [VERB] [OPTIONS]{1}Try \'{2} help\' for more information.", - processFileName, Environment.NewLine, processFileName); + Console.Error.WriteLine( + HelpText.AutoBuild(parserResult, builder => + { + builder.MaximumDisplayWidth = parserSettings.MaximumDisplayWidth; + builder.Copyright = GetManifestInfo().LegalCopyright!.Replace("\u00A9", "(c)"); + return builder; + })); } + Environment.Exit(1); } + + private static void WriteApplicationBanner(ITwitchDownloaderArgs argsBase, string[] args) + { + if (argsBase.ShowBanner == false || args.Contains("--silent")) + { + return; + } + + var manifestInfo = GetManifestInfo(); + Console.WriteLine($"{manifestInfo.ProductName} v{manifestInfo.ProductVersion} {manifestInfo.LegalCopyright!.Replace("\u00A9", "(c)")}"); + } + + private static FileVersionInfo GetManifestInfo() + { + var assemblyFileName = Path.GetFileName(Environment.ProcessPath)!; + return FileVersionInfo.GetVersionInfo(assemblyFileName); + } } } \ No newline at end of file diff --git a/TwitchDownloaderCLI/README.md b/TwitchDownloaderCLI/README.md index 07dd179a..dd67bb13 100644 --- a/TwitchDownloaderCLI/README.md +++ b/TwitchDownloaderCLI/README.md @@ -44,11 +44,13 @@ Extra example, if I wanted only seconds 3-6 in a 10 second stream I would do `-b OAuth access token to download subscriber only VODs. **DO NOT SHARE YOUR OAUTH TOKEN WITH ANYONE.** **--ffmpeg-path** -Path to ffmpeg executable. +Path to FFmpeg executable. **--temp-path** Path to temporary folder for cache. +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. ## Arguments for mode clipdownload Downloads a clip from Twitch @@ -65,6 +67,9 @@ The quality the program will attempt to download, for example "1080p60", if not **--bandwidth** (Default: `-1`) The maximum bandwidth the clip downloader is allowed to use in kibibytes per second (KiB/s), or `-1` for no maximum. +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. + ## Arguments for mode chatdownload Downloads the chat of a VOD, highlight, or clip @@ -101,6 +106,14 @@ Time in seconds to crop ending. For example if I had a 10 second stream but only **--chat-connections** (Default: `4`) The number of parallel downloads for chat. +**--silent** +(Default: `false`) Suppresses progress console output. + +**--temp-path** +Path to temporary folder for cache. + +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. ## Arguments for mode chatupdate Updates the embedded emotes, badges, bits, and crops of a chat download and/or converts a JSON chat to another format @@ -141,6 +154,8 @@ Path to output file. File extension will be used to determine new chat type. Val **--temp-path** Path to temporary folder for cache. +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. ## Arguments for mode chatrender Renders a chat JSON as a video @@ -224,10 +239,10 @@ File the program will output to. (Default: `0.2`) Time in seconds to update chat render output. **--input-args** -(Default: `-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt bgra -video_size {width}x{height} -i -`) Input arguments for ffmpeg chat render. +(Default: `-framerate {fps} -f rawvideo -analyzeduration {max_int} -probesize {max_int} -pix_fmt bgra -video_size {width}x{height} -i -`) Input arguments for FFmpeg chat render. **--output-args** -(Default: `-c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p "{save_path}"`) Output arguments for ffmpeg chat render. +(Default: `-c:v libx264 -preset veryfast -crf 18 -pix_fmt yuv420p "{save_path}"`) Output arguments for FFmpeg chat render. **--ignore-users** (Default: ` `) List of usernames to ignore when rendering, separated by commas. Not case-sensitive. @@ -253,13 +268,13 @@ Other = `1`, Broadcaster = `2`, Moderator = `4`, VIP = `8`, Subscriber = `16`, P (Default: `notocolor`) The emoji vendor used for rendering emojis. Valid values are: `twitter` / `twemoji`, `google` / `notocolor`, `none`. **--ffmpeg-path** -(Default: ` `) Path to ffmpeg executable. +(Default: ` `) Path to FFmpeg executable. **--temp-path** (Default: ` `) Path to temporary folder for cache. **--verbose-ffmpeg** -(Default: `false`) Prints every message from ffmpeg. +(Default: `false`) Prints every message from FFmpeg. **--skip-drive-waiting** (Default: `false`) Do not wait for the output drive to transmit a ready signal before writing the next frame. Waiting is usually only necessary on low-end USB drives. Skipping can result in 1-5% render speed increases. @@ -294,12 +309,18 @@ Other = `1`, Broadcaster = `2`, Moderator = `4`, VIP = `8`, Subscriber = `16`, P **--scale-highlight-indent** (Default: `1.0`) Number to scale highlight indent size (sub messages). +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. + + ## Arguments for mode ffmpeg -Manage standalone ffmpeg +Manage standalone FFmpeg **-d / --download** -(Default: `false`) Downloads ffmpeg as a standalone file. +(Default: `false`) Downloads FFmpeg as a standalone file. +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. ## Arguments for mode cache Manage the working cache. @@ -310,6 +331,9 @@ Other = `1`, Broadcaster = `2`, Moderator = `4`, VIP = `8`, Subscriber = `16`, P **--force-clear** (Default: `false`) Clears the default cache folder, bypassing the confirmation prompt. +**--banner** +(Default: `true`) Displays a banner containing version and copyright information. + --- ## Example Commands diff --git a/TwitchDownloaderCLI/Tools/FfmpegHandler.cs b/TwitchDownloaderCLI/Tools/FfmpegHandler.cs index c7053aaf..f68a936a 100644 --- a/TwitchDownloaderCLI/Tools/FfmpegHandler.cs +++ b/TwitchDownloaderCLI/Tools/FfmpegHandler.cs @@ -21,7 +21,7 @@ public static void ParseArgs(FfmpegArgs args) private static void DownloadFfmpeg() { - Console.WriteLine("[INFO] - Downloading ffmpeg"); + Console.WriteLine("[INFO] - Downloading FFmpeg"); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { @@ -41,18 +41,18 @@ private static void DownloadFfmpeg() } catch { - Console.WriteLine("[ERROR] - Unable to update ffmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further ffmpeg errors occur."); + Console.WriteLine("[ERROR] - Unable to update FFmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further FFmpeg errors occur."); } } public static void DetectFfmpeg(string ffmpegPath) { - if (File.Exists(FfmpegExecutableName) || PathExtensions.ExistsOnPath(FfmpegExecutableName) || File.Exists(ffmpegPath)) + if (File.Exists(ffmpegPath) || File.Exists(FfmpegExecutableName) || PathUtils.ExistsOnPATH(FfmpegExecutableName)) { return; } - Console.WriteLine("[ERROR] - Unable to find ffmpeg, exiting. You can download ffmpeg automatically with the command \"TwitchDownloaderCLI ffmpeg -d\""); + Console.WriteLine("[ERROR] - Unable to find FFmpeg, exiting. You can download FFmpeg automatically with the command \"TwitchDownloaderCLI ffmpeg -d\""); Environment.Exit(1); } } diff --git a/TwitchDownloaderCLI/Tools/PathExtensions.cs b/TwitchDownloaderCLI/Tools/PathUtils.cs similarity index 66% rename from TwitchDownloaderCLI/Tools/PathExtensions.cs rename to TwitchDownloaderCLI/Tools/PathUtils.cs index d335bd47..92e70e98 100644 --- a/TwitchDownloaderCLI/Tools/PathExtensions.cs +++ b/TwitchDownloaderCLI/Tools/PathUtils.cs @@ -3,15 +3,16 @@ namespace TwitchDownloaderCLI.Tools { - public static class PathExtensions + public static class PathUtils { // https://stackoverflow.com/a/3856090/12204538 - public static bool ExistsOnPath(string fileName) + public static bool ExistsOnPATH(string fileName) { - return GetFileOnPath(fileName) != null; + return GetFileOnPATH(fileName) != null; } - public static string GetFileOnPath(string fileName) + /// The path to as specified in the PATH environment variable, or if was not found + public static string GetFileOnPATH(string fileName) { if (File.Exists(fileName)) { @@ -27,7 +28,8 @@ public static string GetFileOnPath(string fileName) return fullPath; } } + return null; } } -} +} \ No newline at end of file diff --git a/TwitchDownloaderCLI/Tools/PreParseArgs.cs b/TwitchDownloaderCLI/Tools/PreParseArgs.cs index 505b4467..7161ab22 100644 --- a/TwitchDownloaderCLI/Tools/PreParseArgs.cs +++ b/TwitchDownloaderCLI/Tools/PreParseArgs.cs @@ -19,6 +19,9 @@ internal static string[] Parse(string[] args, string processFileName) private static string[] Process(string[] args) { + if (args.Length == 0) + return args; + args[0] = args[0].ToLower(); return args; } diff --git a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj index f9ca8c3b..27bc72e6 100644 --- a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj +++ b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj @@ -3,6 +3,9 @@ Exe 1.53.0 + Copyright © 2019 lay295 and contributors + Download and render Twitch VODs, clips, and chats + MIT AnyCPU;x64 net6.0 default diff --git a/TwitchDownloaderCore/ChatDownloader.cs b/TwitchDownloaderCore/ChatDownloader.cs index 8f4e75a6..48788d21 100644 --- a/TwitchDownloaderCore/ChatDownloader.cs +++ b/TwitchDownloaderCore/ChatDownloader.cs @@ -345,7 +345,7 @@ public async Task DownloadAsync(IProgress progress, Cancellation int tc = i; Progress taskProgress = null; - if (!downloadOptions.Quiet) + if (!downloadOptions.Silent) { taskProgress = new Progress(progressReport => { diff --git a/TwitchDownloaderCore/Options/ChatDownloadOptions.cs b/TwitchDownloaderCore/Options/ChatDownloadOptions.cs index 96535b50..ee7c2c2b 100644 --- a/TwitchDownloaderCore/Options/ChatDownloadOptions.cs +++ b/TwitchDownloaderCore/Options/ChatDownloadOptions.cs @@ -17,7 +17,7 @@ public class ChatDownloadOptions public bool FfzEmotes { get; set; } public bool StvEmotes { get; set; } public int ConnectionCount { get; set; } = 1; - public bool Quiet { get; set; } = false; + public bool Silent { get; set; } = false; public TimestampFormat TimeFormat { get; set; } public string FileExtension { diff --git a/TwitchDownloaderCore/Properties/Resources.Designer.cs b/TwitchDownloaderCore/Properties/Resources.Designer.cs index 9462ff4d..148fe004 100644 --- a/TwitchDownloaderCore/Properties/Resources.Designer.cs +++ b/TwitchDownloaderCore/Properties/Resources.Designer.cs @@ -69,6 +69,16 @@ internal static byte[] chat_template { } } + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] copyright { + get { + object obj = ResourceManager.GetObject("copyright", resourceCulture); + return ((byte[])(obj)); + } + } + /// /// Looks up a localized resource of type System.Byte[]. /// @@ -99,6 +109,16 @@ internal static byte[] noto_emoji_2_038 { } } + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] third_party_licenses { + get { + object obj = ResourceManager.GetObject("third-party-licenses", resourceCulture); + return ((byte[])(obj)); + } + } + /// /// Looks up a localized resource of type System.Byte[]. /// diff --git a/TwitchDownloaderCore/Properties/Resources.resx b/TwitchDownloaderCore/Properties/Resources.resx index 50ea04e4..a1914b1b 100644 --- a/TwitchDownloaderCore/Properties/Resources.resx +++ b/TwitchDownloaderCore/Properties/Resources.resx @@ -133,4 +133,10 @@ ..\Resources\noto-emoji-2.038.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\TD-License;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\THIRD-PARTY-LICENSES.txt;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + diff --git a/TwitchDownloaderCore/Resources/TD-License b/TwitchDownloaderCore/Resources/TD-License new file mode 100644 index 00000000..a0d4dd13 --- /dev/null +++ b/TwitchDownloaderCore/Resources/TD-License @@ -0,0 +1,32 @@ +This notice MUST be included UNMODIFIED with all copies and redistributions of +the TwitchDownloaderCLI, TwitchDownloaderCore, or TwitchDownloaderWPF libraries +unless explicit written permission from a maintainer is given. + +TwitchDownloaderCLI, TwitchDownloaderCore, and TwitchDownloaderWPF are provided +free of charge under the MIT license. + +A copy of the MIT license can be found below. + +---------- + +The MIT License + +Copyright (c) 2019 lay295 and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/TwitchDownloaderCore/Resources/THIRD-PARTY-LICENSES.txt b/TwitchDownloaderCore/Resources/THIRD-PARTY-LICENSES.txt new file mode 100644 index 00000000..458a9971 --- /dev/null +++ b/TwitchDownloaderCore/Resources/THIRD-PARTY-LICENSES.txt @@ -0,0 +1,2843 @@ +TwitchDownloader utilizes many third party libraries and resources. This document shall contain all of the relevant +licenses and attributions required to use said libraries and resources. + +A library or resource shall be prefixed by '**', then the name is written followed by a '-', then the license it has + been obtained under is written. +The next line shall be a statement of Copyright. If none is provided by the library or resource, then this is omitted. +The next line shall be a link to a webpage where the library or resource can be reliably found. +If more than one library or resource shares the same Copyright information, license, and location then they may be + grouped together. + +Library or resource entries shall be grouped according to their primary license to prevent restating a license's full + terms more than once. +Any Copyright information specific to a resource or library contained in a license shall be moved to the resource + declaration to aid in not restating a license's full terms more than once. This does not invalidate any rights held by + the library or resource's authors. + +This document is a summary of the licenses provided by included third party components as of 08/01/2023 and is not a +substitute for reading the original licenses from the original library or resource distribution webpages. Users should +read the license for each library or resource before making decisions that may introduce the possibility of breaching a +license. + +========== + +** CommandLineParser.CommandLine - MIT + Copyright (c) Giacomo Stelluti Scala & Contributors + https://github.com/commandlineparser/commandline + +** ravibpatel.AutoUpdater.NET - MIT + Copyright (c) RBSoft + https://github.com/ravibpatel/AutoUpdater.NET + +** MartinTopfstedt.FontAwesome5 - MIT + Copyright (c) MartinTopfstedt + https://github.com/MartinTopfstedt/FontAwesome5 + +** HandyOrg.HandyControl - MIT + Copyright (c) HandyOrg + https://github.com/HandyOrg/HandyControl + +** Mono.SkiaSharp - MIT +** Mono.SkiaSharp.HarfBuzz - MIT +** Mono.SkiaSharp.NativeAssets.Linux - MIT +** Mono.SkiaSharp.NativeAssets.MacOS - MIT +** Mono.SkiaSharp.NativeAssets.Win32 - MIT +** Mono.HarfBuzzSharp - MIT +** Mono.HarfBuzzSharp.NativeAssets.Linux - MIT +** Mono.HarfBuzzSharp.NativeAssets.MacOS - MIT +** Mono.HarfBuzzSharp.NativeAssets.Win32 - MIT + Copyright (c) 2015-2016 Xamarin, Inc. + Copyright (c) 2017 Microsoft Corporation. + https://github.com/mono/SkiaSharp + +** StoneCold.SkiaSharp.NativeAssets.AlpineLinux - MIT + Copyright (c) forumi0721 + https://www.nuget.org/packages/StoneCold.SkiaSharp.NativeAssets.AlpineLinux + +** NeoSmart.Unicode.net - MIT + Copyright (c) NeoSmart Technologies + https://github.com/neosmart/unicode.net + +** Microsoft.CSharp - MIT +** Microsoft.Extensions.Hosting - MIT +** System.Management - MIT +** System.Runtime.CompilerServices.Unsafe - MIT +** System.Text.Json - MIT + Copyright (c) Microsoft Corporation. + https://github.com/dotnet/runtime + +The MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +========== + +** samhocevar.Emoji.Wpf - DO WHAT THE F*CK YOU WANT TO PUBLIC LICENSE + https://github.com/samhocevar/emoji.wpf + + DO WHAT THE F*CK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE F*CK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE F*CK YOU WANT TO. + +========== + +** Ookii.Dialogs.Wpf - BSD 3-Clause + Copyright (c) Sven Groot 2009-2018 + Copyright (c) C. Augusto Proiete 2018 + https://github.com/ookii-dialogs/ookii-dialogs-wpf + +BSD 3-Clause License + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +========== + +** DotNetProjects.Extended.Wpf.Toolkit - Ms-PL + https://github.com/dotnetprojects/WpfExtendedToolkit + +** XAMLMarkupExtensions.WpfLocalizeExtension - Ms-PL + https://github.com/XAMLMarkupExtensions/WPFLocalizeExtension + + +Microsoft Public License (Ms-PL) +This license governs use of the accompanying software. If you use the software, you +accept this license. If you do not accept the license, do not use the software. + +1. Definitions +The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. +copyright law. + +A "contribution" is the original software, or any additions or changes to the software. + +A "contributor" is any person that distributes its contribution under this license. + +"Licensed patents" are a contributor's patent claims that read directly on its contribution. + +2. Grant of Rights +(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section +3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, +prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. + +(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, +each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have +made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative +works of the contribution in the software. + +3. Conditions and Limitations +(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. + +(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your +patent license from such contributor to the software ends automatically. + +(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution +notices that are present in the software. + +(D) If you distribute any portion of the software in source code form, you may do so only under this license by +including a complete copy of this license with your distribution. If you distribute any portion of the software in +compiled or object code form, you may only do so under a license that complies with this license. + +(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, +guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot +change. To the extent permitted under your local laws, the contributors exclude the implied warranties of +merchantability, fitness for a particular purpose and non-infringement. + +========== + +** XamlAnimatedGif.WpfAnimatedGif - Apache 2.0 + Copyright (c) Thomas Levesque + https://github.com/XamlAnimatedGif/WpfAnimatedGif + +** Noto Color Emojis - Apache 2.0 + Copyright (c) Google and contributors + https://github.com/googlefonts/noto-emoji + + The following changes have been made: + - Removal of all non-license, non-contributor, non-author, non-72x72 png image files + - Removal of 'emoji_u' prefix from all emoji png image files + - Addition of NOTICE.txt + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +========== + +** FFmpeg - GPLv2 + Copyright (c) The FFmpeg developers + https://ffmpeg.org/ + +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU +General Public License is intended to guarantee your freedom to share and change free software--to make sure the +software is free for all its users. This General Public License applies to most of the Free Software Foundation's +software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is +covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make +sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you +receive source code or can get it if you want it, that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to +surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the +software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all +the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them +these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal +permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty +for this free software. If the software is modified by someone else and passed on, we want its recipients to know that +what they have is not the original, so that any problems introduced by others will not reflect on the original authors' +reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors +of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, +we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it +may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or +work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to +say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into +another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is +addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its +scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents + constitute a work based on the Program (independent of having been made by running the Program). Whether that is true + depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided +that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of +warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other +recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection +in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and + copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of + these conditions: + +a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any +change. +b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the +Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this +License. +c) If the modified program normally reads commands interactively when run, you must cause it, when started running for +such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright +notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may +redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if + the Program itself is interactive but does not normally print such an announcement, your work based on the Program is + not required to print an announcement.) +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the + Program, and can be reasonably considered independent and separate works in themselves, then this License, and its + terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same + sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of + this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part + regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; +rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the +Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the +Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form + under the terms of Sections 1 and 2 above provided that you also do one of the following: + +a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms +of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written +offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically +performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed +under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it +with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed +only for noncommercial distribution and only if you received the program in object code or executable form with such an +offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making +modifications to it. For an executable work, complete source code means all the source code for all modules it contains, +plus any associated interface definition files, plus the scripts used to control compilation and installation of the +executable. However, as a special exception, the source code distributed need not include anything that is normally +distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating +system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering +equivalent access to copy the source code from the same place counts as distribution of the source code, even though +third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any + attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate + your rights under this License. However, parties who have received copies, or rights, from you under this License + will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you + permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do + not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you + indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or + modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a + license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. + You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not + responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to + patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the + conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so + as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a + consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free + redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way + you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the +section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest +validity of any such claims; this section has the sole purpose of protecting the integrity of the free software +distribution system, which is implemented by public license practices. Many people have made generous contributions to +the wide range of software distributed through that system in reliance on consistent application of that system; it is +up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee +cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted + interfaces, the original copyright holder who places the Program under this License may add an explicit geographical + distribution limitation excluding those countries, so that distribution is permitted only in or among countries not + thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. + Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems + or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which +applies to it and "any later version", you have the option of following the terms and conditions either of that version +or of any later version published by the Free Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are + different, write to the author to ask for permission. For software which is copyrighted by the Free Software + Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be + guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the + sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE + PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND + PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY + SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY + WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY + GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM + (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs If you develop a new program, and you want it +to be of the greatest possible use to the public, the best way to achieve this is to make it free software which +everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to +most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer +to where the full notice is found. + +one line to give the program's name and an idea of what it does. +Copyright (C) yyyy name of author + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + +Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details +type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' +for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public +License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" +for the program, if necessary. Here is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright +interest in the program `Gnomovision' +(which makes passes at compilers) written +by James Hacker. + +signature of Ty Coon, 1 April 1989 +Ty Coon, President of Vice + +========== + +** Twemoji - CC BY 4.0, MIT + Copyright (c) Twitter and contributors + https://github.com/twitter/twemoji + + The following changes have been made: + - Removal of all non-license, non-72x72 png files + +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public licenses. +Notwithstanding, Creative Commons may elect to apply one of its public +licenses to material it publishes and in those instances will be +considered the "Licensor." Except for the limited purpose of indicating +that material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the public +licenses. + +Creative Commons may be contacted at creativecommons.org. + +========== + +** Xabe.FFmpeg.Downloader - Custom license, Attribution-NonCommercial-ShareAlike 3.0 Unported + Copyright (c) Xabe + https://github.com/tomaszzmuda/Xabe.FFmpeg + +License Agreement + +This agreement is between you or the entity you represent and the Xabe company for any Software as +published on the date of a Software purchase or renewal, terms incorporated by reference, terms applicable to other Xabe +web site. + +If you are entering into this Agreement on behalf of an entity, such as your employer, you represent that you have the +legal authority to bind that entity. If you specify a company name in connection with purchasing for or ordering a +Software, you will be deemed to have placed that order and to have entered into this Agreement on behalf of that +organization or company. + +1. Definitions: +- Content + documents, codes, photographs, videos, and other graphical, textual, or audio-visual content that may be subject to + copyright protection that is available through the Xabe website. + +- Customer Data + any content or other data, including all text, image files that are provided to us by, or on behalf of you, through + your use of the Software for use by you or your authorized users. Customer Data does not include Submissions or any + other Content or data that you submit to the Forum section or otherwise provided via the Software for public access. + +- Software + any information, documentation, codes that Xabe made available to you under this Agreement for your support and + upgrades period. + +- Submissions + Content, code, comments, feedback, suggestions, information or materials that you provide via the Xabe website or any + Software for public access (rather than for your personal use or use by your authorized users). Submissions do not + include Customer Data. + +- Company Plan + a per-company based support and upgrade period, or other Xabe granted benefit that permits access to and account + services for the Software. + +- We and Us + "We" and "us" means Xabe + +- You and Your + "You" and "Your" means the person or entity accepting this Agreement to use the Software. + +2. Conditions and Limitations: +- Non-commercial use + You may use Software under Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license for non + commercial projects. + +- No Trademark License + The software license does not grant you rights to use Xabe name, logo, or trademarks. + +- Content Distribution + If you distribute any portion of the content, you must retain all copyright, patent, trademark, and attribution + notices that are present in the content. + + If you distribute any portion of the content in source code form, you may do so only under this license by including a + complete copy of this license with your distribution. If you distribute any portion of the content in compiled or + object code form, you may only do so under a license that complies with this license. + +- Software is licensed "as-is" + Xabe warrants and represents to you that: the Software does not infringe upon or violate any third party patent, + copyright, trade secret or other proprietary or intellectual property right. For avoidance of doubt, the Software is + provided as is and without any warranty and Xabe makes no other express warranties, guarantees or conditions. To the + extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness + for a particular purpose. + +- Validity + This License Agreement is valid without signature. It becomes effective upon the user's receipt of an invoice. + +- Developer Seat + one developer using the Xabe's library on his/her Workstation to perform any development. It does not include multiple + developers sharing the library on one or more computers, even if their use is only part-time and/or is not concurrent. + +3. Software: +- Right to use + We grant you the right to access and use the Software during the support and upgrade period and only in accordance + with this Agreement. After the support and upgrades period or in case of a cancelled support and upgrades period, all + the license keys that were set up during the support and upgrades period remain valid. + +- Distribution + You are not permitted to distribute Xabe Software pursuant to this Section: as a standalone product; a similar + product; or as a part of any product other than your integrated product. + +- Company Plan + Each support and upgrade period is sold for a particular or a company who is allowed to share the previously bought + licenses with all of its developers who own a developer seat only excluding any third parties. Any third parties who + wishes to use the products developed by the company or particular who bought the product is allowed, but cannot + customize it without the Xabe agreement. + +- Manner of use + By accepting the term of this Agreement, you may not: + + I) Reverse engineer, decompile, disassemble or work around technical limitations in the Software, except to the extent + that applicable law permits it despite these limitations; + + II) Disable, tamper with or otherwise attempt to circumvent any mechanism that limits your use of the Software; + + III) Rent, lease, lend, resell, transfer, or sublicense any Software or portion thereof to or for third parties, + except as explicitly permitted herein or in license terms that accompany any Software component; + + IV) Use the Software for any purpose that is unlawful or prohibited by this Agreement; or + + V) Use the Software in any manner that could damage, disable, overburden, or impair any Xabe Software, or the + network(s) connected to any Xabe Software, or interfere with any other party's use and enjoyment of any Software. + Updates We may make changes to the Software from time to time, including: the availability of features; how long, + how much or how often any given feature may be used; and feature dependencies upon other services or software. + +----- + +Attribution-NonCommercial-ShareAlike 3.0 Unported + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR +"LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED +UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO +THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN +CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + +a) "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, + adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram + or performance and includes cinematographic adaptations or any other form in which the Work may be recast, + transformed, or adapted including in any form recognizably derived from the original, except that a work that + constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of + doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation + with a moving image ("synching") will be considered an Adaptation for the purpose of this License. + +b) "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or + performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(g) + below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in + which the Work is included in its entirety in unmodified form along with one or more other contributions, each + constituting separate and independent works in themselves, which together are assembled into a collective whole. A + work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this + License. + +c) "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, + through sale or other transfer of ownership. + +d) "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the + title of this License: Attribution, Noncommercial, ShareAlike. + +e) "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this + License. + +f) "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities + who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case + of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, + interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram + the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) + in the case of broadcasts, the organization that transmits the broadcast. + +g) "Work" means the literary and/or artistic work offered under the terms of this License including without + limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its + expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other + work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a + musical composition with or without words; a cinematographic work to which are assimilated works expressed by a + process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; + a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied + art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or + science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a + copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered + a literary or artistic work. + +h) "You" means an individual or entity exercising rights under this License who has not previously violated the terms + of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights + under this License despite a previous violation. + +i) "Publicly Perform" means to perform public recitations of the Work and + to communicate to the public those public recitations, by any means or process, including by wire or wireless means + or public digital performances; to make available to the public Works in such a way that members of the public may + access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any + means or process and the communication to the public of the performances of the Work, including by public digital + performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. + +j) "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings + and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or + phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright + or rights arising from limitations or exceptions that are provided for in connection with the copyright protection + under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, + royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights + in the Work as stated below: + +a) to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as + incorporated in the Collections; + +b) to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes + reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For + example, a translation could be marked "The original work was translated from English to Spanish," or a modification + could indicate "The original work has been modified."; + +c) to Distribute and Publicly Perform the Work including as incorporated in Collections; and, + +d) to Distribute and Publicly Perform Adaptations. + +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights +include the right to make such modifications as are technically necessary to exercise the rights in other media and +formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not +limited to the rights described in Section 4(e). + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following + restrictions: + +a) You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or + the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly + Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of + the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may + not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of + warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform + the Work, You may not impose any effective technological measures on the Work that restrict the ability of a + recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This + Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from + the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any + Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(d), as + requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove + from the Adaptation any credit as required by Section 4(d), as requested. + +b) You may Distribute or Publicly Perform an Adaptation only under: (i) the terms of this License; (ii) a later version + of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either + this or a later license version) that contains the same License Elements as this License (e.g., + Attribution-NonCommercial-ShareAlike 3.0 US) ("Applicable License"). You must include a copy of, or the URI, for + Applicable License with every copy of each Adaptation You Distribute or Publicly Perform. You may not offer or impose + any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the + Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License. You must keep + intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the + Work as included in the Adaptation You Distribute or Publicly Perform. When You Distribute or Publicly Perform the + Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a + recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the + Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not + require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. + +c) You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for + or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other + copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or + directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary + compensation in con-nection with the exchange of copyrighted works. + +d) If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has + been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the + medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, + and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, + publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service + or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the + extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such + URI does not refer to the copyright notice or licensing information for the Work; and, (iv) consistent with + Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French + translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit + required by this Section 4(d) may be implemented in any reasonable manner; provided, however, that in the case of a + Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the + Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits + for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section + for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may + not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, + Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express + prior written permission of the Original Author, Licensor and/or Attribution Parties. + +e) For the avoidance of doubt: + +i. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any + statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such + royalties for any exercise by You of the rights granted under this License; + +ii. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any + statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such + royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a + purpose or use which is otherwise than noncommercial as permitted under Section 4(c) and otherwise waives the right + to collect royalties through any statutory or compulsory licensing scheme; and, + +iii. Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the + event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that + society, from any exercise by You of the rights granted under this License that is for a purpose or use which is + otherwise than noncommercial as permitted under Section 4(c). + +f) Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You + Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You + must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial + to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any + exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a + distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and + reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by + the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License + (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING AND TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, +LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, +IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF +ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THIS +EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU + ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS + LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + +a) This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of + this License. Individuals or entities who have received Adaptations or Collections from You under this License, + however, will not have their licenses terminated provided such individuals or entities remain in full compliance with + those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. + +b) Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable + copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different + license terms or to stop distributing the Work at any time; provided, however that any such election will not serve + to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this + License), and this License will continue in full force and effect unless terminated as stated above. + +8. Miscellaneous + + +a) Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license + to the Work on the same terms and conditions as the license granted to You under this License. + +b) Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the + original Work on the same terms and conditions as the license granted to You under this License. + +c) If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity + or enforceability of the remainder of the terms of this License, and without further action by the parties to this + agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and + enforceable. + +d) No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent + shall be in writing and signed by the party to be charged with such waiver or consent. + +e) This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are + no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be + bound by any additional provisions that may appear in any communication from You. This License may not be modified + without the mutual written agreement of the Licensor and You. + +f) The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology + of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the + Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and + the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the + relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions + of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights + granted under applicable copyright law includes additional rights not granted under this License, such additional + rights are deemed to be included in the License; this License is not intended to restrict the license of any rights + under applicable law. + +========== + +** Mono.Posix.NETStandard - Custom license + https://github.com/mono/mono/tree/main/mcs/class/Mono.Posix + +In general, the runtime and its class libraries are licensed under the +terms of the MIT license, and some third party code is licensed under +the 3-clause BSD license. See the file "PATENTS.TXT" for Microsoft's +patent grant on the Mono codebase. + +The Mono distribution does include a handful of pieces of code that +are used during the build system and are covered under different +licenses, those include: + +Build Time Code +=============== + +This is code that is used at build time, or during the maintenance of +Mono itself, and does not end up in the redistributable part of Mono: + +* gettext + + m4 source files used to probe features at build time: GPL + +* Benchmark Source Files + + Logic.cs and zipmark.cs are GPL source files. + +* mono/docs/HtmlAgilityPack + + MS-PL licensed + +* mcs/jay: 4-clause BSD licensed + +* mcs/class/I18N/mklist.sh, tools/cvt.sh: GNU GPLv2 + +Runtime Code +============ + +The following code is linked with the final Mono runtime, the libmono +embeddable runtime: + +* support/minizip: BSD license. + +* mono/utils/memcheck.h: BSD license, used on debug builds that use Valgrind. + +* mono/utils/freebsd-dwarf.h, freebsd-elf_common.h, freebsd-elf64.h freebsd-elf32.h: BSD license. + +* mono/utils/bsearch.c: BSD license. + +* mono/metadata/w32file-unix-glob.c, w32file-unix-glob.h: BSD license + +Class Library code +================== + +These are class libraries that can be loaded by your process: + +* mcs/class/RabbitMQ.Client: dual licensed in Apache v2, and Mozilla Public License 1.1 + +* mcs/class/Compat.ICSharpCode.SharpZipLib and + mcs/class/ICSharpCode.SharpZipLib are GPL with class-path exception. + Originates with the SharpDevelop project. + +* mcs/class/System.Core/System/TimeZoneInfo.Android.cs + + This is a port of Apache 2.0-licensed Android code, and thus is + licensed under the Apache 2.0 license + + http://www.apache.org/licenses/LICENSE-2.0 + +API Documentation +================= + +The API documentation is licensed under the terms of the Creative +Commons Attribution 4.0 International Public License + + +The Licenses +============ + + These are the licenses used in Mono, the files are located: + +### MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +### Mozilla.MPL + + MOZILLA PUBLIC LICENSE + Version 1.1 + + --------------- + +1. Definitions. + + 1.0.1. "Commercial Use" means distribution or otherwise making the + Covered Code available to a third party. + + 1.1. "Contributor" means each entity that creates or contributes to + the creation of Modifications. + + 1.2. "Contributor Version" means the combination of the Original + Code, prior Modifications used by a Contributor, and the Modifications + made by that particular Contributor. + + 1.3. "Covered Code" means the Original Code or Modifications or the + combination of the Original Code and Modifications, in each case + including portions thereof. + + 1.4. "Electronic Distribution Mechanism" means a mechanism generally + accepted in the software development community for the electronic + transfer of data. + + 1.5. "Executable" means Covered Code in any form other than Source + Code. + + 1.6. "Initial Developer" means the individual or entity identified + as the Initial Developer in the Source Code notice required by Exhibit + A. + + 1.7. "Larger Work" means a work which combines Covered Code or + portions thereof with code not governed by the terms of this License. + + 1.8. "License" means this document. + + 1.8.1. "Licensable" means having the right to grant, to the maximum + extent possible, whether at the time of the initial grant or + subsequently acquired, any and all of the rights conveyed herein. + + 1.9. "Modifications" means any addition to or deletion from the + substance or structure of either the Original Code or any previous + Modifications. When Covered Code is released as a series of files, a + Modification is: + A. Any addition to or deletion from the contents of a file + containing Original Code or previous Modifications. + + B. Any new file that contains any part of the Original Code or + previous Modifications. + + 1.10. "Original Code" means Source Code of computer software code + which is described in the Source Code notice required by Exhibit A as + Original Code, and which, at the time of its release under this + License is not already Covered Code governed by this License. + + 1.10.1. "Patent Claims" means any patent claim(s), now owned or + hereafter acquired, including without limitation, method, process, + and apparatus claims, in any patent Licensable by grantor. + + 1.11. "Source Code" means the preferred form of the Covered Code for + making modifications to it, including all modules it contains, plus + any associated interface definition files, scripts used to control + compilation and installation of an Executable, or source code + differential comparisons against either the Original Code or another + well known, available Covered Code of the Contributor's choice. The + Source Code can be in a compressed or archival form, provided the + appropriate decompression or de-archiving software is widely available + for no charge. + + 1.12. "You" (or "Your") means an individual or a legal entity + exercising rights under, and complying with all of the terms of, this + License or a future version of this License issued under Section 6.1. + For legal entities, "You" includes any entity which controls, is + controlled by, or is under common control with You. For purposes of + this definition, "control" means (a) the power, direct or indirect, + to cause the direction or management of such entity, whether by + contract or otherwise, or (b) ownership of more than fifty percent + (50%) of the outstanding shares or beneficial ownership of such + entity. + +2. Source Code License. + + 2.1. The Initial Developer Grant. + The Initial Developer hereby grants You a world-wide, royalty-free, + non-exclusive license, subject to third party intellectual property + claims: + (a) under intellectual property rights (other than patent or + trademark) Licensable by Initial Developer to use, reproduce, + modify, display, perform, sublicense and distribute the Original + Code (or portions thereof) with or without Modifications, and/or + as part of a Larger Work; and + + (b) under Patents Claims infringed by the making, using or + selling of Original Code, to make, have made, use, practice, + sell, and offer for sale, and/or otherwise dispose of the + Original Code (or portions thereof). + + (c) the licenses granted in this Section 2.1(a) and (b) are + effective on the date Initial Developer first distributes + Original Code under the terms of this License. + + (d) Notwithstanding Section 2.1(b) above, no patent license is + granted: 1) for code that You delete from the Original Code; 2) + separate from the Original Code; or 3) for infringements caused + by: i) the modification of the Original Code or ii) the + combination of the Original Code with other software or devices. + + 2.2. Contributor Grant. + Subject to third party intellectual property claims, each Contributor + hereby grants You a world-wide, royalty-free, non-exclusive license + + (a) under intellectual property rights (other than patent or + trademark) Licensable by Contributor, to use, reproduce, modify, + display, perform, sublicense and distribute the Modifications + created by such Contributor (or portions thereof) either on an + unmodified basis, with other Modifications, as Covered Code + and/or as part of a Larger Work; and + + (b) under Patent Claims infringed by the making, using, or + selling of Modifications made by that Contributor either alone + and/or in combination with its Contributor Version (or portions + of such combination), to make, use, sell, offer for sale, have + made, and/or otherwise dispose of: 1) Modifications made by that + Contributor (or portions thereof); and 2) the combination of + Modifications made by that Contributor with its Contributor + Version (or portions of such combination). + + (c) the licenses granted in Sections 2.2(a) and 2.2(b) are + effective on the date Contributor first makes Commercial Use of + the Covered Code. + + (d) Notwithstanding Section 2.2(b) above, no patent license is + granted: 1) for any code that Contributor has deleted from the + Contributor Version; 2) separate from the Contributor Version; + 3) for infringements caused by: i) third party modifications of + Contributor Version or ii) the combination of Modifications made + by that Contributor with other software (except as part of the + Contributor Version) or other devices; or 4) under Patent Claims + infringed by Covered Code in the absence of Modifications made by + that Contributor. + +3. Distribution Obligations. + + 3.1. Application of License. + The Modifications which You create or to which You contribute are + governed by the terms of this License, including without limitation + Section 2.2. The Source Code version of Covered Code may be + distributed only under the terms of this License or a future version + of this License released under Section 6.1, and You must include a + copy of this License with every copy of the Source Code You + distribute. You may not offer or impose any terms on any Source Code + version that alters or restricts the applicable version of this + License or the recipients' rights hereunder. However, You may include + an additional document offering the additional rights described in + Section 3.5. + + 3.2. Availability of Source Code. + Any Modification which You create or to which You contribute must be + made available in Source Code form under the terms of this License + either on the same media as an Executable version or via an accepted + Electronic Distribution Mechanism to anyone to whom you made an + Executable version available; and if made available via Electronic + Distribution Mechanism, must remain available for at least twelve (12) + months after the date it initially became available, or at least six + (6) months after a subsequent version of that particular Modification + has been made available to such recipients. You are responsible for + ensuring that the Source Code version remains available even if the + Electronic Distribution Mechanism is maintained by a third party. + + 3.3. Description of Modifications. + You must cause all Covered Code to which You contribute to contain a + file documenting the changes You made to create that Covered Code and + the date of any change. You must include a prominent statement that + the Modification is derived, directly or indirectly, from Original + Code provided by the Initial Developer and including the name of the + Initial Developer in (a) the Source Code, and (b) in any notice in an + Executable version or related documentation in which You describe the + origin or ownership of the Covered Code. + + 3.4. Intellectual Property Matters + (a) Third Party Claims. + If Contributor has knowledge that a license under a third party's + intellectual property rights is required to exercise the rights + granted by such Contributor under Sections 2.1 or 2.2, + Contributor must include a text file with the Source Code + distribution titled "LEGAL" which describes the claim and the + party making the claim in sufficient detail that a recipient will + know whom to contact. If Contributor obtains such knowledge after + the Modification is made available as described in Section 3.2, + Contributor shall promptly modify the LEGAL file in all copies + Contributor makes available thereafter and shall take other steps + (such as notifying appropriate mailing lists or newsgroups) + reasonably calculated to inform those who received the Covered + Code that new knowledge has been obtained. + + (b) Contributor APIs. + If Contributor's Modifications include an application programming + interface and Contributor has knowledge of patent licenses which + are reasonably necessary to implement that API, Contributor must + also include this information in the LEGAL file. + + (c) Representations. + Contributor represents that, except as disclosed pursuant to + Section 3.4(a) above, Contributor believes that Contributor's + Modifications are Contributor's original creation(s) and/or + Contributor has sufficient rights to grant the rights conveyed by + this License. + + 3.5. Required Notices. + You must duplicate the notice in Exhibit A in each file of the Source + Code. If it is not possible to put such notice in a particular Source + Code file due to its structure, then You must include such notice in a + location (such as a relevant directory) where a user would be likely + to look for such a notice. If You created one or more Modification(s) + You may add your name as a Contributor to the notice described in + Exhibit A. You must also duplicate this License in any documentation + for the Source Code where You describe recipients' rights or ownership + rights relating to Covered Code. You may choose to offer, and to + charge a fee for, warranty, support, indemnity or liability + obligations to one or more recipients of Covered Code. However, You + may do so only on Your own behalf, and not on behalf of the Initial + Developer or any Contributor. You must make it absolutely clear than + any such warranty, support, indemnity or liability obligation is + offered by You alone, and You hereby agree to indemnify the Initial + Developer and every Contributor for any liability incurred by the + Initial Developer or such Contributor as a result of warranty, + support, indemnity or liability terms You offer. + + 3.6. Distribution of Executable Versions. + You may distribute Covered Code in Executable form only if the + requirements of Section 3.1-3.5 have been met for that Covered Code, + and if You include a notice stating that the Source Code version of + the Covered Code is available under the terms of this License, + including a description of how and where You have fulfilled the + obligations of Section 3.2. The notice must be conspicuously included + in any notice in an Executable version, related documentation or + collateral in which You describe recipients' rights relating to the + Covered Code. You may distribute the Executable version of Covered + Code or ownership rights under a license of Your choice, which may + contain terms different from this License, provided that You are in + compliance with the terms of this License and that the license for the + Executable version does not attempt to limit or alter the recipient's + rights in the Source Code version from the rights set forth in this + License. If You distribute the Executable version under a different + license You must make it absolutely clear that any terms which differ + from this License are offered by You alone, not by the Initial + Developer or any Contributor. You hereby agree to indemnify the + Initial Developer and every Contributor for any liability incurred by + the Initial Developer or such Contributor as a result of any such + terms You offer. + + 3.7. Larger Works. + You may create a Larger Work by combining Covered Code with other code + not governed by the terms of this License and distribute the Larger + Work as a single product. In such a case, You must make sure the + requirements of this License are fulfilled for the Covered Code. + +4. Inability to Comply Due to Statute or Regulation. + + If it is impossible for You to comply with any of the terms of this + License with respect to some or all of the Covered Code due to + statute, judicial order, or regulation then You must: (a) comply with + the terms of this License to the maximum extent possible; and (b) + describe the limitations and the code they affect. Such description + must be included in the LEGAL file described in Section 3.4 and must + be included with all distributions of the Source Code. Except to the + extent prohibited by statute or regulation, such description must be + sufficiently detailed for a recipient of ordinary skill to be able to + understand it. + +5. Application of this License. + + This License applies to code to which the Initial Developer has + attached the notice in Exhibit A and to related Covered Code. + +6. Versions of the License. + + 6.1. New Versions. + Netscape Communications Corporation ("Netscape") may publish revised + and/or new versions of the License from time to time. Each version + will be given a distinguishing version number. + + 6.2. Effect of New Versions. + Once Covered Code has been published under a particular version of the + License, You may always continue to use it under the terms of that + version. You may also choose to use such Covered Code under the terms + of any subsequent version of the License published by Netscape. No one + other than Netscape has the right to modify the terms applicable to + Covered Code created under this License. + + 6.3. Derivative Works. + If You create or use a modified version of this License (which you may + only do in order to apply it to code which is not already Covered Code + governed by this License), You must (a) rename Your license so that + the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", + "MPL", "NPL" or any confusingly similar phrase do not appear in your + license (except to note that your license differs from this License) + and (b) otherwise make it clear that Your version of the license + contains terms which differ from the Mozilla Public License and + Netscape Public License. (Filling in the name of the Initial + Developer, Original Code or Contributor in the notice described in + Exhibit A shall not of themselves be deemed to be modifications of + this License.) + +7. DISCLAIMER OF WARRANTY. + + COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF + DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. + THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE + IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, + YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE + COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER + OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF + ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. + +8. TERMINATION. + + 8.1. This License and the rights granted hereunder will terminate + automatically if You fail to comply with terms herein and fail to cure + such breach within 30 days of becoming aware of the breach. All + sublicenses to the Covered Code which are properly granted shall + survive any termination of this License. Provisions which, by their + nature, must remain in effect beyond the termination of this License + shall survive. + + 8.2. If You initiate litigation by asserting a patent infringement + claim (excluding declatory judgment actions) against Initial Developer + or a Contributor (the Initial Developer or Contributor against whom + You file such action is referred to as "Participant") alleging that: + + (a) such Participant's Contributor Version directly or indirectly + infringes any patent, then any and all rights granted by such + Participant to You under Sections 2.1 and/or 2.2 of this License + shall, upon 60 days notice from Participant terminate prospectively, + unless if within 60 days after receipt of notice You either: (i) + agree in writing to pay Participant a mutually agreeable reasonable + royalty for Your past and future use of Modifications made by such + Participant, or (ii) withdraw Your litigation claim with respect to + the Contributor Version against such Participant. If within 60 days + of notice, a reasonable royalty and payment arrangement are not + mutually agreed upon in writing by the parties or the litigation claim + is not withdrawn, the rights granted by Participant to You under + Sections 2.1 and/or 2.2 automatically terminate at the expiration of + the 60 day notice period specified above. + + (b) any software, hardware, or device, other than such Participant's + Contributor Version, directly or indirectly infringes any patent, then + any rights granted to You by such Participant under Sections 2.1(b) + and 2.2(b) are revoked effective as of the date You first made, used, + sold, distributed, or had made, Modifications made by that + Participant. + + 8.3. If You assert a patent infringement claim against Participant + alleging that such Participant's Contributor Version directly or + indirectly infringes any patent where such claim is resolved (such as + by license or settlement) prior to the initiation of patent + infringement litigation, then the reasonable value of the licenses + granted by such Participant under Sections 2.1 or 2.2 shall be taken + into account in determining the amount or value of any payment or + license. + + 8.4. In the event of termination under Sections 8.1 or 8.2 above, + all end user license agreements (excluding distributors and resellers) + which have been validly granted by You or any distributor hereunder + prior to termination shall survive termination. + +9. LIMITATION OF LIABILITY. + + UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT + (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL + DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, + OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR + ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY + CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, + WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER + COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN + INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF + LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY + RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW + PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE + EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO + THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. + +10. U.S. GOVERNMENT END USERS. + + The Covered Code is a "commercial item," as that term is defined in + 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer + software" and "commercial computer software documentation," as such + terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 + C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), + all U.S. Government End Users acquire Covered Code with only those + rights set forth herein. + +11. MISCELLANEOUS. + + This License represents the complete agreement concerning subject + matter hereof. If any provision of this License is held to be + unenforceable, such provision shall be reformed only to the extent + necessary to make it enforceable. This License shall be governed by + California law provisions (except to the extent applicable law, if + any, provides otherwise), excluding its conflict-of-law provisions. + With respect to disputes in which at least one party is a citizen of, + or an entity chartered or registered to do business in the United + States of America, any litigation relating to this License shall be + subject to the jurisdiction of the Federal Courts of the Northern + District of California, with venue lying in Santa Clara County, + California, with the losing party responsible for costs, including + without limitation, court costs and reasonable attorneys' fees and + expenses. The application of the United Nations Convention on + Contracts for the International Sale of Goods is expressly excluded. + Any law or regulation which provides that the language of a contract + shall be construed against the drafter shall not apply to this + License. + +12. RESPONSIBILITY FOR CLAIMS. + + As between Initial Developer and the Contributors, each party is + responsible for claims and damages arising, directly or indirectly, + out of its utilization of rights under this License and You agree to + work with Initial Developer and Contributors to distribute such + responsibility on an equitable basis. Nothing herein is intended or + shall be deemed to constitute any admission of liability. + +13. MULTIPLE-LICENSED CODE. + + Initial Developer may designate portions of the Covered Code as + "Multiple-Licensed". "Multiple-Licensed" means that the Initial + Developer permits you to utilize portions of the Covered Code under + Your choice of the NPL or the alternative licenses, if any, specified + by the Initial Developer in the file described in Exhibit A. + +EXHIBIT A -Mozilla Public License. + + ``The contents of this file are subject to the Mozilla Public License + Version 1.1 (the "License"); you may not use this file except in + compliance with the License. You may obtain a copy of the License at + http://www.mozilla.org/MPL/ + + Software distributed under the License is distributed on an "AS IS" + basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the + License for the specific language governing rights and limitations + under the License. + + The Original Code is ______________________________________. + + The Initial Developer of the Original Code is ________________________. + Portions created by ______________________ are Copyright (C) ______ + _______________________. All Rights Reserved. + + Contributor(s): ______________________________________. + + Alternatively, the contents of this file may be used under the terms + of the _____ license (the "[___] License"), in which case the + provisions of [______] License are applicable instead of those + above. If you wish to allow use of your version of this file only + under the terms of the [____] License and not to allow others to use + your version of this file under the MPL, indicate your decision by + deleting the provisions above and replace them with the notice and + other provisions required by the [___] License. If you do not delete + the provisions above, a recipient may use your version of this file + under either the MPL or the [___] License." + + [NOTE: The text of this Exhibit A may differ slightly from the text of + the notices in the Source Code files of the Original Code. You should + use the text of this Exhibit A rather than the text found in the + Original Code Source Code for Your Modifications.] + +### Microsoft Public License + +Microsoft Permissive License (Ms-PL) + + This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. + +1. Definitions + + The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law. + A “contribution” is the original software, or any additions or changes to the software. + A “contributor” is any person that distributes its contribution under this license. + “Licensed patents” are a contributor’s patent claims that read directly on its contribution. + +2. Grant of Rights + + (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. + (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. + +3. Conditions and Limitations + + (A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks. + (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. + (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. + (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. + (E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. + (F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor. + (G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own. + +### Infozip BSD + +This is version 2009-Jan-02 of the Info-ZIP license. The definitive +version of this document should be available at +ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely and a +copy at http://www.info-zip.org/pub/infozip/license.html. + +Copyright (c) 1990-2009 Info-ZIP. All rights reserved. + +For the purposes of this copyright and license, "Info-ZIP" is defined +as the following set of individuals: Mark Adler, John Bush, Karl +Davis, Harald Denker, Jean-Michel Dubois, Jean-loup Gailly, Hunter +Goatley, Ed Gordon, Ian Gorman, Chris Herborth, Dirk Haase, Greg +Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz, David +Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko, Steve +P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs, +Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda, +Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren, +Rich Wales, Mike White. + +This software is provided "as is," without warranty of any kind, +express or implied. In no event shall Info-ZIP or its contributors be +held liable for any direct, indirect, incidental, special or +consequential damages arising out of the use of or inability to use +this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the above disclaimer and the following +restrictions: + +Redistributions of source code (in whole or in part) must retain the +above copyright notice, definition, disclaimer, and this list of +conditions. + +Redistributions in binary form (compiled executables and libraries) +must reproduce the above copyright notice, definition, disclaimer, and +this list of conditions in documentation and/or other materials +provided with the distribution. Additional documentation is not needed +for executables where a command line license option provides these and +a note regarding this option is in the executable's startup +banner. The sole exception to this condition is redistribution of a +standard UnZipSFX binary (including SFXWiz) as part of a +self-extracting archive; that is permitted without inclusion of this +license, as long as the normal SFX banner has not been removed from +the binary or disabled. + +Altered versions--including, but not limited to, ports to new +operating systems, existing ports with new graphical interfaces, +versions with modified or added functionality, and dynamic, shared, or +static library versions not from Info-ZIP--must be plainly marked as +such and must not be misrepresented as being the original source or, +if binaries, compiled from the original source. Such altered versions +also must not be misrepresented as being Info-ZIP releases--including, +but not limited to, labeling of the altered versions with the names +"Info-ZIP" (or any variation thereof, including, but not limited to, +different capitalizations), "Pocket UnZip," "WiZ" or "MacZip" without +the explicit permission of Info-ZIP. Such altered versions are further +prohibited from misrepresentative use of the Zip-Bugs or Info-ZIP +e-mail addresses or the Info-ZIP URL(s), such as to imply Info-ZIP +will provide support for the altered versions. + +Info-ZIP retains the right to use the names "Info-ZIP," "Zip," +"UnZip," "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" +for its own source and binary releases. + +### License Creative Commons 2.5 + +// Copyright 2006 James Newton-King +// http://www.newtonsoft.com +// +// This work is licensed under the Creative Commons Attribution 2.5 License +// http://creativecommons.org/licenses/by/2.5/ +// +// You are free: +// * to copy, distribute, display, and perform the work +// * to make derivative works +// * to make commercial use of the work +// +// Under the following conditions: +// * For any reuse or distribution, you must make clear to others the license terms of this work. +// * Any of these conditions can be waived if you get permission from the copyright holder. + +From: james.newtonking@gmail.com [mailto:james.newtonking@gmail.com] On Behalf Of James Newton-King +Sent: Tuesday, June 05, 2007 6:36 AM +To: Konstantin Triger +Subject: Re: Support request by Konstantin Triger for Json.NET + +Hey Kosta + +I think it would be awesome to use Json.NET in Mono for System.Web.Extensions. + +The CC license has the following clause: Any of the above conditions can be waived if you get permission from the copyright holder. + +I can waive that statement for you and Mono. Would that be acceptable? + + +Regards, +James + +### Creative Commons Attribution 4.0 International Public License + +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + +### GPL version 2 + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. \ No newline at end of file diff --git a/TwitchDownloaderCore/Resources/twemoji-14.0.0.zip b/TwitchDownloaderCore/Resources/twemoji-14.0.0.zip index 3e434b3a..0a666a42 100644 Binary files a/TwitchDownloaderCore/Resources/twemoji-14.0.0.zip and b/TwitchDownloaderCore/Resources/twemoji-14.0.0.zip differ diff --git a/TwitchDownloaderCore/Tools/CoreLicensor.cs b/TwitchDownloaderCore/Tools/CoreLicensor.cs new file mode 100644 index 00000000..f0097a58 --- /dev/null +++ b/TwitchDownloaderCore/Tools/CoreLicensor.cs @@ -0,0 +1,55 @@ +using System; +using System.IO; +using System.Security.Cryptography; + +namespace TwitchDownloaderCore.Tools +{ + // This file should not be modified without explicit permission + public static class CoreLicensor + { + public static void EnsureFilesExist(string baseDir) + { + if (string.IsNullOrEmpty(baseDir)) + { + baseDir = AppContext.BaseDirectory; + } + + using (var ms = new MemoryStream(Properties.Resources.copyright)) + { + var filePath = Path.Combine(baseDir, "COPYRIGHT.txt"); + TryCopyIfDifferent(ms, filePath); + } + + using (var ms = new MemoryStream(Properties.Resources.third_party_licenses)) + { + var filePath = Path.Combine(baseDir, "THIRD-PARTY-LICENSES.txt"); + TryCopyIfDifferent(ms, filePath); + } + } + + private static void TryCopyIfDifferent(Stream resourceStream, string filePath) + { + try + { + using var sha256 = SHA256.Create(); + + var resourceHash = sha256.ComputeHash(resourceStream); + + byte[] fileHash; + using (var fs = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.Read, FileShare.Read)) + { + fileHash = sha256.ComputeHash(fs); + } + + if (!resourceHash.AsSpan().SequenceEqual(fileHash)) + { + resourceStream.Seek(0, SeekOrigin.Begin); + using var fs = File.Create(filePath); + resourceStream.CopyTo(fs); + } + } + catch (IOException) { } + catch (UnauthorizedAccessException) { } + } + } +} \ No newline at end of file diff --git a/TwitchDownloaderCore/TwitchDownloaderCore.csproj b/TwitchDownloaderCore/TwitchDownloaderCore.csproj index 6f2858d3..27ee1ec3 100644 --- a/TwitchDownloaderCore/TwitchDownloaderCore.csproj +++ b/TwitchDownloaderCore/TwitchDownloaderCore.csproj @@ -17,6 +17,8 @@ + + @@ -31,6 +33,19 @@ + + + Always + COPYRIGHT.txt + false + + + Always + THIRD-PARTY-LICENSES.txt + false + + + True diff --git a/TwitchDownloaderWPF/App.xaml b/TwitchDownloaderWPF/App.xaml index f8bc9eba..6dd4a03c 100644 --- a/TwitchDownloaderWPF/App.xaml +++ b/TwitchDownloaderWPF/App.xaml @@ -2,6 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:TwitchDownloaderWPF" + xmlns:behave="clr-namespace:TwitchDownloaderWPF.Behaviors" xmlns:hc="https://handyorg.github.io/handycontrol"> @@ -39,6 +40,10 @@ + + \ No newline at end of file diff --git a/TwitchDownloaderWPF/Behaviors/WindowIntegrityCheckBehavior.cs b/TwitchDownloaderWPF/Behaviors/WindowIntegrityCheckBehavior.cs new file mode 100644 index 00000000..05f97a51 --- /dev/null +++ b/TwitchDownloaderWPF/Behaviors/WindowIntegrityCheckBehavior.cs @@ -0,0 +1,27 @@ +using System.Windows; +using TwitchDownloaderCore.Tools; + +namespace TwitchDownloaderWPF.Behaviors +{ + public class WindowIntegrityCheckBehavior : DependencyObject + { + public static readonly DependencyProperty IntegrityCheckProperty = DependencyProperty.RegisterAttached( + nameof(IntegrityCheck), typeof(bool), typeof(WindowIntegrityCheckBehavior), new PropertyMetadata(false, OnPropertyChanged)); + + private static void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + if (d is not Window) + { + return; + } + + CoreLicensor.EnsureFilesExist(null); + } + + public bool IntegrityCheck + { + get => (bool)GetValue(IntegrityCheckProperty); + set => SetValue(IntegrityCheckProperty, value); + } + } +} \ No newline at end of file diff --git a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs index 3f571ec8..bade434f 100644 --- a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs +++ b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs @@ -12,7 +12,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TwitchDownloader")] -[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyCopyright("Copyright © 2019 lay295 and contributors")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/TwitchDownloaderWPF/README.md b/TwitchDownloaderWPF/README.md index 8790e58b..4c301e14 100644 --- a/TwitchDownloaderWPF/README.md +++ b/TwitchDownloaderWPF/README.md @@ -228,9 +228,9 @@ the *Partial Render* option to render a smaller section of the chat, see Figure **Warning: modifying Ffmpeg arguments may cause pipe errors!** -**Input Arguments**: The arguments for controlling the rendered input to ffmpeg. +**Input Arguments**: The arguments for controlling the rendered input to FFmpeg. -**Output Arguments**: The arguments for controlling the encoded output from ffmpeg. +**Output Arguments**: The arguments for controlling the encoded output from FFmpeg. **Reset To Defaults**: Reset both of the Ffmpeg arguments to default. diff --git a/TwitchDownloaderWPF/TwitchDownloaderWPF.csproj b/TwitchDownloaderWPF/TwitchDownloaderWPF.csproj index f5ea63d4..805d8193 100644 --- a/TwitchDownloaderWPF/TwitchDownloaderWPF.csproj +++ b/TwitchDownloaderWPF/TwitchDownloaderWPF.csproj @@ -13,8 +13,7 @@ false false true - 0 - 1.0.0.%2a + MIT false true false @@ -106,9 +105,4 @@ Settings.Designer.cs - - - - -