Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
[utils] Add extract_attributes for extracting html tag attributes
|
|
|
|
|
|
|
|
This is much more robust than just using regexps, and handles all
the common scenarios, such as empty/no values, repeated attributes,
entity decoding, mixed case names, and the different possible value
quoting schemes.
|
|
1. Renamed to encode_base_n()
2. Allow tables longer than 62 characters
3. Raise ValueError instead of AssertionError for invalid input data
4. Return the first character in the table instead of '0' for number 0
5. Add tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #7608
|
|
Tolerate invalid timestamps (closes #7909)
|
|
|
|
|
|
|
|
|
|
(fixes #7340)
This issue was introduced with ae12bc3ebb4cb377c2b4337ec255e652b36f5143, it returned 'None'.
|
|
Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (…
|
|
|
|
|
|
Attributes aren't unicode objects, so they couldn't be directly used in info_dict fields (for example '--write-description' doesn't work with bytes).
|
|
|
|
|
|
|
|
This allows selecting particular attributes by name but without specifying the value and similar to xpath syntax `[@attrib]`
|
|
Now dots are parsed. For example '87 Min.'
|
|
In a strict sense such TTML is invalid, but Yahoo uses it.
|
|
|
|
This function is used only in SohuIE, which is updated to use a new
extraction logic.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yan12125-sohu_fix
|
|
|
|
|