Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Library Updated #39

Open
nhCoder opened this issue Nov 1, 2020 · 4 comments
Open

Library Updated #39

nhCoder opened this issue Nov 1, 2020 · 4 comments

Comments

@nhCoder
Copy link
Owner

nhCoder commented Nov 1, 2020

Hey coders the lib is updated and working properly,look into your issues and close them... if u face any problem just send the video url and description
.... Happy Coding ♥

@yyms3275
Copy link

yyms3275 commented Nov 1, 2020

@naveedhassan913

Thanks for the fix. After I edit the code, it plays well.
p.s Can you know what kind of problem it wasn't?

@hhyeok1026
Copy link
Contributor

@naveedhassan913
Thank you so much ~ !

@yyms3275

I saw his commit for this update,

Previously, in the asset object of this library, we had to use the value of the js column.
YouTube has changed the structure so that there are no assets.

But in his commit this time, I could see the regular expression that changed the js value to another name,
It seems that parsing it solved the problem.

//
ps)

  1. Analyze the library yourself and see his commit history.
  2. Debugging is easy if you use a regular expression conversion site and a web code alignment site.
  3. Due to the large amount of html being responded, I tried debugging this by saving it in the Android internal storage file.
  4. There may be a way to copy the response source of the url by pressing f12 in the Chrome browser.

@craftbox2245
Copy link

craftbox2245 commented Nov 2, 2020

@naveedhassan913 Thank you for the fix , but when i checked more videos i was getting error in some videos i am giving you video url could you please help me

Error:
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 98894 path
$.args.player_response

Video Urls:
https://m.youtube.com/watch?v=hoNb6HuNmU0
https://m.youtube.com/watch?v=u2A6znC7LIg

@nhCoder
Copy link
Owner Author

nhCoder commented Nov 3, 2020

@naveedhassan913 Thank you for the fix , but when i checked more videos i was getting error in some videos i am giving you video url could you please help me

Error:
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 98894 path
$.args.player_response

Video Urls:
https://m.youtube.com/watch?v=hoNb6HuNmU0
https://m.youtube.com/watch?v=u2A6znC7LIg

I tested your urls and they are just working fine properly. please double check the code you copied. i will suggest u to redownload the latest source

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

No branches or pull requests

4 participants