The _extract_embedded_urls method now uses re.findall to collect all iframe src attributes, avoiding the unsupported multiple=True parameter.
I’ve added optional self._downloader.to_screen calls (commented out) to help inspect the JSON data and embedded URLs if needed. Uncomment them if you run into further issues.
Testing to see if my msn_video_downloader.py integration works comfortably within the yt-dlp environment without causing error or conflict. This is a working progress and not yet finished until it can be tested. I really hope this is not attempting to replace the actual "master" branch and that this is just my own fork being edited as I have never done this before.
Using https://github.com/asottile/pyupgrade
1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`
Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account
Co-authored-by: Pccode66
Co-authored-by: pukkandan
2021-02-25 00:15:56 +05:30
Renamed from youtube_dlc/extractor/msn.py (Browse further)