Update deps with breaking changes
This commit is contained in:
		
							
								
								
									
										290
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										290
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @@ -3,11 +3,11 @@ name = "tum_mediasite_downloader" | |||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)", |  "clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "cookie 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "cookie 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "dotenv 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "dotenv 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "json 0.11.8 (registry+https://github.com/rust-lang/crates.io-index)", |  "json 0.11.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", |  "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "reqwest 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "reqwest 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "zip 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", |  "zip 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| @@ -38,11 +38,6 @@ name = "ansi_term" | |||||||
| version = "0.9.0" | version = "0.9.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] |  | ||||||
| name = "antidote" |  | ||||||
| version = "1.0.0" |  | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" |  | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "atty" | name = "atty" | ||||||
| version = "0.2.2" | version = "0.2.2" | ||||||
| @@ -78,10 +73,11 @@ dependencies = [ | |||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "base64" | name = "base64" | ||||||
| version = "0.5.2" | version = "0.6.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |  "byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| @@ -94,6 +90,15 @@ name = "byteorder" | |||||||
| version = "1.1.0" | version = "1.1.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "bytes" | ||||||
|  | version = "0.4.4" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "iovec 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "bzip2" | name = "bzip2" | ||||||
| version = "0.3.2" | version = "0.3.2" | ||||||
| @@ -135,7 +140,7 @@ dependencies = [ | |||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "cookie" | name = "cookie" | ||||||
| version = "0.8.1" | version = "0.9.1" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", |  "time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| @@ -222,6 +227,20 @@ name = "foreign-types" | |||||||
| version = "0.2.0" | version = "0.2.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "futures" | ||||||
|  | version = "0.1.14" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "futures-cpupool" | ||||||
|  | version = "0.1.5" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "gcc" | name = "gcc" | ||||||
| version = "0.3.51" | version = "0.3.51" | ||||||
| @@ -234,30 +253,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "hyper" | name = "hyper" | ||||||
| version = "0.10.12" | version = "0.11.1" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "base64 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "futures-cpupool 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "httparse 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", |  "httparse 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "mime 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", |  "mime 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "percent-encoding 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", |  "time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "traitobject 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |  "tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "unicase 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "hyper-native-tls" | name = "hyper-tls" | ||||||
| version = "0.2.4" | version = "0.1.2" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "hyper 0.10.12 (registry+https://github.com/rust-lang/crates.io-index)", |  "hyper 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", |  "native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| @@ -270,6 +297,15 @@ dependencies = [ | |||||||
|  "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", |  "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "iovec" | ||||||
|  | version = "0.1.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "itoa" | name = "itoa" | ||||||
| version = "0.3.1" | version = "0.3.1" | ||||||
| @@ -299,6 +335,11 @@ name = "lazy_static" | |||||||
| version = "0.2.8" | version = "0.2.8" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "lazycell" | ||||||
|  | version = "0.4.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "libc" | name = "libc" | ||||||
| version = "0.2.26" | version = "0.2.26" | ||||||
| @@ -333,10 +374,10 @@ dependencies = [ | |||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "mime" | name = "mime" | ||||||
| version = "0.2.6" | version = "0.3.2" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |  "unicase 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| @@ -348,6 +389,33 @@ dependencies = [ | |||||||
|  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", |  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "mio" | ||||||
|  | version = "0.6.9" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "iovec 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "lazycell 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "net2 0.2.30 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "miow" | ||||||
|  | version = "0.2.1" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "net2 0.2.30 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "msdos_time" | name = "msdos_time" | ||||||
| version = "0.1.5" | version = "0.1.5" | ||||||
| @@ -370,6 +438,18 @@ dependencies = [ | |||||||
|  "tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", |  "tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "net2" | ||||||
|  | version = "0.2.30" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "num-traits" | name = "num-traits" | ||||||
| version = "0.1.40" | version = "0.1.40" | ||||||
| @@ -457,16 +537,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "reqwest" | name = "reqwest" | ||||||
| version = "0.6.2" | version = "0.7.1" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "hyper 0.10.12 (registry+https://github.com/rust-lang/crates.io-index)", |  "bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "hyper-native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "hyper 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "libflate 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", |  "libflate 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", |  "serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", |  "serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| @@ -475,6 +561,19 @@ name = "rustc-demangle" | |||||||
| version = "0.1.4" | version = "0.1.4" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "rustc_version" | ||||||
|  | version = "0.1.7" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "safemem" | ||||||
|  | version = "0.2.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "schannel" | name = "schannel" | ||||||
| version = "0.1.7" | version = "0.1.7" | ||||||
| @@ -489,6 +588,11 @@ dependencies = [ | |||||||
|  "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "scoped-tls" | ||||||
|  | version = "0.1.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "secur32-sys" | name = "secur32-sys" | ||||||
| version = "0.2.0" | version = "0.2.0" | ||||||
| @@ -518,6 +622,11 @@ dependencies = [ | |||||||
|  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", |  "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "semver" | ||||||
|  | version = "0.1.20" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "serde" | name = "serde" | ||||||
| version = "1.0.10" | version = "1.0.10" | ||||||
| @@ -545,6 +654,16 @@ dependencies = [ | |||||||
|  "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", |  "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "slab" | ||||||
|  | version = "0.3.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "smallvec" | ||||||
|  | version = "0.2.1" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "strsim" | name = "strsim" | ||||||
| version = "0.6.0" | version = "0.6.0" | ||||||
| @@ -568,6 +687,11 @@ dependencies = [ | |||||||
|  "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", |  "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "take" | ||||||
|  | version = "0.1.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "tempdir" | name = "tempdir" | ||||||
| version = "0.3.5" | version = "0.3.5" | ||||||
| @@ -616,21 +740,72 @@ dependencies = [ | |||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "traitobject" | name = "tokio-core" | ||||||
| version = "0.1.0" | version = "0.1.8" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "iovec 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "mio 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "typeable" | name = "tokio-io" | ||||||
| version = "0.1.2" | version = "0.1.2" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "tokio-proto" | ||||||
|  | version = "0.1.1" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "net2 0.2.30 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "rand 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "tokio-service" | ||||||
|  | version = "0.1.0" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "tokio-tls" | ||||||
|  | version = "0.1.3" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "unicase" | name = "unicase" | ||||||
| version = "1.4.2" | version = "2.0.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", |  "rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
| ] | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| @@ -689,11 +864,6 @@ name = "vec_map" | |||||||
| version = "0.8.0" | version = "0.8.0" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
| [[package]] |  | ||||||
| name = "version_check" |  | ||||||
| version = "0.1.3" |  | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" |  | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "void" | name = "void" | ||||||
| version = "1.0.2" | version = "1.0.2" | ||||||
| @@ -709,6 +879,15 @@ name = "winapi-build" | |||||||
| version = "0.1.1" | version = "0.1.1" | ||||||
| source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  |  | ||||||
|  | [[package]] | ||||||
|  | name = "ws2_32-sys" | ||||||
|  | version = "0.2.1" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | dependencies = [ | ||||||
|  |  "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  |  "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||||||
|  | ] | ||||||
|  |  | ||||||
| [[package]] | [[package]] | ||||||
| name = "zip" | name = "zip" | ||||||
| version = "0.2.5" | version = "0.2.5" | ||||||
| @@ -726,18 +905,18 @@ dependencies = [ | |||||||
| "checksum advapi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e06588080cb19d0acb6739808aafa5f26bfb2ca015b2b6370028b44cf7cb8a9a" | "checksum advapi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e06588080cb19d0acb6739808aafa5f26bfb2ca015b2b6370028b44cf7cb8a9a" | ||||||
| "checksum aho-corasick 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699" | "checksum aho-corasick 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699" | ||||||
| "checksum ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6" | "checksum ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6" | ||||||
| "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" |  | ||||||
| "checksum atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d912da0db7fa85514874458ca3651fe2cddace8d0b0505571dbdcd41ab490159" | "checksum atty 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d912da0db7fa85514874458ca3651fe2cddace8d0b0505571dbdcd41ab490159" | ||||||
| "checksum backtrace 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "72f9b4182546f4b04ebc4ab7f84948953a118bd6021a1b6a6c909e3e94f6be76" | "checksum backtrace 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "72f9b4182546f4b04ebc4ab7f84948953a118bd6021a1b6a6c909e3e94f6be76" | ||||||
| "checksum backtrace-sys 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "3a0d842ea781ce92be2bf78a9b38883948542749640b8378b3b2f03d1fd9f1ff" | "checksum backtrace-sys 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "3a0d842ea781ce92be2bf78a9b38883948542749640b8378b3b2f03d1fd9f1ff" | ||||||
| "checksum base64 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "30e93c03064e7590d0466209155251b90c22e37fab1daf2771582598b5827557" | "checksum base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9" | ||||||
| "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" | "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" | ||||||
| "checksum byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff81738b726f5d099632ceaffe7fb65b90212e8dce59d518729e7e8634032d3d" | "checksum byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff81738b726f5d099632ceaffe7fb65b90212e8dce59d518729e7e8634032d3d" | ||||||
|  | "checksum bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8b24f16593f445422331a5eed46b72f7f171f910fead4f2ea8f17e727e9c5c14" | ||||||
| "checksum bzip2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3eafc42c44e0d827de6b1c131175098fe7fb53b8ce8a47e65cb3ea94688be24" | "checksum bzip2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3eafc42c44e0d827de6b1c131175098fe7fb53b8ce8a47e65cb3ea94688be24" | ||||||
| "checksum bzip2-sys 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "98ce3fff84d4e90011f464bbdf48e3428f04270439f703868fd489d2aaedfc30" | "checksum bzip2-sys 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "98ce3fff84d4e90011f464bbdf48e3428f04270439f703868fd489d2aaedfc30" | ||||||
| "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" | "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" | ||||||
| "checksum clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)" = "867a885995b4184be051b70a592d4d70e32d7a188db6e8dff626af286a962771" | "checksum clap 2.25.0 (registry+https://github.com/rust-lang/crates.io-index)" = "867a885995b4184be051b70a592d4d70e32d7a188db6e8dff626af286a962771" | ||||||
| "checksum cookie 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f6d2299f4d14d304e5ca0090207b05616110ec9cc35bba3c5c6426ba647f547d" | "checksum cookie 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a54aa6d675d62b2f95b56b331b5222a520149a54f23a2d21974dfcc69caf0a9d" | ||||||
| "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" | "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" | ||||||
| "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" | "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" | ||||||
| "checksum crypt32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e34988f7e069e0b2f3bfc064295161e489b2d4e04a2e4248fb94360cdf00b4ec" | "checksum crypt32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e34988f7e069e0b2f3bfc064295161e489b2d4e04a2e4248fb94360cdf00b4ec" | ||||||
| @@ -748,25 +927,32 @@ dependencies = [ | |||||||
| "checksum error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d9435d864e017c3c6afeac1654189b06cdb491cf2ff73dbf0d73b0f292f42ff8" | "checksum error-chain 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d9435d864e017c3c6afeac1654189b06cdb491cf2ff73dbf0d73b0f292f42ff8" | ||||||
| "checksum flate2 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)" = "36df0166e856739905cd3d7e0b210fe818592211a008862599845e012d8d304c" | "checksum flate2 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)" = "36df0166e856739905cd3d7e0b210fe818592211a008862599845e012d8d304c" | ||||||
| "checksum foreign-types 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3e4056b9bd47f8ac5ba12be771f77a0dae796d1bbaaf5fd0b9c2d38b69b8a29d" | "checksum foreign-types 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3e4056b9bd47f8ac5ba12be771f77a0dae796d1bbaaf5fd0b9c2d38b69b8a29d" | ||||||
|  | "checksum futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "4b63a4792d4f8f686defe3b39b92127fea6344de5d38202b2ee5a11bbbf29d6a" | ||||||
|  | "checksum futures-cpupool 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "a283c84501e92cade5ea673a2a7ca44f71f209ccdd302a3e0896f50083d2c5ff" | ||||||
| "checksum gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)" = "120d07f202dcc3f72859422563522b66fe6463a4c513df062874daad05f85f0a" | "checksum gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)" = "120d07f202dcc3f72859422563522b66fe6463a4c513df062874daad05f85f0a" | ||||||
| "checksum httparse 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "af2f2dd97457e8fb1ae7c5a420db346af389926e36f43768b96f101546b04a07" | "checksum httparse 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "af2f2dd97457e8fb1ae7c5a420db346af389926e36f43768b96f101546b04a07" | ||||||
| "checksum hyper 0.10.12 (registry+https://github.com/rust-lang/crates.io-index)" = "0f01e4a20f5dfa5278d7762b7bdb7cab96e24378b9eca3889fbd4b5e94dc7063" | "checksum hyper 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "75f57d451deabf8ad8fa1488d27b24834c9f5b6ca996da8d0c9dc5ce9c8d4d34" | ||||||
| "checksum hyper-native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "72332e4a35d3059583623b50e98e491b78f8b96c5521fcb3f428167955aa56e8" | "checksum hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9c81fa95203e2a6087242c38691a0210f23e9f3f8f944350bd676522132e2985" | ||||||
| "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" | "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" | ||||||
|  | "checksum iovec 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "29d062ee61fccdf25be172e70f34c9f6efc597e1fb8f6526e8437b2046ab26be" | ||||||
| "checksum itoa 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eb2f404fbc66fd9aac13e998248505e7ecb2ad8e44ab6388684c5fb11c6c251c" | "checksum itoa 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eb2f404fbc66fd9aac13e998248505e7ecb2ad8e44ab6388684c5fb11c6c251c" | ||||||
| "checksum json 0.11.8 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb7442ee2e5698acd4db44d0746ef56785e3100d8f136fabde8b43cf482428b" | "checksum json 0.11.8 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb7442ee2e5698acd4db44d0746ef56785e3100d8f136fabde8b43cf482428b" | ||||||
| "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" | ||||||
| "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" | "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" | ||||||
| "checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf" | "checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf" | ||||||
|  | "checksum lazycell 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce12306c4739d86ee97c23139f3a34ddf0387bbf181bc7929d287025a8c3ef6b" | ||||||
| "checksum libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)" = "30885bcb161cf67054244d10d4a7f4835ffd58773bc72e07d35fecf472295503" | "checksum libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)" = "30885bcb161cf67054244d10d4a7f4835ffd58773bc72e07d35fecf472295503" | ||||||
| "checksum libflate 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "bb9e5c68bd981985afa70d22a81f339bb0ea8a071760e99894d6d393417e4a29" | "checksum libflate 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "bb9e5c68bd981985afa70d22a81f339bb0ea8a071760e99894d6d393417e4a29" | ||||||
| "checksum log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b" | "checksum log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b" | ||||||
| "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" | "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" | ||||||
| "checksum memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4" | "checksum memchr 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4" | ||||||
| "checksum mime 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" | "checksum mime 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c5ca99d8a021c1687882fd68dca26e601ceff5c26571c7cb41cf4ed60d57cb2d" | ||||||
| "checksum miniz-sys 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "28eaee17666671fa872e567547e8428e83308ebe5808cdf6a0e28397dbe2c726" | "checksum miniz-sys 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "28eaee17666671fa872e567547e8428e83308ebe5808cdf6a0e28397dbe2c726" | ||||||
|  | "checksum mio 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9e965267d4d58496fc4f740e9861118367f13570cadf66316ed2c3f2f14d87c7" | ||||||
|  | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" | ||||||
| "checksum msdos_time 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "65ba9d75bcea84e07812618fedf284a64776c2f2ea0cad6bca7f69739695a958" | "checksum msdos_time 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "65ba9d75bcea84e07812618fedf284a64776c2f2ea0cad6bca7f69739695a958" | ||||||
| "checksum native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04b781c9134a954c84f0594b9ab3f5606abc516030388e8511887ef4c204a1e5" | "checksum native-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04b781c9134a954c84f0594b9ab3f5606abc516030388e8511887ef4c204a1e5" | ||||||
|  | "checksum net2 0.2.30 (registry+https://github.com/rust-lang/crates.io-index)" = "94101fd932816f97eb9a5116f6c1a11511a1fed7db21c5ccd823b2dc11abf566" | ||||||
| "checksum num-traits 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "99843c856d68d8b4313b03a17e33c4bb42ae8f6610ea81b28abe076ac721b9b0" | "checksum num-traits 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "99843c856d68d8b4313b03a17e33c4bb42ae8f6610ea81b28abe076ac721b9b0" | ||||||
| "checksum num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aec53c34f2d0247c5ca5d32cca1478762f301740468ee9ee6dcb7a0dd7a0c584" | "checksum num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aec53c34f2d0247c5ca5d32cca1478762f301740468ee9ee6dcb7a0dd7a0c584" | ||||||
| "checksum openssl 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)" = "11ba043cb65fc9af71a431b8a36ffe8686cd4751cdf70a473ec1d01066ac7e41" | "checksum openssl 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)" = "11ba043cb65fc9af71a431b8a36ffe8686cd4751cdf70a473ec1d01066ac7e41" | ||||||
| @@ -779,26 +965,36 @@ dependencies = [ | |||||||
| "checksum redox_syscall 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "9df6a71a1e67be2104410736b2389fb8e383c1d7e9e792d629ff13c02867147a" | "checksum redox_syscall 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "9df6a71a1e67be2104410736b2389fb8e383c1d7e9e792d629ff13c02867147a" | ||||||
| "checksum regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b" | "checksum regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b" | ||||||
| "checksum regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db" | "checksum regex-syntax 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db" | ||||||
| "checksum reqwest 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1d56dbe269dbe19d716b76ec8c3efce8ef84e974f5b7e5527463e8c0507d4e17" | "checksum reqwest 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a5ccc5505e66049646295469087f08f65915faec98eeb4e3a4d4d444b4cdd0d5" | ||||||
| "checksum rustc-demangle 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "3058a43ada2c2d0b92b3ae38007a2d0fa5e9db971be260e0171408a4ff471c95" | "checksum rustc-demangle 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "3058a43ada2c2d0b92b3ae38007a2d0fa5e9db971be260e0171408a4ff471c95" | ||||||
|  | "checksum rustc_version 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "c5f5376ea5e30ce23c03eb77cbe4962b988deead10910c372b226388b594c084" | ||||||
|  | "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" | ||||||
| "checksum schannel 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "14a5f8491ae5fc8c51aded1f5806282a0218b4d69b1b76913a0559507e559b90" | "checksum schannel 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "14a5f8491ae5fc8c51aded1f5806282a0218b4d69b1b76913a0559507e559b90" | ||||||
|  | "checksum scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f417c22df063e9450888a7561788e9bd46d3bb3c1466435b4eccb903807f147d" | ||||||
| "checksum secur32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3f412dfa83308d893101dd59c10d6fda8283465976c28c287c5c855bf8d216bc" | "checksum secur32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3f412dfa83308d893101dd59c10d6fda8283465976c28c287c5c855bf8d216bc" | ||||||
| "checksum security-framework 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "42ddf098d78d0b64564b23ee6345d07573e7d10e52ad86875d89ddf5f8378a02" | "checksum security-framework 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "42ddf098d78d0b64564b23ee6345d07573e7d10e52ad86875d89ddf5f8378a02" | ||||||
| "checksum security-framework-sys 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "5bacdada57ea62022500c457c8571c17dfb5e6240b7c8eac5916ffa8c7138a55" | "checksum security-framework-sys 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "5bacdada57ea62022500c457c8571c17dfb5e6240b7c8eac5916ffa8c7138a55" | ||||||
|  | "checksum semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "d4f410fedcf71af0345d7607d246e7ad15faaadd49d240ee3b24e5dc21a820ac" | ||||||
| "checksum serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "433d7d9f8530d5a939ad5e0e72a6243d2e42a24804f70bf592c679363dcacb2f" | "checksum serde 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "433d7d9f8530d5a939ad5e0e72a6243d2e42a24804f70bf592c679363dcacb2f" | ||||||
| "checksum serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "48b04779552e92037212c3615370f6bd57a40ebba7f20e554ff9f55e41a69a7b" | "checksum serde_json 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "48b04779552e92037212c3615370f6bd57a40ebba7f20e554ff9f55e41a69a7b" | ||||||
| "checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" | "checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" | ||||||
|  | "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" | ||||||
|  | "checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" | ||||||
| "checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" | "checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" | ||||||
| "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" | "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" | ||||||
| "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" | "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" | ||||||
|  | "checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" | ||||||
| "checksum tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6" | "checksum tempdir 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6" | ||||||
| "checksum term_size 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2b6b55df3198cc93372e85dd2ed817f0e38ce8cc0f22eb32391bfad9c4bf209" | "checksum term_size 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2b6b55df3198cc93372e85dd2ed817f0e38ce8cc0f22eb32391bfad9c4bf209" | ||||||
| "checksum textwrap 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f86300c3e7416ee233abd7cda890c492007a3980f941f79185c753a701257167" | "checksum textwrap 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f86300c3e7416ee233abd7cda890c492007a3980f941f79185c753a701257167" | ||||||
| "checksum thread_local 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14" | "checksum thread_local 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14" | ||||||
| "checksum time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)" = "d5d788d3aa77bc0ef3e9621256885555368b47bd495c13dd2e7413c89f845520" | "checksum time 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)" = "d5d788d3aa77bc0ef3e9621256885555368b47bd495c13dd2e7413c89f845520" | ||||||
| "checksum traitobject 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" | "checksum tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6a20ba4738d283cac7495ca36e045c80c2a8df3e05dd0909b17a06646af5a7ed" | ||||||
| "checksum typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" | "checksum tokio-io 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c2c3ce9739f7387a0fa65b5421e81feae92e04d603f008898f4257790ce8c2db" | ||||||
| "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" | "checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" | ||||||
|  | "checksum tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" | ||||||
|  | "checksum tokio-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d88e411cac1c87e405e4090be004493c5d8072a370661033b1a64ea205ec2e13" | ||||||
|  | "checksum unicase 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2e01da42520092d0cd2d6ac3ae69eb21a22ad43ff195676b86f8c37f487d6b80" | ||||||
| "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" | "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" | ||||||
| "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" | "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" | ||||||
| "checksum unicode-segmentation 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "18127285758f0e2c6cf325bb3f3d138a12fee27de4f23e146cd6a179f26c2cf3" | "checksum unicode-segmentation 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "18127285758f0e2c6cf325bb3f3d138a12fee27de4f23e146cd6a179f26c2cf3" | ||||||
| @@ -808,8 +1004,8 @@ dependencies = [ | |||||||
| "checksum url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eeb819346883532a271eb626deb43c4a1bb4c4dd47c519bd78137c3e72a4fe27" | "checksum url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eeb819346883532a271eb626deb43c4a1bb4c4dd47c519bd78137c3e72a4fe27" | ||||||
| "checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" | "checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" | ||||||
| "checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" | "checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" | ||||||
| "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" |  | ||||||
| "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" | "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" | ||||||
| "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" | ||||||
| "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" | ||||||
|  | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" | ||||||
| "checksum zip 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "12143b8b0e8d215391a2c6362d54b482589cb469b0fa4d047c42067cd4bcb311" | "checksum zip 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "12143b8b0e8d215391a2c6362d54b482589cb469b0fa4d047c42067cd4bcb311" | ||||||
|   | |||||||
| @@ -4,10 +4,10 @@ name = "tum_mediasite_downloader" | |||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
|  |  | ||||||
| [dependencies] | [dependencies] | ||||||
| clap = "2.20.5" | clap = "2.25.0" | ||||||
| cookie = "0.8.1" | cookie = "0.9.1" | ||||||
| dotenv = "0.10.0" | dotenv = "0.10.0" | ||||||
| json = "0.11.5" | json = "0.11.5" | ||||||
| lazy_static = "0.2.2" | lazy_static = "0.2.2" | ||||||
| reqwest = "0.6.0" | reqwest = "0.7.1" | ||||||
| zip = "0.2.1" | zip = "0.2.1" | ||||||
|   | |||||||
							
								
								
									
										37
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								src/main.rs
									
									
									
									
									
								
							| @@ -17,7 +17,7 @@ use std::path::Path; | |||||||
| use std::sync::Mutex; | use std::sync::Mutex; | ||||||
|  |  | ||||||
| use clap::{App, Arg}; | use clap::{App, Arg}; | ||||||
| use reqwest::{Client, Response, RedirectPolicy, RequestBuilder}; | use reqwest::{Client, ClientBuilder, Response, RedirectPolicy, RequestBuilder}; | ||||||
| use reqwest::header::{Cookie, SetCookie}; | use reqwest::header::{Cookie, SetCookie}; | ||||||
|  |  | ||||||
| use catalog::*; | use catalog::*; | ||||||
| @@ -30,12 +30,12 @@ use presentation::Presentation; | |||||||
| const MAX_RETRIES: u8 = 10; | const MAX_RETRIES: u8 = 10; | ||||||
|  |  | ||||||
| lazy_static! { | lazy_static! { | ||||||
|     static ref CLIENT: Client = { |     static ref CLIENT: Client = ClientBuilder::new() | ||||||
|         let mut client = Client::new().expect("Failed to create Client!"); |         .expect("Failed to create ClientBuilder!") | ||||||
|         // The login site redirects to itself if no redirect parameter is given |         // The login site redirects to itself if no redirect parameter is given | ||||||
|         client.redirect(RedirectPolicy::none()); |         .redirect(RedirectPolicy::none()) | ||||||
|         client |         .build() | ||||||
|     }; |         .expect("Failed to create Client!"); | ||||||
|  |  | ||||||
|     static ref USERNAME: Mutex<String> = Mutex::new(String::new()); |     static ref USERNAME: Mutex<String> = Mutex::new(String::new()); | ||||||
|     static ref PASSWORD: Mutex<String> = Mutex::new(String::new()); |     static ref PASSWORD: Mutex<String> = Mutex::new(String::new()); | ||||||
| @@ -144,9 +144,11 @@ fn get_auth() { | |||||||
|  |  | ||||||
|     let res = try_to_get_valid_response( |     let res = try_to_get_valid_response( | ||||||
|         |client| { |         |client| { | ||||||
|             client.post("https://streams.tum.de/Mediasite/Login").form( |             let mut request_builder = client.post("https://streams.tum.de/Mediasite/Login").unwrap(); | ||||||
|  |             request_builder.form( | ||||||
|                 &form_data, |                 &form_data, | ||||||
|             ) |             ).expect("Failed to serialize form_data!"); | ||||||
|  |             request_builder | ||||||
|         }, |         }, | ||||||
|         |res| res.headers().get::<SetCookie>().is_some(), |         |res| res.headers().get::<SetCookie>().is_some(), | ||||||
|     ).expect( |     ).expect( | ||||||
| @@ -206,7 +208,11 @@ fn get_catalog_id(name: &str) -> String { | |||||||
|     println!("Fetching catalog id!"); |     println!("Fetching catalog id!"); | ||||||
|  |  | ||||||
|     let url = format!("https://streams.tum.de/Mediasite/Catalog/catalogs/{}", name); |     let url = format!("https://streams.tum.de/Mediasite/Catalog/catalogs/{}", name); | ||||||
|     let mut res = try_to_get_response(|client| client.get(&url).header(construct_cookie())); |     let mut res = try_to_get_response(|client| { | ||||||
|  |         let mut request_builder = client.get(&url).unwrap(); | ||||||
|  |         request_builder.header(construct_cookie()); | ||||||
|  |         request_builder | ||||||
|  |     }); | ||||||
|     let body = read_response_body(&mut res); |     let body = read_response_body(&mut res); | ||||||
|  |  | ||||||
|     let prefix = "CatalogId: '"; |     let prefix = "CatalogId: '"; | ||||||
| @@ -242,18 +248,21 @@ fn get_json(catalog_id: &str) -> String { | |||||||
|     data.insert("ItemsPerPage", "500"); |     data.insert("ItemsPerPage", "500"); | ||||||
|  |  | ||||||
|     let mut res = try_to_get_response(|client| { |     let mut res = try_to_get_response(|client| { | ||||||
|         client |         let mut request_builder = client | ||||||
|             .post( |             .post( | ||||||
|                 "https://streams.tum.de/Mediasite/Catalog/Data/GetPresentationsForFolder", |                 "https://streams.tum.de/Mediasite/Catalog/Data/GetPresentationsForFolder", | ||||||
|             ) |             ).unwrap(); | ||||||
|             .header(construct_cookie()) |         request_builder.header(construct_cookie()) | ||||||
|             .json(&data) |                        .json(&data).expect("Failed to serialize json!"); | ||||||
|  |         request_builder | ||||||
|     }); |     }); | ||||||
|     read_response_body(&mut res) |     read_response_body(&mut res) | ||||||
| } | } | ||||||
|  |  | ||||||
| fn construct_cookie() -> Cookie { | fn construct_cookie() -> Cookie { | ||||||
|     Cookie(vec![format!("MediasiteAuth={}", *AUTH.lock().unwrap())]) |     let mut cookie = Cookie::new(); | ||||||
|  |     cookie.append("MediasiteAuth", (*AUTH.lock().unwrap()).to_string()); | ||||||
|  |     cookie | ||||||
| } | } | ||||||
|  |  | ||||||
| fn try_to_get_response<F>(f: F) -> Response | fn try_to_get_response<F>(f: F) -> Response | ||||||
|   | |||||||
| @@ -58,7 +58,11 @@ impl Presentation { | |||||||
|         match *self { |         match *self { | ||||||
|             Presentation::PublishToGo { ref download_url, .. } => { |             Presentation::PublishToGo { ref download_url, .. } => { | ||||||
|                 let response_res = try_to_get_valid_response( |                 let response_res = try_to_get_valid_response( | ||||||
|                     |client| client.get(download_url).header(construct_cookie()), |                     |client| { | ||||||
|  |                         let mut request_builder = client.get(download_url).unwrap(); | ||||||
|  |                         request_builder.header(construct_cookie()); | ||||||
|  |                         request_builder | ||||||
|  |                     }, | ||||||
|                     |resp| resp.headers().get::<ContentDisposition>().is_some(), |                     |resp| resp.headers().get::<ContentDisposition>().is_some(), | ||||||
|                 ); |                 ); | ||||||
|  |  | ||||||
| @@ -92,7 +96,7 @@ impl Presentation { | |||||||
|                 path.push(fix_filename(&filename)); |                 path.push(fix_filename(&filename)); | ||||||
|  |  | ||||||
|                 download_to_file_and_check(&mut response, &path, |path| check_zip(path)) |                 download_to_file_and_check(&mut response, &path, |path| check_zip(path)) | ||||||
|                     .map_err(|e| DownloadError::IoError(e)) |                     .map_err(DownloadError::IoError) | ||||||
|             } |             } | ||||||
|             Presentation::VideoOnDemand { |             Presentation::VideoOnDemand { | ||||||
|                 ref resource_id, |                 ref resource_id, | ||||||
| @@ -112,11 +116,11 @@ impl Presentation { | |||||||
|                     let url = "https://streams.tum.de/Mediasite/PlayerService/\ |                     let url = "https://streams.tum.de/Mediasite/PlayerService/\ | ||||||
|                                PlayerService.svc/json/GetPlayerOptions"; |                                PlayerService.svc/json/GetPlayerOptions"; | ||||||
|                     let mut res = try_to_get_response(|client| { |                     let mut res = try_to_get_response(|client| { | ||||||
|                         client |                         let mut request_builder = client.post(url).unwrap(); | ||||||
|                             .post(url) |                         request_builder.header(construct_cookie()) | ||||||
|                             .header(construct_cookie()) |  | ||||||
|                                        .header(ContentType::json()) |                                        .header(ContentType::json()) | ||||||
|                             .body(&*payload) |                                        .body(payload.to_string()); | ||||||
|  |                         request_builder | ||||||
|                     }); |                     }); | ||||||
|  |  | ||||||
|                     let json_text = read_response_body(&mut res); |                     let json_text = read_response_body(&mut res); | ||||||
| @@ -135,8 +139,12 @@ impl Presentation { | |||||||
|                 }; |                 }; | ||||||
|                 for (i, download_url) in videos.iter().enumerate() { |                 for (i, download_url) in videos.iter().enumerate() { | ||||||
|                     let mut response = try_to_get_valid_response( |                     let mut response = try_to_get_valid_response( | ||||||
|                         |client| client.get(download_url).header(construct_cookie()), |                         |client| { | ||||||
|                         |resp| resp.status() == &StatusCode::Ok, |                             let mut request_builder = client.get(download_url).unwrap(); | ||||||
|  |                             request_builder.header(construct_cookie()); | ||||||
|  |                             request_builder | ||||||
|  |                         }, | ||||||
|  |                         |resp| resp.status() == StatusCode::Ok, | ||||||
|                     ).unwrap(); |                     ).unwrap(); | ||||||
|                     // TODO: Support formats besides mp4 |                     // TODO: Support formats besides mp4 | ||||||
|                     //       extract extension from url or somewehre else... |                     //       extract extension from url or somewehre else... | ||||||
| @@ -149,7 +157,7 @@ impl Presentation { | |||||||
|                     path.push(fix_filename(&filename)); |                     path.push(fix_filename(&filename)); | ||||||
|  |  | ||||||
|                     download_to_file_and_check(&mut response, &path, |path| check_video(path)) |                     download_to_file_and_check(&mut response, &path, |path| check_video(path)) | ||||||
|                         .map_err(|e| DownloadError::IoError(e))?; |                         .map_err(DownloadError::IoError)?; | ||||||
|                 } |                 } | ||||||
|                 Ok(()) |                 Ok(()) | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user