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

[issue re-appeared] Windows %HOMEPATH% error, shows unsupported format character 'H' #13008

Closed
iripu opened this issue May 6, 2017 · 2 comments
Closed

Comments

@iripu
Copy link

@iripu iripu commented May 6, 2017

Make sure you are using the latest version:

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

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue



F:\>youtube-dl -v https://www.youtube.com/watch?v=ZVQfR27ISjM
[debug] System config: []
[debug] User config: ['--no-mtime', '--console-title', '-o', 'C:\\%HOMEPATH%\\Desktop\\%(title)s-%(height)sp.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ZVQfR27ISjM']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.05.01
[debug] Python version 3.4.4 - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg N-84348-gdb7a05d, ffprobe N-84348-gdb7a05d
[debug] Proxy map: {}
[youtube] ZVQfR27ISjM: Downloading webpage
[youtube] ZVQfR27ISjM: Downloading video info webpage
[youtube] ZVQfR27ISjM: Extracting video information
[youtube] {22} signature length 40.40, html5 player vflppxuSE
[youtube] {43} signature length 40.40, html5 player vflppxuSE
[youtube] {18} signature length 40.40, html5 player vflppxuSE
[youtube] {36} signature length 40.40, html5 player vflppxuSE
[youtube] {17} signature length 40.40, html5 player vflppxuSE
[youtube] {137} signature length 40.40, html5 player vflppxuSE
[youtube] {248} signature length 40.40, html5 player vflppxuSE
[youtube] {136} signature length 40.40, html5 player vflppxuSE
[youtube] {247} signature length 40.40, html5 player vflppxuSE
[youtube] {135} signature length 40.40, html5 player vflppxuSE
[youtube] {244} signature length 40.40, html5 player vflppxuSE
[youtube] {134} signature length 40.40, html5 player vflppxuSE
[youtube] {243} signature length 40.40, html5 player vflppxuSE
[youtube] {133} signature length 40.40, html5 player vflppxuSE
[youtube] {242} signature length 40.40, html5 player vflppxuSE
[youtube] {160} signature length 40.40, html5 player vflppxuSE
[youtube] {278} signature length 40.40, html5 player vflppxuSE
[youtube] {140} signature length 40.40, html5 player vflppxuSE
[youtube] {171} signature length 40.40, html5 player vflppxuSE
[youtube] {249} signature length 40.40, html5 player vflppxuSE
[youtube] {250} signature length 40.40, html5 player vflppxuSE
[youtube] {251} signature length 40.40, html5 player vflppxuSE
ERROR: Error in output template: unsupported format character 'H' (0x48) at index 4 (encoding: 'cp1252')
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0io2aq9r\build\youtube_dl\YoutubeDL.py", line 675,
in prepare_filename
ValueError: unsupported format character 'H' (0x48) at index 4


Description of your issue, suggested solution and other information

I tried to download this video: https://www.youtube.com/watch?v=ZVQfR27ISjM.

Shows error unsupported format character 'H' (0x48) at index 4

My config has this line:

-o "C:\%HOMEPATH%\Desktop\%(title)s-%(height)sp.%(ext)s"

If I comment that line it works. My homepath is: C:\Users\ripu
Same bug was reported by me and it was fixed, now re-appeared.

@iripu iripu changed the title [issue reappeared] Windows %HOMEPATH%, shows unsupported format character 'H' [issue re-appeared] Windows %HOMEPATH%, shows unsupported format character 'H' May 6, 2017
@iripu iripu changed the title [issue re-appeared] Windows %HOMEPATH%, shows unsupported format character 'H' [issue re-appeared] Windows %HOMEPATH% error, shows unsupported format character 'H' May 6, 2017
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 6, 2017

This won't fix. Use $ for env variables in configuration file.

@dstftw dstftw closed this May 6, 2017
@iripu
Copy link
Author

@iripu iripu commented May 7, 2017

Great. Example on Readme.md still has C:\%HOMEPATH% and two %%, you should update that.

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.