TheFrenchGhosty / TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection

The ultimate collection of scripts for YouTube-DL.
GNU General Public License v3.0
2.32k stars 126 forks source link

--match-filter closes git #101

Closed blindoverseer closed 1 year ago

blindoverseer commented 1 year ago

Using Windows 10 and Git Bash, since the last yt-dlp (pip) version using the scripts immediately closes the Git Bash window. For a split second it shows:

grafik

Experimenting on clean downloaded scripts and disabling yt-dlp config. Attempting to escape the exclamation mark with \ allows Git to stay open longer, but doesn't download. At the end it references:

ERROR Invalid filter part '\\!is_live '
Traceback (most recent call last):
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1518, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1615, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1674, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2686, in process_video_result
    if self._match_entry(info_dict, incomplete=self._format_fields) is not None:
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1446, in _match_entry
    reason = check_filter()
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1419, in check_filter
    ret = match_filter(info_dict, incomplete=incomplete)
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\utils.py", line 3929, in _match_func
    if not filters or any(match_str(f, info_dict, incomplete) for f in filters):
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\utils.py", line 3929, in <genexpr>
    if not filters or any(match_str(f, info_dict, incomplete) for f in filters):
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\utils.py", line 3909, in match_str
    return all(
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\utils.py", line 3910, in <genexpr>
    _match_one(filter_part.replace(r'\&', '&'), dct, incomplete)
  File "C:\Users\Ari\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\utils.py", line 3899, in _match_one
    raise ValueError('Invalid filter part %r' % filter_part)
ValueError: Invalid filter part '\\!is_live '

Downloads fine without match-filter.

BromTeque commented 1 year ago

Windows is unsupported.

Source

Try WSL.