Skip to content
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

Closed
Liscum opened this issue Dec 30, 2018 · 2 comments
Closed

Code not working anymore, hdpiano new player #1

Liscum opened this issue Dec 30, 2018 · 2 comments

Comments

@Liscum
Copy link
Contributor

Liscum commented Dec 30, 2018

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 = '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('-')[-1])

I'm new to GitHub, so hope doing an issue was the right way to tell you.

Thanks.

@dcrystalj
Copy link
Owner

dcrystalj commented Dec 30, 2018 via email

@dcrystalj
Copy link
Owner

fixed in #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants