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

Using -f best gives error and does not start #11

Closed
6 tasks done
Dluke77lnx opened this issue Dec 22, 2021 · 1 comment
Closed
6 tasks done

Using -f best gives error and does not start #11

Dluke77lnx opened this issue Dec 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Dluke77lnx
Copy link

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.12.01. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

When trying to download a playlist or a whole site, from this release, i get error in python lines.

Verbose log

[debug] Command-line config: ['-Uv', '-o', '/mnt/500gb/youdown/KaraOK/%(uploader)s/%(title)s.%(ext)s', '-f', 'best', '-ciw', '--min-filesize', '2M', '--max-filesize', '60M', '--download-archive', '/mnt/500gb/youdown/Database_singolo.txt', 'https://www.youtube.com/channel/UCpSayIQ4A7-1sUjgXZg4-Fw/videos']
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 24, in <module>
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 860, in main
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 159, in _real_main
TypeError: str.join() takes exactly one argument (3 given)
@Dluke77lnx Dluke77lnx added the bug Something isn't working label Dec 22, 2021
@Dluke77lnx Dluke77lnx changed the title Error in pyton line program Error in python line program Dec 22, 2021
@Lesmiscore
Copy link
Contributor

Lesmiscore commented Dec 23, 2021

That seems a bug introduced in yt-dlp. Consider reporting it in yt-dlp. Right now pasted in Discord

$ ./yt-dlp.sh -f best -s google.com -v
[debug] Command-line config: ['-f', 'best', '-s', 'google.com', '-v']
Traceback (most recent call last):
  File "/home/lesmi/yt-dlp/yt_dlp/__main__.py", line 19, in <module>
    yt_dlp.main()
  File "/home/lesmi/yt-dlp/yt_dlp/__init__.py", line 827, in main
    _real_main(argv)
  File "/home/lesmi/yt-dlp/yt_dlp/__init__.py", line 140, in _real_main
    warnings.append('.\n         '.join(
TypeError: str.join() takes exactly one argument (3 given)

nitpick: I don't recommend you to use -f best unless there's any special reason for you

@Lesmiscore Lesmiscore changed the title Error in python line program Using -f best gives error and does not start Dec 23, 2021
Lesmiscore added a commit that referenced this issue Dec 23, 2021
pukkandan added a commit to yt-dlp/yt-dlp that referenced this issue Dec 23, 2021
Lesmiscore added a commit that referenced this issue Dec 23, 2021
* 'master' of https://github.com/yt-dlp/yt-dlp:
  Fix bug in 1cefca9 Fixes #11
  [outtmpl] Change filename sanitization type to `S` `F` is already used for float! Bug in e0fd957
  [LBRY] Support livestreams (#2062)
  Add option `--file-access-retries` (#2066)
  [NJPWWorld] Extract formats from m3u8 (#2075)
  [cleanup] Misc cleanup Closes #1942 #1976 #2020 #2058 #1984
  [outtmpl] Add alternate forms `F`, `D` and improve `id` detection
  [dash] Fix `--test` Bug in adbc4ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants