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

Getting Python errors for using "--list-subs" in Crunchyroll #10121

Open
akiraaisha opened this issue Jul 19, 2016 · 3 comments
Open

Getting Python errors for using "--list-subs" in Crunchyroll #10121

akiraaisha opened this issue Jul 19, 2016 · 3 comments

Comments

@akiraaisha
Copy link

@akiraaisha akiraaisha commented Jul 19, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.17. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.07.17

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other
C:\>youtube http://www.crunchyroll.com/relife/episode-13-confession-714877 -u PRIVATE -p PRIVATE --list-subs -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.crunchyroll.com/relife/episode-13-confession-
714877', '-u', 'PRIVATE', '-p', 'PRIVATE', '--list-subs', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp936, pref cp1252
[debug] youtube-dl version 2016.07.17
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: avconv v12_dev0-2162-gfebfb49, avprobe v12_dev0-2162-gfebfb49,
ffmpeg N-80999-gf41e37b, ffprobe N-80999-gf41e37b, rtmpdump 2.3
[debug] Proxy map: {}
[Crunchyroll] Logging in
[Crunchyroll] 714877: Downloading webpage
[Crunchyroll] 714877: Downloading media info for 360p
[Crunchyroll] 714877: Downloading media info for 480p
[Crunchyroll] 714877: Downloading media info for 720p
[Crunchyroll] 714877: Downloading media info for 1080p
[Crunchyroll] 714877: Downloading media info
[Crunchyroll] 714877: Downloading subtitles for English (US)
[Crunchyroll] 714877: Downloading subtitles for Espa?ol
[Crunchyroll] 714877: Downloading subtitles for Espa?ol (Espa?a)
[Crunchyroll] 714877: Downloading subtitles for Fran?ais (France)
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\__init__.py", line 422, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\__init__.py", line 412, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\YoutubeDL.py", line 1775, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\YoutubeDL.py", line 682, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 347, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\crunchyroll.py", line 379, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 1762, in extract_subtitles
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\crunchyroll.py", line 252, in _get_subtitles
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\crunchyroll.py", line 68, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 507, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 414, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 384, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\extractor\common.py", line 564, in to_screen
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\YoutubeDL.py", line 439, in to_screen
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\YoutubeDL.py", line 453, in to_stdout
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\YoutubeDL.py", line 442, in _write_string
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\utils.py", line 1299, in write_string
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpd3npnjq3\build\y
outube_dl\utils.py", line 1283, in _windows_write_string
OSError: Failed to write string

I get an error whenever I try to use "--list-subs".
But, when I use "C:\youtube-dl http://crunchyroll/videolink --list-subs >> out.txt". The Logs from the out.txt shows and works perfectly fine.
This is from the "out.txt"

[Crunchyroll] Logging in
[Crunchyroll] 714877: Downloading webpage
[Crunchyroll] 714877: Downloading media info for 360p
[Crunchyroll] 714877: Downloading media info for 480p
[Crunchyroll] 714877: Downloading media info for 720p
[Crunchyroll] 714877: Downloading media info for 1080p
[Crunchyroll] 714877: Downloading media info
[Crunchyroll] 714877: Downloading subtitles for English (US)
[Crunchyroll] 714877: Downloading subtitles for Español
[Crunchyroll] 714877: Downloading subtitles for Español (España)
[Crunchyroll] 714877: Downloading subtitles for Français (France)
[Crunchyroll] 714877: Downloading subtitles for Português (Brasil)
[Crunchyroll] 714877: Downloading subtitles for Italiano
[Crunchyroll] 714877: Downloading subtitles for Deutsch
Available subtitles for 714877:
Language formats
esLA     ass, srt
enUS     ass, srt
esES     ass, srt
deDE     ass, srt
ptBR     ass, srt
itIT     ass, srt
frFR     ass, srt

What seems to be the problem?

@akiraaisha akiraaisha changed the title Getting Python errors for using "--list-subs" in c Getting Python errors for using "--list-subs" in Crunchyroll Jul 19, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 19, 2016

[debug] Encodings: locale cp1252, fs mbcs, out cp936, pref cp1252

If the string cannot be encoded in cp1252 or cp936, the write operation will fail. chcp may help.

@akiraaisha
Copy link
Author

@akiraaisha akiraaisha commented Jul 19, 2016

I manually used "--encoding UTF8", it works fine now.
Please make a feature that tells that we are using wrong Encodings or somewhat.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 19, 2016

Please make a feature that tells that we are using wrong Encodings or somewhat.

Good idea!

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.