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

teachable.py add a section-title #24421

Closed
Ghaleb-alnakhlani opened this issue Mar 21, 2020 · 1 comment
Closed

teachable.py add a section-title #24421

Ghaleb-alnakhlani opened this issue Mar 21, 2020 · 1 comment

Comments

@Ghaleb-alnakhlani
Copy link

@Ghaleb-alnakhlani Ghaleb-alnakhlani commented Mar 21, 2020

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2020.03.08
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Simply i want to add section-title (similar to chapter in udemy). I tried to do it with "self._html_search_regex" but I couldn`t do it because I did not understand the python code.
Everything is working perfectly except when I want to output %(chapter)s/%(title)s.%(ext)s
it will output NA for chapter.

I managed to get the regex from the HTML for section_title

r'<span[^>]+class=["']section-lock[^>]+>\s*<i[^>]+class=["']fa\sfa-lock[^>]+> \s*[^>]+>\s*(.+)'

But i don`t know how to add it to the teachable.py

the website I am trying to download from is zerotomastery.io

image

@Ghaleb-alnakhlani
Copy link
Author

@Ghaleb-alnakhlani Ghaleb-alnakhlani commented Mar 21, 2020

I have marked what I want to extract exactly. To make the issue more clear.
Untitled

@dstftw dstftw closed this in 4560adc Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.