Comments (8)
Yes, that bugs me. If someone could tell me how to fix that I'd be grateful! It looks like some characters are taking two spaces. Need to work out how many there are in each line and adjust the formatting accordingly.
from yewtube.
I'm not sure if this fixable without performing some hard settings to make sure the columns always start at a certain location. Reading through the following pages seems to indicate that there is nothing we can do to make the characters behave:
https://stackoverflow.com/questions/586503/complete-monospaced-unicode-font
http://www.mail-archive.com/[email protected]/msg08599.html
from yewtube.
I have improved the alignment in https://github.com/np1/mps-youtube/commit/34f0435f7b370b6a57255a93ecaa2b8f50b304d8 on the develop branch, it's better but still not perfect with many search results.
I have tested with Python2.7.5 and 3.3. If someone could also test on Windows that would be great.
from yewtube.
I'm not on windows but on my Ubuntu machine Japanese and Korean characters are pretty good. Thai was a little mangled as was a listing that had no non-latin characters that I could see:
Some symbols are still causing some issue:
from yewtube.
Thanks for testing. I have spent quite a lot of time on this and haven't been able to get it any better. Yes it's weird that result 7 of your first screenshot is misaligned. I have tested this in the current version on branch master by searching for "north korean song" and it's also misaligned there so it seems I haven't made anything worse. I just hope I didn't break anything on Win!
from yewtube.
hm maybe pprint module could be used to force output width=80 (or some other way to make it default to 80 which should always be default for terminal outputs)
from yewtube.
I doubt pprint can help with this but would be happy to be proved wrong!
from yewtube.
The problem with the north Korean song is that there is a \ufeff BOM between "of" and " revolution".
from yewtube.
Related Issues (20)
- Unable to stream live youtube videos HOT 8
- Issue concerning the setup of (custom) music player HOT 2
- Multiple download removes all file after finish HOT 1
- Unable to pause stream
- Better error reporting on app crashes HOT 12
- Can't change yt.dlp yewtube uses even after installing the newer one in all the ways I coud HOT 1
- Playback stops after a few seconds HOT 4
- WSL compatility : Youtube Error 403: The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>. HOT 2
- YouTube music support HOT 1
- Control audio via mpris/playerctl (next/prev)
- howto download an audio without the menu ? HOT 1
- regression with the latest version ? ( or issue on the method to update? ) HOT 1
- videos not showing up when using `-w` flag
- Your input can't be opened HOT 1
- Support py3.12 HOT 1
- 'NoneType' object has no attribute 'add_cmd'
- Yewtube v2.10.4 suggests upgrading to v2.9.2 HOT 3
- A way to queue/shuffle the entire playlist rather than just the visible entries HOT 1
- Feature Request: Spotify Playlist
- yt command doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yewtube.