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

youtube-dl 2013.11.19: get-filename get-title for cyrillic titles #1648

Closed
himadri0327 opened this issue Oct 24, 2013 · 6 comments
Closed

youtube-dl 2013.11.19: get-filename get-title for cyrillic titles #1648

himadri0327 opened this issue Oct 24, 2013 · 6 comments

Comments

@himadri0327
Copy link

@himadri0327 himadri0327 commented Oct 24, 2013

Though it saves filenames containing cyrillic, it does not display the same when using get-filename option.

U:\> youtube-dl --get-filename http://www.youtube.com/watch?v=h6VD7hg93Xk
& #1040;& #1083;& #1080;& #1089;& #1080;& #1103; & #1075;& #1086;& #1089;& #1090;& #1091;& #1074;& #1072; & #1074; & #1051;& #1086;& #1085;& #1076;& #1086;& #1085; & #1085;& #1072; 2 & #1085;& #1086;& #1077;& #1084;& #1074;& #1088;& #1080; 2013-h6VD7hg93Xk.mp4

U:\> youtube-dl http://www.youtube.com/watch?v=h6VD7hg93Xk
[youtube] Setting language
[youtube] h6VD7hg93Xk: Downloading video webpage
[youtube] h6VD7hg93Xk: Downloading video info webpage
[youtube] h6VD7hg93Xk: Extracting video information
[download] Destination:      2  2013-h6VD7hg93Xk.mp4
[download] 100% of 5.50MiB in 00:0266MiB/s ETA 00:005

U:\> dir *2013-h6VD7hg93Xk.mp4
 Volume in drive U is MyBook3TB-3
 Volume Serial Number is D8D9-4ABE
 Directory of U:\
10/22/13  07:29 AM         5,765,906 Алисия гостува в Лондон на 2 ноември 2013-h6VD7hg93Xk.mp4
               1 File(s)      5,765,906 bytes
@vitorgalvao
Copy link
Contributor

@vitorgalvao vitorgalvao commented Feb 6, 2014

I can confirm this issue in OS X (10.9.1), and with a great deal of special characters. As you mentioned, when downloading it uses the correct video title, but not when using --get-title and --get-filename.

This should not happen, however, according to the documentation, so I’m wondering where the issue lies.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 6, 2014

Humm, it works fine in OS X 10.9 here, could you post the output when you run youtube-dl --get-filename http://www.youtube.com/watch?v=h6VD7hg93Xk --verbose, something like this:

[debug] System config: []
[debug] User config: ['--write-info-json', '--write-thumbnail']
[debug] Command-line args: ['--get-filename', 'http://www.youtube.com/watch?v=h6VD7hg93Xk', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.06.1
[debug] Git HEAD: df872ec
[debug] Python version 3.3.3 - Darwin-13.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
Алисия гостува в Лондон на 2 ноември 2013-h6VD7hg93Xk.mp4

We need the the [debug] lines to know the encodings you are using.

@vitorgalvao
Copy link
Contributor

@vitorgalvao vitorgalvao commented Feb 6, 2014

As suspected, the problem was on my end. The tool I was using apparently has some trouble reading the user’s encodings, which was causing the issue.

It’s solved now, thank you for pointing me the right direction.

@himadri0327
Copy link
Author

@himadri0327 himadri0327 commented Feb 19, 2014

Here's verbose under Win 7 cmd shell:

U:\>youtube-dl --get-filename http://www.youtube.com/watch?v=h6VD7hg93Xk --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--get-filename', 'http://www.youtube.com/watch?v=h6VD7hg93Xk', '--verbose']
[debug] Encodings: locale 'cp1252', fs 'mbcs', out 'cp437', pref: 'cp1252'
[debug] youtube-dl version 2014.02.04.1
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
     2  2013-h6VD7hg93Xk.mp4
@himadri0327
Copy link
Author

@himadri0327 himadri0327 commented Feb 19, 2014

Here's verbose under Win 7 powershell:

PS U:\> youtube-dl --get-filename http://www.youtube.com/watch?v=h6VD7hg93Xk --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--get-filename', 'http://www.youtube.com/watch?v=h6VD7hg93Xk', '--verbose']
[debug] Encodings: locale 'cp1252', fs 'mbcs', out 'cp437', pref: 'cp1252'
[debug] youtube-dl version 2014.02.04.1
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
     2  2013-h6VD7hg93Xk.mp4
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 8, 2017

C:\Dev\youtube-dl\master>py -3.6 .\youtube_dl\__main__.py --get-filename http://www.youtube.com/watch?v=h6VD7hg93Xk
Алисия гостува в Лондон на 2 ноември 2013-h6VD7hg93Xk.mp4
@dstftw dstftw closed this May 8, 2017
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
4 participants
You can’t perform that action at this time.