Extracting video identifier from the data-share-params attribute has proven to
be brittle: the attribute is bogus for some videos and completely missing for
some others.
Extract the identifier from the numeric part of the data-video-id attribute
instead.
Both W504 (line break after binary operator) and W503 (line break before binary
operator) were implicitly enabled, even though conceptually they are mutually
exclusive.
W504 had over 100 hits, while W503 had none, so let's disable the former.
Error messaged will use the 'statusMessage', if available.
This will give messages like:
* "This episode is no longer available in iview."
* "This episode is not yet available in iview."
These additional lines are removed from the 'statusMessage':
"Programs are normally available for 14 days."
"You may enjoy similar programs to this, shown below."
"Learn more about program availability in the FAQs, under Support."
YouTube music videos often have auto-generated video descriptions that can be
utilized to extract additional information about the video. This is desirable
in order to provide the user with as much meta data as possible. This commit
adds extraction methods for the following fields for youtube music videos:
- artist (fallback extraction methods added)
- track (fallback extraction methods added)
- album (new in this commit)
- release_date (new in this commit)
- release_year (new in this commit)
4 tests have been added to test this new functionality:
- YoutubeIE tests 27, 28, 29, and 30
Resolves: #20599
YouTube music videos often have auto-generated video descriptions that can be
utilized to extract additional information about the video. This is desirable
in order to provide the user with as much meta data as possible. This commit
adds extraction methods for the following fields for youtube music videos:
- artist (fallback extraction methods added)
- track (fallback extraction methods added)
- album (new in this commit)
- release_date (new in this commit)
- release_year (new in this commit)
4 tests have been added to test this new functionality:
- YoutubeIE tests 27, 28, 29, and 30
Resolves: #20599