profile
viewpoint
Simon Bernier St-Pierre sbstp Ubisoft Montréal

sbstp/attohttpc 127

Rust lightweight HTTP 1.1 client

sbstp/hiirc 15

High level IRC client library with ease of use in mind.

jdupl/StrangeLove 1

A crypto-currency mining community manager. Provides access to data about the mining cluster while sharing equally in proportion to each user's hash rate contribution.

sbstp/Eclipse-on-linux 1

A utility script to install a Eclipse on linux.

sbstp/apt-meta 0

APT extension for metapackages

sbstp/asyncio 0

This project is the asyncio module for Python 3.3. Since Python 3.4, asyncio is part of the standard library.

release sbstp/attohttpc

v0.16.0

released time in 13 days

delete branch sbstp/attohttpc

delete branch : feat-log-target

delete time in 13 days

created tagsbstp/attohttpc

tagv0.16.0

Rust lightweight HTTP 1.1 client

created time in 13 days

PR merged sbstp/attohttpc

Set log target globally
+7 -2

0 comment

1 changed file

sbstp

pr closed time in 13 days

push eventsbstp/attohttpc

Puffin McGoose

commit sha d01049c161b20778335b0121f0626b9a242f3579

Set log target globally

view details

Simon Bernier St-Pierre

commit sha b15f86bf44ad7a5de8a79078f6946bc8d1d60592

Fix typo

view details

Simon Bernier St-Pierre

commit sha ce40c9415ad95070ed6a1a1497e6e3d4a52c6430

Merge remote-tracking branch 'origin/feat-log-target'

view details

Simon Bernier St-Pierre

commit sha 4608cfdb1fa33b55a7574aa2c3187bbd64d1b321

Version 0.16.0

view details

push time in 13 days

issue commentsbstp/attohttpc

Is Response::reader supposed to be awkward to get?

Added Read on the Response object.

octylFractal

comment created time in 13 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha ea903c3ba64ac88ffbd575e0d6efdd96e7bbd448

Implement Read on Response

view details

Simon Bernier St-Pierre

commit sha eeed80d3502f1a3413b61383a413a1b5a27e1377

Update README.md

view details

push time in 13 days

issue commentsbstp/attohttpc

Add target in debug! and other log calls

Hey can you check #81 and see if that works for your use case?

szarykott

comment created time in 14 days

push eventsbstp/attohttpc

Puffin McGoose

commit sha d01049c161b20778335b0121f0626b9a242f3579

Set log target globally

view details

push time in 14 days

PR opened sbstp/attohttpc

Set log target globally
+7 -2

0 comment

1 changed file

pr created time in 14 days

create barnchsbstp/attohttpc

branch : feat-log-target

created branch time in 14 days

issue commentsbstp/attohttpc

Is Response::reader supposed to be awkward to get?

Kinda. The reason why you have to do this, is because the methods like text_reader consume the response.

I think Read could be implemented on the response though and it's just going to return EOF when the response has already been fully read.

octylFractal

comment created time in 14 days

issue closedsbstp/attohttpc

danger_accept_invalid_certs for tls-rusttls

Currently danger_accept_invalid_certs is not available for tls-rusttls.

I would suggest adding a helper function to easily disable certificate validation for this feature set.

closed time in 14 days

meldron

issue closedsbstp/attohttpc

Add support for proxies

Proxy support plan:

  • [x] Forward insecure requests to proxy with complete URL
  • [x] Support CONNECT method for secure requests through proxy
  • [x] Allow users to configure a proxy on Session/Request
  • [x] Automatic Support HTTP_PROXY and HTTPS_PROXY
  • [x] Support excluding items with NO_PROXY

closed time in 14 days

sbstp

delete branch sbstp/attohttpc

delete branch : proxy

delete time in 14 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 25c07ab49c371d677f3c35c01175c6608ccafa9f

