Youtube-dl on Zeit

September 04, 2019
WARNING: Writing cache to '/home/sbx_user1051/.cache/youtube-dl/youtube-sigfuncs/js_vflLXg1wb_41.40.json' failed: Traceback (most recent call last):
File "/var/task/youtube_dl/cache.py", line 49, in store
os.makedirs(os.path.dirname(fn))
File "/var/lang/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/var/lang/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/var/lang/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/var/lang/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/home/sbx_user1051'

ISSUE: read-only file system on zeit now SOLUTION: do not use file system cache

import youtube_dl
ytdl_opts = {
'cachedir': False,
}
with youtube_dl.YoutubeDL(ytdl_opts) as ydl:
result = ydl.extract_info(
"https://www.youtube.com/watch?v=DF-InxpSHeQ",
download=False
)
video_url = result
print(video_url)