Open z opened 7 years ago
My temporary work around:
import subprocess
# Work around to get license information until https://github.com/mps-youtube/pafy/issues/182
process = subprocess.Popen(['youtube-dl', '--get-filename', '-o', '%(license)s', youtube_url], stdout=subprocess.PIPE)
out, err = process.communicate()
if out:
video_license = out.decode("utf-8").strip()
It looks like
cc_license
is supported in theplaylist_meta
[1], but I don't see an attribute for.license
per video.This value is supported by youtube-dl's output template:
Can this be exposed as an attribute on the Pafy object for a single video?