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

[closertotruth] Add new extractor #8680

Closed
wants to merge 5 commits into from

Conversation

stevengos
Copy link
Contributor

Solves issue #8435

Removed print statement from code.

Replaced two regex searches with the corret ones.

Removed some unnecessary semicolumns

fixed title extraction

refactored everything to search_regex
#request video url at kaltura API
#from: http://knowledge.kaltura.com/faq/how-retrieve-download-or-streaming-url-using-api-calls
api_request_url = 'http://www.kaltura.com/p/'+p_id+'/sp/0/playManifest/entryId/'+entry_id+'/protocol/HTTPS/flavorParamId/0/video.mp4'
api_response = self._download_webpage(api_request_url, video_id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extraction should be delegated to kaltura extractor.

@dstftw
Copy link
Collaborator

dstftw commented Feb 27, 2016

Check code with flake8 and fix all issues.

@stevengos
Copy link
Contributor Author

how about this? :)



class CloserToTruthIE(InfoExtractor):
_VALID_URL = r'http?://(?:www\.)?closertotruth\.com/series/\S+#video-(?P<id>\w+)'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be https? not http?. Change \S+ to [^#]+.

@sandervdo
Copy link
Contributor

I've processed your feedback, thanks! I believe everything has been fixed, except for one comment. If you have any other feedback please let us know.

@dstftw
Copy link
Collaborator

dstftw commented Feb 27, 2016

There are also different URL schema possible http://closertotruth.com/interviews/1725.
I've already suggested checking code with flake8. Also long lines should be carried.

@dstftw
Copy link
Collaborator

dstftw commented Feb 27, 2016

@stevengos
Copy link
Contributor Author

The URL http://closertotruth.com/episodes/how-do-brains-work you propose does not contain clear links that point to video's that appear to belong to a kind of playlist that is available without paying for it.

@dstftw
Copy link
Collaborator

dstftw commented Mar 13, 2016

image

@stevengos
Copy link
Contributor Author

@dstftw thanks for the feedback, is there anything else I could have overseen?

@yan12125
Copy link
Collaborator

yan12125 commented Apr 9, 2016

Since #8497 landed, please move changes in youtube_dl/extractors/__init__.py to youtube_dl/extractors/extractors.py. Check step 5 of the new developer instructions for more information.

@dstftw dstftw closed this in cb23192 Jun 18, 2016
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

Successfully merging this pull request may close these issues.

4 participants