-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code not working anymore, hdpiano new player #1
Comments
Can you open pull request?
lp,
Tomaz
________________________________
From: Liscum <notifications@github.com>
Sent: Sunday, December 30, 2018 6:04:23 PM
To: dcrystalj/hdpiano
Cc: Subscribed
Subject: [dcrystalj/hdpiano] Code not working anymore, hdpiano new player (#1)
Hello,
First thanks for your code even if it doesn't work anymore I still managed to make it works.
I think hdpiano changed their media player by the time you did your code, they were using Vimeo before and now they use Wistia.
Line 11 you need to change : "dest = 'player.vimeo.com/video/{}?api=1&player_id=vm-player&color=f47c20&badge=0&byline=0&title=0'"
To : "dest = 'https://fast.wistia.net/embed/iframe/{}<https://fast.wistia.net/embed/iframe/%7B%7D>'"
I did two others little modifications.
First modification :
For some lessons it works but for some others it cause a problem when creating the folder_name as it grep a '/' (on Linux at least). For example :
>> line = 'https://hdpiano.com/lesson/africa-by-toto/#part-4'
>> line[27:57]
'africa-by-toto/#part-4'
Line 23 : "folder_name = line[27:57]"
To : "folder_name = line.split('/')[4]"
Second modification :
If the lesson have more than 10 parts you can't download them all with your code as it only catch the last digit
Line 30 : total_videos = int(line[-1])
To : total_videos = int(line.split('-')[4])
I'm new to GitHub, so hope doing an issue was the right way to tell you.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABZJ9wE3qhsRt4AfFA8CRseuYtqnXFCkks5u-PIXgaJpZM4ZlAQR>.
|
fixed in #2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First thanks for your code even if it doesn't work anymore I still managed to make it works.
I think hdpiano changed their media player by the time you did your code, they were using Vimeo before and now they use Wistia.
Line 11 you need to change : "dest = 'player.vimeo.com/video/{}?api=1&player_id=vm-player&color=f47c20&badge=0&byline=0&title=0'"
To : "dest = 'https://fast.wistia.net/embed/iframe/{}'"
I did two others little modifications.
First modification :
For some lessons it works but for some others it cause a problem when creating the folder_name as it grep a '/' (on Linux at least). For example :
Line 23 : "folder_name = line[27:57]"
To : "folder_name = line.split('/')[4]"
Second modification :
If the lesson have more than 10 parts you can't download them all with your code as it only catch the last digit
Line 30 : total_videos = int(line[-1])
To : total_videos = int(line.split('-')[-1])
I'm new to GitHub, so hope doing an issue was the right way to tell you.
Thanks.
The text was updated successfully, but these errors were encountered: