From a292e92ea2d1c6911f8471b456005afda5d4b72c Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 4 Jun 2024 18:22:28 +0200 Subject: [PATCH] update twitch-fetcher --- Cargo.lock | 148 +++++++++++++++++++++++++++++--------------- Cargo.toml | 1 + twba-twitch-fetcher | 2 +- twitch_data | 2 +- 4 files changed, 100 insertions(+), 53 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c851d51..760d2ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,9 +186,9 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ "gimli", ] @@ -326,9 +326,9 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a64c907d4e79225ac72e2a354c9ce84d50ebb4586dee56c82b3ee73004f537f5" +checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" dependencies = [ "windows-sys 0.52.0", ] @@ -422,9 +422,9 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "backtrace" -version = "0.3.71" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" +checksum = "17c6a35df3749d2e8bb1b7b21a976d82b15548788d2735b9d82f329268f71a11" dependencies = [ "addr2line", "cc", @@ -502,9 +502,9 @@ dependencies = [ [[package]] name = "borsh" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe5b10e214954177fb1dc9fbd20a1a2608fe99e6c832033bdc7cea287a20d77" +checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" dependencies = [ "borsh-derive", "cfg_aliases", @@ -512,9 +512,9 @@ dependencies = [ [[package]] name = "borsh-derive" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7a8646f94ab393e43e8b35a2558b1624bed28b97ee09c5d15456e3c9463f46d" +checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" dependencies = [ "once_cell", "proc-macro-crate", @@ -537,9 +537,9 @@ dependencies = [ [[package]] name = "brotli-decompressor" -version = "4.0.0" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6221fe77a248b9117d431ad93761222e1cf8ff282d9d1d5d9f53d6299a1cf76" +checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", @@ -613,9 +613,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfg_aliases" -version = "0.1.1" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" @@ -1209,9 +1209,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" [[package]] name = "glob" @@ -1227,7 +1227,7 @@ dependencies = [ "base64 0.22.1", "chrono", "http 0.2.12", - "hyper 0.14.28", + "hyper 0.14.29", "itertools 0.12.1", "mime", "percent-encoding 2.3.1", @@ -1248,7 +1248,7 @@ dependencies = [ "anyhow", "google-apis-common", "http 0.2.12", - "hyper 0.14.28", + "hyper 0.14.29", "hyper-rustls", "itertools 0.10.5", "mime", @@ -1458,9 +1458,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.28" +version = "0.14.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" +checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" dependencies = [ "bytes", "futures-channel", @@ -1508,7 +1508,7 @@ checksum = "399c78f9338483cb7e630c8474b07268983c6bd5acee012e4211f9f7bb21b070" dependencies = [ "futures-util", "http 0.2.12", - "hyper 0.14.28", + "hyper 0.14.29", "log", "rustls 0.22.4", "rustls-native-certs", @@ -1524,7 +1524,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ "bytes", - "hyper 0.14.28", + "hyper 0.14.29", "native-tls", "tokio", "tokio-native-tls", @@ -1548,9 +1548,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d8d52be92d09acc2e01dddb7fde3ad983fc6489c7db4837e605bc3fca4cb63e" +checksum = "7b875924a60b96e5d7b9ae7b066540b1dd1cbd90d1828f54c92e02a283351c56" dependencies = [ "bytes", "futures-channel", @@ -1889,11 +1889,10 @@ dependencies = [ [[package]] name = "native-tls" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" +checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" dependencies = [ - "lazy_static", "libc", "log", "openssl", @@ -2015,9 +2014,9 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "object" -version = "0.32.2" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "b8ec7ab813848ba4522158d5517a6093db1ded27575b070f4177b8d12b41db5e" dependencies = [ "memchr", ] @@ -2324,9 +2323,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.83" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b33eb56c327dec362a9e55b3ad14f9d2f0904fb5a5b03b513ab5465399e9f43" +checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" dependencies = [ "unicode-ident", ] @@ -2498,7 +2497,7 @@ dependencies = [ "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.28", + "hyper 0.14.29", "hyper-tls 0.5.0", "ipnet", "js-sys", @@ -2987,18 +2986,18 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.202" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "226b61a0d411b2ba5ff6d7f73a476ac4f8bb900373459cd00fab8512828ba395" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.202" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6048858004bcff69094cd972ed40a32500f153bd3be9f716b2eed2e8217c4838" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", @@ -3643,9 +3642,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.37.0" +version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" +checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ "backtrace", "bytes", @@ -3662,9 +3661,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", @@ -3885,7 +3884,7 @@ dependencies = [ name = "twba-code-receiver" version = "0.1.0" dependencies = [ - "hyper 0.14.28", + "hyper 0.14.29", "lazy_static", "tokio", "tracing", @@ -4019,8 +4018,33 @@ dependencies = [ [[package]] name = "twba-twitch-data" -version = "0.3.2" -source = "git+https://github.com/OMGeeky/twitch_data.git#ad4fc9a2096bef2637ec400bd1bc79b131274ec7" +version = "0.4.0" +dependencies = [ + "anyhow", + "async-recursion", + "chrono", + "exponential_backoff", + "futures", + "indicatif", + "log", + "reqwest 0.11.27", + "serde", + "serde_json", + "shellexpand", + "simplelog", + "thiserror", + "tokio", + "tracing", + "twba-backup-config", + "twitch_api", + "twitch_oauth2", + "twitch_types", +] + +[[package]] +name = "twba-twitch-data" +version = "0.4.0" +source = "git+https://github.com/OMGeeky/twitch_data.git#ee3ff97d262c6af2178da4a08fb5a17ef4a93a56" dependencies = [ "anyhow", "async-recursion", @@ -4045,7 +4069,7 @@ dependencies = [ [[package]] name = "twba-twitch-fetcher" -version = "0.1.1" +version = "0.2.0" dependencies = [ "anyhow", "chrono", @@ -4054,7 +4078,7 @@ dependencies = [ "tokio", "tracing", "twba-common 0.2.5 (git+https://github.com/OMGeeky/twba.common.git)", - "twba-twitch-data", + "twba-twitch-data 0.4.0 (git+https://github.com/OMGeeky/twitch_data.git)", ] [[package]] @@ -4079,6 +4103,28 @@ dependencies = [ "twba-reqwest-backoff 0.1.2 (git+https://github.com/OMGeeky/twba_reqwest_backoff.git)", ] +[[package]] +name = "twba-yt-publisher" +version = "0.1.0" +dependencies = [ + "chrono", + "futures", + "futures-util", + "google-apis-common", + "google-youtube3", + "lazy_static", + "reqwest 0.12.4", + "serde", + "serde_json", + "shellexpand", + "strfmt", + "thiserror", + "tokio", + "tracing", + "twba-common 0.2.5 (git+https://github.com/OMGeeky/twba.common.git)", + "twba-reqwest-backoff 0.1.2 (git+https://github.com/OMGeeky/twba_reqwest_backoff.git)", +] + [[package]] name = "twitch_api" version = "0.7.0-rc.7" @@ -4091,7 +4137,7 @@ dependencies = [ "futures", "hmac", "http 0.2.12", - "hyper 0.14.28", + "hyper 0.14.29", "once_cell", "reqwest 0.11.27", "serde", @@ -4187,9 +4233,9 @@ checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" [[package]] name = "unicode-width" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f5e5f3158ecfd4b8ff6fe086db7c8467a2dfdac97fe420f2b7c4aa97af66d6" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "unicode_categories" @@ -4624,7 +4670,7 @@ dependencies = [ "base64 0.21.7", "futures", "http 0.2.12", - "hyper 0.14.28", + "hyper 0.14.29", "hyper-rustls", "itertools 0.12.1", "log", @@ -4662,9 +4708,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" [[package]] name = "zstd" diff --git a/Cargo.toml b/Cargo.toml index 9e72e62..3920425 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ members = [ "twba-reqwest_backoff", "twba-uploader", "twba-splitter", + "twitch_data", ] [dependencies] diff --git a/twba-twitch-fetcher b/twba-twitch-fetcher index 8187110..7726acf 160000 --- a/twba-twitch-fetcher +++ b/twba-twitch-fetcher @@ -1 +1 @@ -Subproject commit 8187110a82089840227609ec2ed8da01d5bb8dfb +Subproject commit 7726acf5b6c0de3127706d406d8d1975a2325cf2 diff --git a/twitch_data b/twitch_data index ad4fc9a..ee3ff97 160000 --- a/twitch_data +++ b/twitch_data @@ -1 +1 @@ -Subproject commit ad4fc9a2096bef2637ec400bd1bc79b131274ec7 +Subproject commit ee3ff97d262c6af2178da4a08fb5a17ef4a93a56