Comments (8)
quite the same problem here
`--> mpsyt
Traceback (most recent call last):
File "/usr/local/bin/mpsyt", line 297, in <module>
class Config(object):
File "/usr/local/bin/mpsyt", line 308, in Config
DDIR = get_default_ddir()
File "/usr/local/bin/mpsyt", line 133, in get_default_ddir
defn = [x for x in lines if x.startswith("XDG_DOWNLOAD_DIR")]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal not in range(128)
from yewtube.
@np1 325edff may be the source of this issue.
I also had another similar crash this morning while playing a playlist:
Problem fetching this item: 'ascii' codec can't encode character u'\u2022' in position 96: ordinal not in range(128)
from yewtube.
I can reproduce the original error reported in this issue by changing my download folder set in ~/.config/user-dirs/dirs
to `XDG_DOWNLOAD_DIR="$HOME/DownloadsÉ"``)
Reverting commit https://github.com/np1/mps-youtube/commit/325edff68 fixes this, although it reintroduces the problem we had with Python 3 in the code for the status line:
`File "./mpsyt", line 1300, in mplayer_status
if char in '\r\n':
TypeError: 'in <string>' requires string as left operand, not bytes
I will try to find a solution.
from yewtube.
Hi, for those experiencing this issue, please try the version on this branch: https://github.com/np1/mps-youtube/tree/issue50
You can download just the modified mpsyt here: https://raw.github.com/np1/mps-youtube/issue50/mpsyt
and run it with python mpsyt
Please let me know how it goes. Thanks.
from yewtube.
This is working fine, thanx.
from yewtube.
Good, thanks for testing. I will release a bug-fix version on PyPI and Github master branch soon if no other issues arise.
from yewtube.
Works fine here too, thanks!
from yewtube.
Thanks, I have released this now (v0.01.40)
from yewtube.
Related Issues (20)
- 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
- Is it possible to use ffmpeg instead for video playback? HOT 3
- Issue with loading mpv config files HOT 2
- Error when starting the script HOT 2
- [Feature Request] Display current chapter
- how to JUST PLAY AUDIO please guide without missing any step :-)) HOT 3
- Truncation makes columns unreadable HOT 1
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.