Skip to content

Commit

Permalink
Disable check_formats due to known yt-dlp bug yt-dlp/yt-dlp#8780
Browse files Browse the repository at this point in the history
Bump YT-DLP to 2024.08.01
Bump FFMPEG to N-116468-g0e09f6d690-20240730
  • Loading branch information
aliencaocao committed Aug 3, 2024
1 parent f26c198 commit d45cb11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version: 2024.7.16
Version: 2024.8.1
CompanyName: Billy Cao
FileDescription: YT-DLP GUI
InternalName: YT-DLP GUI
Expand Down
16 changes: 8 additions & 8 deletions yt-dlp-gui.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import ctypes
import logging
import os
import re
import sys
import threading
from tkinter import *
from tkinter import filedialog, messagebox, simpledialog
from tkinter import filedialog, messagebox
from tkinter.ttk import *
from typing import Any, Union, Callable
import re
from typing import Any, Callable, Union

if sys.platform == 'win32':
import winreg

Expand Down Expand Up @@ -53,9 +54,9 @@ def get_res_path(relative_path: str) -> str:
'live_from_start': True,
'no-video-multistreams': True,
'no-audio-multistreams': True,
# 'check_formats': True,
'check_formats': 'selected',
'fixup': 'detect_or_warn',
'extractor_args': {'youtube': {'skip': ['dash', 'hls']},},
'extractor_args': {'youtube': {'skip': ['dash', 'hls']}, },
'ffmpeg_location': get_res_path('ffmpeg.exe') if sys.platform == 'win32' else 'ffmpeg',
}
percent_str_regex = re.compile(r'\d{1,3}\.\d{1,2}%')
Expand Down Expand Up @@ -507,9 +508,8 @@ def do_tasks():
except FileNotFoundError: # if key not found
pass
elif os.path.isfile('~/.config/yt-dlp/last_path.txt'):
with open('~/.config/yt-dlp/last_path.txt', 'r') as f:
initial_dir = f.read()

with open('~/.config/yt-dlp/last_path.txt', 'r') as f:
initial_dir = f.read()

url_input_frame = Frame(root)
url_input_frame.pack(expand=True, fill=BOTH, side=TOP, pady=(5, 10))
Expand Down

0 comments on commit d45cb11

Please sign in to comment.