-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add {url} argument to window --title #2232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2232 +/- ##
==========================================
- Coverage 52.67% 52.64% -0.04%
==========================================
Files 237 237
Lines 14744 14747 +3
==========================================
- Hits 7766 7763 -3
- Misses 6978 6984 +6 |
|
|
I haven't seen any problems using |
Do urls get unshortened, E.g. bitly, when using args.url? |
No, with Another thing I noticed when using url=''.join(urlsplit(plugin.url)[1:]) |
I guess something like parsed = urlparse(url)
scheme = "%s://" % parsed.scheme
return parsed.geturl().replace(scheme, '', 1) would be more robust at dropping the scheme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably also okay with the url scheme
@back-to Do you mean it's fine as a raw URL or should I implement scheme dropping? |
For #2225
Adds
{url}
formatting variable to player window--title
.Can there be a situation where
args.url
doesn't exist?If so, maybe I should add a
DEFAULT_STREAM_METADATA["url"]
?streamlink/src/streamlink_cli/constants.py
Lines 7 to 12 in 07387e2