Fix for the latest yt-dlp in pip.

This commit is contained in:
Relintai 2022-09-20 17:47:38 +02:00
parent 5ddb21992f
commit 2ca772ec50

View File

@ -420,7 +420,7 @@ class YTDLNew(yt_dlp.YoutubeDL):
ie_entries = LazyList(ie_entries)
def get_entry(i):
return YTDLNew._YoutubeDL__handle_extraction_exceptions(
return YTDLNew._handle_extraction_exceptions(
lambda self, i: ie_entries[i - 1]
)(self, i)
@ -834,4 +834,4 @@ if command == "gen":
ce = None
collected = gc.collect()
print("Garbage collector: collected", "%d objects." % collected)
print("Garbage collector: collected", "%d objects." % collected)