Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help needed] Merging pending changes from youtube-dl #21

Open
pukkandan opened this issue Jan 17, 2021 · 18 comments · Fixed by #175
Open

[Help needed] Merging pending changes from youtube-dl #21

pukkandan opened this issue Jan 17, 2021 · 18 comments · Fixed by #175
Labels
help-wanted Extra attention is needed solved-upstream The issue has been solved in youtube-dl. Do not make PR for this

Comments

@pukkandan
Copy link
Member

pukkandan commented Jan 17, 2021

Upstream commits that have not been merged


@pukkandan pukkandan added the help-wanted Extra attention is needed label Jan 17, 2021
@Lesmiscore

This comment was marked as outdated.

@pukkandan

This comment was marked as outdated.

@nixxo

This comment was marked as resolved.

@pukkandan

This comment was marked as resolved.

@nixxo

This comment was marked as resolved.

@throwawayay

This comment was marked as off-topic.

@nixxo

This comment was marked as resolved.

@pukkandan

This comment was marked as resolved.

@nixxo

This comment was marked as resolved.

@2ShedsJackson

This comment was marked as off-topic.

@nixxo

This comment was marked as off-topic.

@2ShedsJackson

This comment was marked as off-topic.

@pukkandan

This comment was marked as resolved.

@pukkandan pukkandan reopened this Mar 4, 2022
@gamer191 gamer191 mentioned this issue Jun 14, 2022
7 tasks
@dirkf

This comment was marked as resolved.

@gamer191

This comment was marked as resolved.

@pukkandan pukkandan reopened this Feb 17, 2023
@dirkf
Copy link
Contributor

dirkf commented Feb 17, 2023

ITV extractor was based on the last yt-dlp PR and should be OK with these considerations:

  • remove _sort_formats()
  • tweak any removed compat_xxx
  • optionally, delete _search_nextjs() shim in favour of yt-dlp native method
  • possibly investigate if subtitles are available in the m3u8 manifest and use _extract_m3u8_formats_and_subtitles() if so.

If there is a test port or PR I could exercise it in the UK.

@pukkandan
Copy link
Member Author

pukkandan commented Feb 18, 2023

[jsinterp] Improve parsing

@dirkf Could you explain the point of the regex rework in jsinterp?

We don't have . implemented except for some specific cases. So this does nothing. Even if it were to be implemented, the method names are generally different b/w JS and Python. Some fields like split/search/flags etc will work, but the test seems to imply you are expecting the others as well?

Actually, none of YT players are actually using the regexes. We only needed to parse them out. The .compile can even be completely removed (possible speed improvement?)

The newly added replace also don't work. When passed a string "a".replace(".", "b"), JS interprets . literally, while the code considers it a regex. On the other hand "a".replace(\.\, "b") also doesn't work and raises error, since JS_Regex doesn't inherit from re.Pattern

@pukkandan pukkandan mentioned this issue Mar 5, 2023
10 tasks
@dirkf
Copy link
Contributor

dirkf commented Mar 5, 2023

That was a bit of WIP, apparently, even though the specification of String.prototype.replace[All]() has all the logic and consistency that one has come to expect from Brendan's busy week.

The linked test was really checking that the SO hack behaved sensibly.

So far there hasn't been any use of replace() but if it happens there's now this: dirkf/youtube-dl@3be072e.

The .compile could indeed be lazy, like this: dirkf/youtube-dl@5f0eea7. It doesn't seem to affect the time for test/test_youtube_signature.py much: maybe 5% quicker. Py2.7/Py3.9 runtime ratio still ~1.6, though.

@yt-dlp yt-dlp deleted a comment from github-actions bot Jun 21, 2023
@pukkandan pukkandan changed the title [Help needed] Merging the remaining extractors from youtube-dl [Help needed] Merging pending changes from youtube-dl Jun 21, 2023
@pukkandan pukkandan added the solved-upstream The issue has been solved in youtube-dl. Do not make PR for this label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Extra attention is needed solved-upstream The issue has been solved in youtube-dl. Do not make PR for this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants