Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[extractor/common] _parse_mpd_formats raises ExtractorError on AdaptationSet with contentType="text" and mimeType="application/mp4" #14630
Comments
|
|
|
No and why this traceback? Did you even read my description or tested it with the provided valid MPD manifest file?
|
Description
If you trying to parse with
_parse_mpd_formats(respectively_extract_mpd_formats) the provided example MPD manifest file, the method raises anExtractorError. The error occurs if the parser reaches theAdaptationSetwith thecontentType="text"and themimeType="application/mp4". In the attached code snippet (where the error occurs) it looks like the parser should skip anAdaptationSetwith thiscontentTypebut it does not do it. Indeed, the 'content_type' attribute is set to application and the conditional statement is not fulfilled (see comments in the attached code snippet). I attached three possible solutions because I don't know if this behavior is wished or this is a bug of the parser. Additionally, I don't know if the provided solutions have unknown side effects etc. (I tested them just with a few examples and in my case it worked as it should)common.InfoExtractor._parse_mpd_formats():common.InfoExtractor._parse_mpd_formats():