You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following python script works fine, but in the Kodi 18.3 got AttributeError: xbmcout instance has no attribute 'isatty'
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s%(ext)s'})
with ydl:
result = ydl.extract_info(
'https://www.bbc.com/persian/media-49522521',
download=False
)
if 'entries' in result:
video = result['entries'][0]
else:
video = result
video_url = video['url']
return video_url
The following python script works fine, but in the Kodi 18.3 got
AttributeError: xbmcout instance has no attribute 'isatty'
here https://github.com/ruuk/script.module.youtube.dl/blob/master/lib/youtube_dl/extractor/common.py
if not self._downloader.params.get('no_color') and compat_os_name != 'nt' and sys.stderr.isatty():
I could not detect where the error comes from or some workaround. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: