diff --git a/grzegorz/metadatafetch.py b/grzegorz/metadatafetch.py new file mode 100644 index 0000000..53432ca --- /dev/null +++ b/grzegorz/metadatafetch.py @@ -0,0 +1,7 @@ +import youtube_dl +from . import nyasync + +@nyasync.ify +def title(url): + ydl = youtube_dl.YoutubeDL() + return ydl.extract_info(url, download=False).get('title')