Commit Graph

60 Commits (5d2354f1779182f260b4ef44ef6e92a3b5944183)

Author SHA1 Message Date
Sergey M․ e20d0c1e69 [brightcove] Use `compat_xml_parse_error` (Closes )
Sergey M․ af9cdee9cb [brightcove] Improve and generalize brightcove URL extraction from JS
fnord b4e1576aee Brightcove extractor: support customBC.createVideo(...); method
found in http://www.americanbar.org/groups/family_law.html and
http://america.aljazeera.com/watch/shows/america-tonight/2015/6/exclusive-hunting-isil-with-the-pkk.html
Yen Chi Hsuan b26733ba7f [brightcove] Allow single quotes in Brightcove URLs (fixes )
Yen Chi Hsuan 9fc03aa87c [brightcove] Always return lists from _extract_brightcove_urls
In Python 3, filter() returns an iterable object, which is equivalently
to True even for an empty result set. It causes false positive playlists
in generic extraction logic.
Sergey M․ 94c1255782 [brightcove] Handle non well-formed XMLs ()
Sergey M․ 476e1095fa [brightcove] Improve brightcove experience regex (Closes )
Philipp Hagemeister d47c26e168 [brightcove] Correct keys in playlists
Philipp Hagemeister c1147c05e1 [brightcove] Fix up more generically invalid XML (Fixes )
Philipp Hagemeister ec05fee43a [brightcove] Add shorter URL scheme for other extractors
Philipp Hagemeister 1cc79574fc Fix imports and general cleanup
· Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail.
· Use _match_id consistently whenever possible
· Fix some outdated tests
· Use consistent valid URL (always match the whole protocol, no ^ at start required)
· Use modern test definitions
Jaime Marquínez Ferrándiz 233d37fb6b [brightcove] Make sure that the 'ext' variable is set (fixes )
Jaime Marquínez Ferrándiz 4d46c1c68c [brightcove] Improve error message detection ()
Jaime Marquínez Ferrándiz d6f714f321 [brightcove] Remove the namespace from the BrightcoveExperience html object
Naglis Jonaitis 37aab27808 [brightcove] Extract m3u8 formats ()
Naglis Jonaitis b5af6fcdad [brightcove] Make _VALID_URL less greedy and check for empty URLs ()
Jaime Marquínez Ferrándiz bd4e40df1a [brightcove] Add a test for playlists
Philipp Hagemeister e1ab5000b2 [brightcove] Add support for videoId= in og:video meta (Fixes )
Philipp Hagemeister a5ed3e571e [brightcove] Detect geoblocking
Philipp Hagemeister 6857590059 [brightcove] Add a truncated URL warning message ()
Jaime Marquínez Ferrándiz 35eacd0dae [brightcove] Set the filesize of the formats and use _sort_formats
Jaime Marquínez Ferrándiz 96bef88f5f [brightcove] Modernize some tests
Jaime Marquínez Ferrándiz 5524b242a7 [brightcove] Add support for renditions with 'remote' set to True (fixes )
The url needs to be modified to get the flv video.
Jaime Marquínez Ferrándiz a013eba65f [brightcove] Improve the 'experienceJSON' regex ()
One of the strings may contain ';', we would get an invalid json string.
Jaime Marquínez Ferrándiz 381640e3ac [brightcove] Only use url from meta element if it has the 'playerKey' field (fixes )
Sergey M․ 0479c625a4 [brightcove] Encode object_str with utf-8
Jaime Marquínez Ferrándiz ac6e4ca1ed [brightcove] Unescape html entities from the 'og:video' url property (fixes )
Philipp Hagemeister 99877772d0 [generic] Add support for multiple brightcove URLs (Fixes )
Philipp Hagemeister 17ab4d3b5e [brightcove] Move test to generic
Philipp Hagemeister 117bec936c [brightcove] Parse URL from meta element if available (Fixes )
Philipp Hagemeister 066f6a0630 [nowness] Add support
Jaime Marquínez Ferrándiz 47917f24c4 [brightcove] Fix extraction of embedded videos
There was a leading ‘:’ in the regex.
The ‘flashvars’ parameter is not always available.
Jaime Marquínez Ferrándiz d614aa40e3 [brightcove] Fix check for url in the result
It may have the ‘formats’ field instead of ‘url’.
Philipp Hagemeister 7b0817e8e1 [servingsys] Add support
This also adds support for brightcove advertisements.
Fixes 
Jaime Marquínez Ferrándiz db22af36ec [brightcove] The ‘id’ attribute is not always present in the object tag (fixes )
It looks like the ‘flashId’ parameter is not needed.
Philipp Hagemeister 79f8295303 Use original Referer URL in Brightcove requests (Fixes )
Philipp Hagemeister 400e58103d [brightcove] Use unicode_literals
Philipp Hagemeister c4d55a33fc [brightcove] Test checksum changed
Philipp Hagemeister f8bd0194a7 Remove superfluous spaces
Jaime Marquínez Ferrándiz 77526143e7 [brightcove] Use the original url (usually the player) as the default referer (fixes )
Jaime Marquínez Ferrándiz d214fdb8fe [brightcove] Don't use 'or' with the xml nodes, use the 'value' attribute instead
Jaime Marquínez Ferrándiz 36de0a0e1a [brightcove] Set the 'videoPlayer' value to the 'videoId' if it's missing in the parameters (fixes )
Jaime Marquínez Ferrándiz dd5bcdc4c9 [brightcove] Set the 'Referer' header if the url has the 'linkBaseUrl' parameter (fixes )
Jaime Marquínez Ferrándiz 51040b72ed [brightcove] Support redirected urls from bcove.me (fixes )
'bctid' needs to be changed to '@videoPlayer', and 'bckey' to 'playerKey'.
Jaime Marquínez Ferrándiz b0759f0c19 [brightcove] Extract all the available formats
Jaime Marquínez Ferrándiz fc4a0c2aec [brightcove] Change the 'videoId' or 'videoID' field to '@videoPlayer' (fixes )
It seems to be needed when using the htmlFederated page
Jaime Marquínez Ferrándiz eeb165e674 [brightcove] Add the extraction of the url from generic
Jaime Marquínez Ferrándiz f52f01b5d2 [brightcove] Don't set the extension
If the video only has the 'FLVFullLengthURL' key, it can still be an mp4 file.
Philipp Hagemeister 591454798d [brightcove] Raise error if playlist is empty ()
Philipp Hagemeister 2d0efe70a6 [brightcove] Fix more broken XML ()