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

Line mpdurl = html[html.find("dashmpd"):] returns empty #2

Open
simonovskifilip opened this issue Jul 6, 2019 · 2 comments
Open

Line mpdurl = html[html.find("dashmpd"):] returns empty #2

simonovskifilip opened this issue Jul 6, 2019 · 2 comments

Comments

@simonovskifilip
Copy link

I am trying to execute the script using this command line
python3 extract.py https://www.youtube.com/watch?v=2d1VrCvdzbY test.mpd

But I don't seem to get a result or output.

Output:

File "extract.py", line 69, in
mpdurl = html[html.find("dashmpd"):]
TypeError: a bytes-like object is required, not 'str'

I have tried to fix this output with some .encode() next to the strings, and this solved at first the problem but it is still not returning an output.

It seems it is not able to find a result at line 69. Maybe the parameter is not called anymore "dashmpd"?

@ChristianKreuzberger
Copy link
Owner

Maybe the parameter is not called anymore "dashmpd"?

I'm guessing that that's the case, youtube probably has modified how things work since I have released this tool.

@chaijunkun
Copy link

actually, After reviewing the python code, I find it just try to find a html node with "dashmpd", but today's youtube player page no longer contains such node anymore. maybe we can get some idea from youtube-dl. that tool works fine so far at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ChristianKreuzberger @chaijunkun @simonovskifilip and others