Proxy support (#80) * Add support for HTTP and CONNECT proxies * Allow manually configuring proxies * Detect proxy configuration from environment variables with `HTTP_PROXY`, `HTTPS_PROXY` and 'NO_PROXY` * Refactor TLS support and provide same API regardless of TLS backend

view details

push time in 14 days

PR merged sbstp/attohttpc

Proxy support
  • Add support for configuring proxies
  • Detect proxies using curl like env variables (HTTP_PROXY, HTTPS_PROXY)
  • Normalize TLS interface between native-tls and rustls, both now support adding root certificates and disabling cert validation.

Addresses #77

+1614 -246

2 comments

30 changed files

sbstp

pr closed time in 14 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha ed2f33d34baa0a5f67f09904823bb5b42fa52acd

Add more tests for proxy, reduce amount of dev-dependencies

view details

push time in 14 days

Pull request review commentsbstp/attohttpc

WIP: Proxy support

+use std::env;++use url::Url;+use wildmatch::WildMatch;++fn get_env(name: &str) -> Option<String> {+    match env::var(name.to_ascii_lowercase()).or_else(|_| env::var(name.to_ascii_uppercase())) {+        Ok(s) => Some(s),+        Err(env::VarError::NotPresent) => None,+        Err(env::VarError::NotUnicode(_)) => {+            warn!(+                "Environment variable {} contains non-unicode characters",+                name.to_ascii_uppercase()+            );+            None+        }+    }+}++fn get_env_url(name: &str) -> Option<Url> {+    match get_env(name) {+        Some(val) => match Url::parse(&val) {+            Ok(url) => match url.scheme() {+                "http" | "https" => Some(url),+                _ => {+                    warn!(+                        "Environment variable {} contains unsupported proxy scheme: {}",+                        name.to_ascii_uppercase(),+                        url.scheme()+                    );+                    None+                }+            },+            Err(err) => {+                warn!(+                    "Environment variable {} contains invalid URL: {}",+                    name.to_ascii_uppercase(),+                    err+                );+                None+            }+        },+        None => None,+    }+}++/// Contains proxy settings and utilities to find which proxy to use for a given URL.+#[derive(Clone, Debug)]+pub struct ProxySettings {+    http_proxy: Option<Url>,+    https_proxy: Option<Url>,+    no_proxy_patterns: Vec<WildMatch>,+}

Later.

sbstp

comment created time in 14 days

PullRequestReviewEvent

issue commentsbstp/attohttpc

danger_accept_invalid_certs for tls-rusttls

I have a working version for this in #80

meldron

comment created time in 16 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 05fffb763ecf6ffebe41c6975d59a1f17d1aba7a

Fix various things

view details

push time in 16 days

Pull request review commentsbstp/attohttpc

WIP: Proxy support

+use std::env;++use url::Url;+use wildmatch::WildMatch;++fn get_env(name: &str) -> Option<String> {+    match env::var(name.to_ascii_lowercase()).or_else(|_| env::var(name.to_ascii_uppercase())) {+        Ok(s) => Some(s),+        Err(env::VarError::NotPresent) => None,+        Err(env::VarError::NotUnicode(_)) => {+            warn!(+                "Environment variable {} contains non-unicode characters",+                name.to_ascii_uppercase()+            );+            None+        }+    }+}++fn get_env_url(name: &str) -> Option<Url> {+    match get_env(name) {+        Some(val) => match Url::parse(&val) {+            Ok(url) => match url.scheme() {+                "http" | "https" => Some(url),+                _ => {+                    warn!(+                        "Environment variable {} contains unsupported proxy scheme: {}",+                        name.to_ascii_uppercase(),+                        url.scheme()+                    );+                    None+                }+            },+            Err(err) => {+                warn!(+                    "Environment variable {} contains invalid URL: {}",+                    name.to_ascii_uppercase(),+                    err+                );+                None+            }+        },+        None => None,+    }+}++/// Contains proxy settings and utilities to find which proxy to use for a given URL.+#[derive(Clone, Debug)]+pub struct ProxySettings {+    http_proxy: Option<Url>,+    https_proxy: Option<Url>,+    no_proxy_patterns: Vec<WildMatch>,+}

Add support for proxy authentication?

sbstp

comment created time in 17 days

PullRequestReviewEvent

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 impl<B: Body> PreparedRequest<B> {     /// Send this request and wait for the result.     pub fn send(&mut self) -> Result<Response> {         let mut url = self.url.clone();-        set_host(&mut self.base_settings.headers, &url)?;+        set_host(&mut self.base_settings.headers, &url)?; // TODO update when redirected

Address this todo, should Host be the proxy or the remote website, to be verified.

sbstp

comment created time in 17 days

PullRequestReviewEvent

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 mod skip_debug {             SkipDebug(val)         }     }++    impl<T> std::ops::Deref for SkipDebug<T> {

Might not be needed anymore.

sbstp

comment created time in 17 days

PullRequestReviewEvent

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 pub fn trim_byte_right(byte: u8, buf: &[u8]) -> &[u8] {     buf.iter().rposition(|b| *b != byte).map_or(&[], |n| &buf[..=n]) } +#[derive(Debug)]+pub struct BufReader2<R> {

Rename to something better.

sbstp

comment created time in 17 days

PullRequestReviewEvent

pull request commentsbstp/attohttpc

WIP: Proxy support

I remember that you had concerns about the TLS libraries being mutually exclusive. At the moment if both tls features are enabled, only native-tls is built.

sbstp

comment created time in 17 days

pull request commentsbstp/attohttpc

WIP: Proxy support

Hey @adamreichold, hope you are well. I've been working on adding support for proxies in attohttpc. I have something which is almost ready to be merged, just needs a few more tests. Was wondering if you could to take a look.

sbstp

comment created time in 17 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha eaaa9f04717fcfbd7fd0d1202f4e584d82a49ca8

Fix clippy on beta

view details

push time in 17 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 03f44ef4e448da682c8d15515cc5d1a540090b31

Add support for root certificates & fix the custom verifier for rustls

view details

Simon Bernier St-Pierre

commit sha d6b956af199f74fca5a5c647646d8c6048213e32

use matches!

view details

push time in 17 days

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 impl<B> PreparedRequest<B> { }  impl<B: Body> PreparedRequest<B> {-    fn write_request<W>(&mut self, writer: W, url: &Url) -> Result+    fn write_request<W>(&mut self, writer: W, url: &Url, proxy: Option<&Url>) -> Result     where         W: Write,     {         let mut writer = BufWriter::new(writer);         let version = Version::HTTP_11; -        if let Some(query) = url.query() {-            debug!("{} {}?{} {:?}", self.method.as_str(), url.path(), query, version);--            write!(-                writer,-                "{} {}?{} {:?}\r\n",-                self.method.as_str(),-                url.path(),-                query,-                version,-            )?;-        } else {-            debug!("{} {} {:?}", self.method.as_str(), url.path(), version);--            write!(writer, "{} {} {:?}\r\n", self.method.as_str(), url.path(), version)?;+        match (proxy, url.scheme(), url.query()) {

This is kinda shitty, should probably be cleaned up

sbstp

comment created time in 17 days

PullRequestReviewEvent

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha a725ddc7c54496aea5d9cd186781b74c66526289

Fix clippy warnings & add tls funcs on session

view details

Simon Bernier St-Pierre

commit sha 6f7876988d455f5a680383a1e29c9f2418fdc1c4

Add script to run clippy

view details

push time in 17 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 30f83acdf51116c32d129d0ee75dddcdd1301cac

Improve error handling for connect errors

view details

push time in 17 days

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 use std::convert::TryInto;+#[cfg(feature = "tls-rustls")]+use std::sync::Arc; use std::time::Duration;  use http::header::{HeaderValue, IntoHeaderName}; use http::Method;--#[cfg(feature = "tls-rustls")]-use std::sync::Arc;--#[cfg(feature = "tls-rustls")]-use rustls::ClientConfig;

Update session

sbstp

comment created time in 17 days

PullRequestReviewEvent

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha c9dda6b3e506560515d6b596a6248eb43ca452a3

Refactor tls support & clean up code using TLS

view details

push time in 17 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 36000a5fc51ee8ea5f3255971722d13f9019bdd8

Partially functional test suite: need fixes for tls-rustls

view details

push time in 17 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha cc5f9ce4169551abca90a9a8fba5b0c936766a62

allow proxy config

view details

Simon Bernier St-Pierre

commit sha 66c6ba98cc4c709346569f23ff357c1169430467

Begin work on automated testing

view details

push time in 19 days

Pull request review commentsbstp/attohttpc

WIP: Proxy support

 impl Display for Error {          match *self.0 {             ConnectNotSupported => write!(w, "CONNECT is not supported"),+            ConnectError => write!(w, "CONNECT error"),             Http(ref e) => write!(w, "Http Error: {}", e),             Io(ref e) => write!(w, "Io Error: {}", e),             InvalidBaseUrl => write!(w, "Invalid base URL"),             InvalidUrlHost => write!(w, "URL is missing a host"),             InvalidUrlPort => write!(w, "URL is missing a port"),+            ErrorKind::InvalidProxy => write!(w, "Proxy cannot be used"),

Remove prefix

sbstp

comment created time in 20 days

PullRequestReviewEvent

PR opened sbstp/attohttpc

Proxy support
+437 -64

0 comment

10 changed files

pr created time in 20 days

push eventsbstp/attohttpc

Puffin McGoose

commit sha 0687f05f8ad3751c109996468df132eb9c97040a

version that compiles

view details

push time in 20 days

push eventsbstp/attohttpc

Simon Bernier St-Pierre

commit sha 26d114b2624dbaba0b057549156623f9e5973aee

begin work to impl proxies

view details

push time in 20 days

create barnchsbstp/attohttpc

branch : proxy

created branch time in 20 days

push eventsbstp/percona-backup-mongodb

Simon Bernier St-Pierre

commit sha 09bd4e5867ac31710d1687acdcf913fd79bb521c

Reduce buffered size again

view details

push time in 24 days

push eventsbstp/percona-backup-mongodb

Simon Bernier St-Pierre

commit sha e879c0e70af10fe7193f8dd97173bd3bca3f9980

Update module path

view details

push time in 25 days

create barnchsbstp/percona-backup-mongodb

branch : v1.2.1-fork

created branch time in 25 days

push eventsbstp/attohttpc

Fabio Valentini

commit sha f21c01af8e32063239d26201aa3c60701b4c1cb4

port to multipart 0.17 and mime 0.3

view details

push time in a month

PR merged sbstp/attohttpc

port to multipart 0.17 and mime 0.3

porting to multipart 0.17 required to also bump mime to 0.3 (because multipart 0.17 now uses mime 0.3). mime had some minor API changes, for which I made adaptations to the multipart module and the multipart tests.

All tests passed locally with cargo test --all-features.

+5 -10

5 comments

3 changed files

decathorpe

pr closed time in a month

pull request commentsbstp/attohttpc

port to multipart 0.17 and mime 0.3

Yeah, I'll merge anyway and fix them after. You've worked enough lol

decathorpe

comment created time in a month

pull request commentsbstp/attohttpc

port to multipart 0.17 and mime 0.3

Ah now it's the formatting that fails :o

decathorpe

comment created time in a month

pull request commentsbstp/attohttpc

port to multipart 0.17 and mime 0.3

Not sure why we can't see the travis pipelines, there was an error https://travis-ci.org/github/sbstp/attohttpc/jobs/728990851#L619

decathorpe

comment created time in a month

issue commentsbstp/attohttpc

Add support for proxies

In order to complete #75 we must first support proxying requests.

sbstp

comment created time in a month

issue openedsbstp/attohttpc

Add support for proxies

Proxy support plan:

  • [ ] Forward insecure requests to proxy with complete URL
  • [ ] Support CONNECT method for secure requests through proxy
  • [ ] Allow users to configure a proxy on Session/Request
  • [ ] Automatic Support HTTP_PROXY and HTTPS_PROXY
  • [ ] Support excluding items with NO_PROXY

created time in a month

push eventsbstp/kubie

Arano-kai

commit sha 9cabaad288e0ac956d3672b36fc4e07547d0335f

FIX: Aliases break completion script

view details

push time in 2 months

PR merged sbstp/kubie

FIX: Aliases break completion script
  • Prevent aliased commands break completion script.
+2 -1

1 comment

1 changed file

Arano-kai

pr closed time in 2 months

pull request commentsbstp/kubie

FIX: Aliases break completion script

Thanks again!

Arano-kai

comment created time in 2 months

push eventsbstp/kubie

Arano-kai

commit sha afcf1b6dd6e670111dce17b4674fabd5ee7cd6f3

FIX: Aliases break completion script

view details

push time in 2 months

PR merged sbstp/kubie

FIX: Aliases break completion script
  • Prevent aliased commands break completion script.
+8 -6

1 comment

1 changed file

Arano-kai

pr closed time in 2 months

pull request commentsbstp/kubie

FIX: Aliases break completion script

Thanks

Arano-kai

comment created time in 2 months

push eventsbstp/kubie

Arano-kai

commit sha 64bbe9962d86641899326b5dbb95f8495f9cb439

CHG: Convention way to install non-package bash completions - The `/etc/bash_completion.d/` is suitable for any distro.

view details

push time in 2 months

PR merged sbstp/kubie

CHG: Convention way to install non-package bash completions
  • The /etc/bash_completion.d/ is suitable for any distro.
+6 -1

1 comment

1 changed file

Arano-kai

pr closed time in 2 months

pull request commentsbstp/kubie

CHG: Convention way to install non-package bash completions

Thanks.

Arano-kai

comment created time in 2 months

issue commentwoocommerce/woocommerce

REST API: ability to set tax lines when creating an order

We used a cronjob to sync our tax information with WooCommerce and hoped that the totals end up the same.

sbstp

comment created time in 2 months

push eventsbstp/mirror

Simon Bernier St-Pierre

commit sha 505e7df0db99771ce1334b6a3fef56023d684e56

Fix bug caused by values behind copied on maps

view details

push time in 2 months

push eventsbstp/mirror

Simon Bernier St-Pierre

commit sha 8454fc92ade70976a4522df3d5335fe698178d75

Protect against indexing out of range

view details

push time in 2 months

push eventsbstp/mirror

Simon Bernier St-Pierre

commit sha 9ce2b009beb9968d53db4d6f2ed2d2aeae0c7616

Fix handling of slices and maps

view details

push time in 2 months

push eventsbstp/mirror

Simon Bernier St-Pierre

commit sha e69ca8a44e39cb3b18d6c19c3d68ddc3331229ee

Fix some edge cases

view details

push time in 2 months

push eventsbstp/mirror

Simon Bernier St-Pierre

commit sha a099f452bb1c242ce8e147596cdc5aeac740298e

Add license

view details

push time in 2 months

create barnchsbstp/mirror

branch : master

created branch time in 2 months

created repositorysbstp/mirror

created time in 2 months

issue closedsbstp/kubie

Feature request: enter context without having to install context in dotfiles

kubie enter <k8s-config> [-n <context_name>]

closed time in 2 months

sbstp

push eventsbstp/elk

Simon Bernier St-Pierre

commit sha cf055f522fd58217a2e9dd4928a1c1a1d7937f90

Add basic iterator functionality

view details

push time in 2 months

create barnchsbstp/elk

branch : master

created branch time in 2 months

created repositorysbstp/elk

created time in 2 months

startedaugmentable-dev/askgit

started time in 3 months

PR merged sbstp/kubie

Update install instructions for Homebrew
+7 -2

2 comments

1 changed file

matthewhembree

pr closed time in 3 months

push eventsbstp/kubie

Matthew Hembree

commit sha bf3fad265a791aa639ae05d8f6ab1de126b6532f

Update install instructions for Homebrew

view details

push time in 3 months

pull request commentsbstp/kubie

Update install instructions for Homebrew

Thanks

matthewhembree

comment created time in 3 months

issue closedjdf76/plugin.video.youtube

Videos will not play, error trying to play them

I'm using the "Play to Kodi" extension to send the video of my Kodi box. Kodi version: 9.0.2 Plugin version: 6.8.2

Kodi log:

2020-07-27 23:56:17.576 T:3606025072   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: u'splice'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 15, in <module>
                                                runner.run(__provider__)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 60, in run
                                                __RUNNER__.run(provider, context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 33, in run
                                                results = provider.navigate(context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 100, in navigate
                                                result = method(context, re_match)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/register_provider_path.py", line 19, in wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 763, in on_play
                                                return yt_play.play_video(self, context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 50, in play_video
                                                video_streams = client.get_video_streams(context, video_id)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 100, in get_video_streams
                                                video_streams = video_info.load_stream_infos(video_id, player_config, cookies)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 505, in load_stream_infos
                                                return self._method_get_video_info(video_id, player_config, cookies)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 1047, in _method_get_video_info
                                                parse_to_stream_list(std_fmts)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 1009, in parse_to_stream_list
                                                url = ''.join([url, sig_param, cipher.get_signature(stream_map['s'])])
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 32, in get_signature
                                                json_script = function_cache.get(FunctionCache.ONE_DAY, self._load_json_script, self._javascript_url)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/function_cache.py", line 108, in get
                                                cached_data = partial_func()
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 55, in _load_json_script
                                                return self._load_javascript(javascript)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 98, in _load_javascript
                                                _function = self._get_object_function(object_name, function_name, javascript)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 200, in _get_object_function
                                                return self._object_cache[object_name][function_name]
                                            KeyError: u'splice'
                                            -->End of Python script error report<--
2020-07-27 23:56:17.761 T:4089704464   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=ebb8baFaQ-s]

closed time in 3 months

sbstp

issue commentjdf76/plugin.video.youtube

Videos will not play, error trying to play them

Thanks, looks good.

sbstp

comment created time in 3 months

issue commentjdf76/plugin.video.youtube

Videos will not play, error trying to play them

Some videos play and others do not:
This one plays: https://www.youtube.com/watch?v=uWFPTbrLOlg
This one does not: https://www.youtube.com/watch?v=ebb8baFaQ-s

sbstp

comment created time in 3 months

issue openedjdf76/plugin.video.youtube

Videos will not play, error trying to play them

I'm using the "Play to Kodi" extension to send the video of my Kodi box. Kodi version: 9.0.2 Plugin version: 6.8.2

Kodi log:

2020-07-27 23:56:17.576 T:3606025072   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: u'splice'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 15, in <module>
                                                runner.run(__provider__)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 60, in run
                                                __RUNNER__.run(provider, context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 33, in run
                                                results = provider.navigate(context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 100, in navigate
                                                result = method(context, re_match)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/register_provider_path.py", line 19, in wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 763, in on_play
                                                return yt_play.play_video(self, context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 50, in play_video
                                                video_streams = client.get_video_streams(context, video_id)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 100, in get_video_streams
                                                video_streams = video_info.load_stream_infos(video_id, player_config, cookies)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 505, in load_stream_infos
                                                return self._method_get_video_info(video_id, player_config, cookies)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 1047, in _method_get_video_info
                                                parse_to_stream_list(std_fmts)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 1009, in parse_to_stream_list
                                                url = ''.join([url, sig_param, cipher.get_signature(stream_map['s'])])
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 32, in get_signature
                                                json_script = function_cache.get(FunctionCache.ONE_DAY, self._load_json_script, self._javascript_url)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/function_cache.py", line 108, in get
                                                cached_data = partial_func()
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 55, in _load_json_script
                                                return self._load_javascript(javascript)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 98, in _load_javascript
                                                _function = self._get_object_function(object_name, function_name, javascript)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py", line 200, in _get_object_function
                                                return self._object_cache[object_name][function_name]
                                            KeyError: u'splice'
                                            -->End of Python script error report<--
2020-07-27 23:56:17.761 T:4089704464   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=ebb8baFaQ-s]

created time in 3 months

push eventsbstp/kubie

Simon Bernier St-Pierre

commit sha b1253f95cc319d038ea4a83047f95b114f492805

more work

view details

push time in 3 months

create barnchsbstp/kubie

branch : new-complete

created branch time in 3 months

issue closedsbstp/kubie

Hombrew support

Hello,

Would it be possible to add a homebrew formula when you release versions of this application? Would allow installing and updating to be easy for users.

closed time in 3 months

mitchellmaler
more