Skip to content
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

Additional information displayed #163

Merged
merged 2 commits into from
Dec 1, 2014
Merged

Conversation

loicottet
Copy link

Added display information on the play screen (the stream quality), as well as a list of available streams on the video information pages, as demanded in feature request #134

@@ -1788,7 +1788,7 @@ def generate_real_playerargs(song, override, failcount):
"Use mpv or download it" % song.title)

size = get_size(song.ytid, stream['url'])
songdata = song.ytid, stream['ext'], int(size / (1024 ** 2))
songdata = song.ytid, stream['ext'] + "@" + stream['quality'], int(size / (1024 ** 2))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra characters may cause the line to wrap around sometimes. Is it possible to adjust the width of the progress bar dynamically (according to the width of the information on the left)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem is at line 1999, the size of the bar is not dynamically adjusted to the length of the information displayed before. I don't have access to the length of this text in the "make_status_line" function, however, so a quick fix would be to replace 50 by 54, which happens be sufficient. Does it seem ok?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems like a reasonable hot fix without changing much of the existing structure! @np1 what do you think of it?

@np1 np1 merged commit 0fd59d3 into mps-youtube:develop Dec 1, 2014
np1 added a commit that referenced this pull request Dec 1, 2014
remove streams listing from video info screen
@np1
Copy link
Contributor

np1 commented Dec 1, 2014

Thanks for the PR 👍 , I have made some changes to keep the status line length constant.

I also removed the stream listing from the information screen because I prefer to keep the displayed information small enough to fit in a standard sized terminal window without needing to scroll where possible. Perhaps another key could be used to show the stream listing - it is available in the download screen anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants