mirror of
https://github.com/Relintai/ytdl_link_gen.git
synced 2024-11-14 04:47:18 +01:00
FIx error after a temp file ends up containing null.
This commit is contained in:
parent
00470654f5
commit
21ad8d2ed2
@ -743,9 +743,10 @@ class ChannelEntry:
|
||||
with open(self.temp_data_file) as f:
|
||||
data = json.load(f)
|
||||
|
||||
self.was_cached = True
|
||||
if not data is None:
|
||||
self.was_cached = True
|
||||
|
||||
return data
|
||||
return data
|
||||
|
||||
with YTDLNew(ydl_opts) as ydl:
|
||||
data = ydl.extract_info(self.link, False)
|
||||
|
Loading…
Reference in New Issue
Block a user