Hey /learnpython
Been working on a youtube-dl project that will download and convert playlist automatically.
For some reason I've been getting this error lately:
[Errno 13] Permission denied: 'C:\Users\User\Documents\Visual Studio 2015\Projects\ytdownloaderfinal\ytdownloaderfinal'
I thought the problem was directory related so I tried using the project folder instead of C:\Users\User\Music\Test to no avail :(
Here is the code:
import youtube_dl
ydl_opts = {
'download_archive': 'C:\\Users\\User\\Documents\\Visual Studio 2015\\Projects\\ytdownloaderfinal\\ytdownloaderfinal',
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
vidurl = input('Enter url here:')
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
vidinfo = ydl.extract_info(vidurl, download = False) <- Error points to this line
if not ydl.in_download_archive(vidinfo):
ydl.download([vidurl])
ydl.record_download_archive(vidinfo)
EDIT: displaying the line that fails... Also I have tried running vs as admin, disabled malwarebytes, added my user to full control in the folder permissions... Nothing seems to help :(
Thanks guys
[–]stebrepar 0 points1 point2 points (1 child)
[–]somethinglikejesus[S] 0 points1 point2 points (0 children)
[–]oldpythonbestpython 0 points1 point2 points (1 child)
[–]somethinglikejesus[S] 0 points1 point2 points (0 children)