skillshare-downloader
skillshare-downloader copied to clipboard
Failed to read video ID from data
Downloading C:\Users...\data\theawwwesomes\boost-personal-branding-by-coding-your-own-website-html-css-basics/01 - intro.mp4... [==================================================]
Traceback (most recent call last):
File "C:\Users...\Downloads\skillshare-downloader-master\skillshare-downloader-master\code\example.py", line 10, in
I found that replacing if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1] elif 'video_thumbnail_url' in s and s['video_thumbnail_url']: video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail :P
I found that replacing if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1] elif 'video_thumbnail_url' in s and s['video_thumbnail_url']: video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail :P
thank you. this worked perfectly.
Please make a pull request so that the dev (hopefully) merge it.
I found that the code change above definitely helped, but about halfway through downloading videos it errors with the following message:
Traceback (most recent call last):
File "example.py", line 10, in
Any ideas?
@ravinot try updating your cookies, that also worked for me
I found that replacing if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1] elif 'video_thumbnail_url' in s and s['video_thumbnail_url']: video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail :P
I tried this but I'm getting an "IndentationError: expected an indented block". I'm a python noob lol so I'm not sure what's wrong.
Edit: Tried re-pasting it.
raise Exception('Failed to fetch video meta') Exception: Failed to fetch video meta
Now I'm getting that error.
Edit2: I was able to make it work by renewing the cookie but it seems I have to this often since the cookie doesn't last like it used to.
@ravinot try updating your cookies, that also worked for me
That worked for me! Thanks
Answer by @Sam-Online Formatted I found that replacing
if 'video_hashed_id' in s and s['video_hashed_id']:
video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']:
video_id = s['video_hashed_id'].split(':')[1]
elif 'video_thumbnail_url' in s and s['video_thumbnail_url']:
video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail 😜
I have formatted the answer by @Sam-Online
@ravinot try updating your cookies, that also worked for me
Thanks @leuldereje, clearing my cache and re-generating the cookie worked. However, as @secretmove mentioned in his comment, it looks like I have to generate a new cookie after each completed download for the next download to work.
I fetched another cookie and the problem was solved for me
I found that replacing if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1] elif 'video_thumbnail_url' in s and s['video_thumbnail_url']: video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail :P
I'm new to this, how do I replace the code?
I found that replacing if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1]
with
if 'video_hashed_id' in s and s['video_hashed_id']: video_id = s['video_hashed_id'].split(':')[1] elif 'video_thumbnail_url' in s and s['video_thumbnail_url']: video_id = s['video_thumbnail_url'].split('/')[6]
in download.py did the trick which is a simple fix, if the video_hashed_id is empty, use the id from the thumbnail :P
Hey bro can u help me pls.i get same error.failed to read video id from data.idk coding even a little bit.fix it for me or make detailed tutorial pls.Would appreciate that.
did u found something helpfull ?
Traceback (most recent call last):
File "/root/.Skillshare-DL/dl.py", line 16, in