Closed sokh123 closed 5 years ago
@khoozhiyan1997 Could you provide some more information? Like a video ID that exhibits the error and the actually error?
Task <06831EDC-C538-4EB1-A092-AD3AB22B9CD8>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo=}
You can try to replicate the error on you demo app, right now even your demo can't play anything. Thanks.
@khoozhiyan1997 Please give me a video ID that has this issue.
Most of the video id can't play right now, i will give you some for example - WZwr2a_lFWY
@khoozhiyan1997 Thanks for that 👍
I have the same issue
Working on a fix 👍
Working on a fix 👍
You can consider at https://github.com/rg3/youtube-dl/commit/fa4ac365f69cbd51e4c9801984ebea49a12825b7
I got it fixed on my end (https://github.com/0xced/XCDYouTubeKit/commit/e547cf869483c8ee145564147bf631a54d0041ce). Can everyone confirm that it does for them as well? Use the develop branch in CocoaPods by adding this to your pod file:
pod 'XCDYouTubeKit', :git => "https://github.com/0xced/XCDYouTubeKit.git", :branch => "develop
Be sure to clean your project and delete your derived data before retesting 👍
I got it fixed on my end (e547cf8). Can everyone confirm that it does for them as well? Use the develop branch in CocoaPods by adding this to your pod file:
pod 'XCDYouTubeKit', :git => "https://github.com/0xced/XCDYouTubeKit.git", :branch => "develop
Be sure to clean your project and delete your derived data before retesting 👍
Could I only change the regex pattern for update? Thank you very much.John
I don't believe the problem is caused due to the regex. Does the latest commit work for you? (I am going to try changing the regex)
I tried the new regex. Some videos still not work.
From: oososo notifications@github.com Sent: Thursday, January 17, 2019 23:28 To: 0xced/XCDYouTubeKit Cc: MoboPan; Comment Subject: Re: [0xced/XCDYouTubeKit] Can't play anything (#419)
Working on a fix 👍
You can consider at rg3/youtube-dl@fa4ac36https://github.com/rg3/youtube-dl/commit/fa4ac365f69cbd51e4c9801984ebea49a12825b7
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/0xced/XCDYouTubeKit/issues/419#issuecomment-455423915, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGMV10jubglgT8I0DqMRuv9eF88ARJKRks5vEU1YgaJpZM4aHFRC.
I don't believe the problem is caused due to the regex. Does the latest commit work for you? (I am going to try changing the regex)
I can't update for my app now. I only can update the regex for users. I think the problem is from changing the signature
It fixed the issues. Thanks @SoneeJohn
I tried the new regex. Some videos still not work. … ____ From: oososo notifications@github.com Sent: Thursday, January 17, 2019 23:28 To: 0xced/XCDYouTubeKit Cc: MoboPan; Comment Subject: Re: [0xced/XCDYouTubeKit] Can't play anything (#419) Working on a fix 👍 You can consider at rg3/youtube-dl@fa4ac36[rg3/youtube-dl@fa4ac36](https://github.com/rg3/youtube-dl/commit/fa4ac365f69cbd51e4c9801984ebea49a12825b7) — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#419 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGMV10jubglgT8I0DqMRuv9eF88ARJKRks5vEU1YgaJpZM4aHFRC.
Hi,How are you going now?
I didn't find any solutions to fix the issue just by updating regex.
I didn't find any solutions to fix the issue just by updating regex.
Do you know what's the problem now? What changed by youtube?
I don't believe the problem is caused due to the regex. Does the latest commit work for you? (I am going to try changing the regex)
I can't update for my app now. I only can update the regex for users. I think the problem is from changing the signature
Hi, John, Are you still working on this?
I don't believe the problem is caused due to the regex. Does the latest commit work for you? (I am going to try changing the regex)
Hi, could you please explain to me what YouTube webpage changed this time.
@SoneeJohn Thank you so much! It's fixed. Very appreciate!
I got it fixed on my end (e547cf8). Can everyone confirm that it does for them as well? Use the develop branch in CocoaPods by adding this to your pod file:
pod 'XCDYouTubeKit', :git => "https://github.com/0xced/XCDYouTubeKit.git", :branch => "develop
Be sure to clean your project and delete your derived data before retesting 👍
This is not resolving the issue. Large amount of videos still do not work. Video Ids: jr66A4NDuYw Kbj2Zss-5GY
Working on a fix 👍
You can consider at rg3/youtube-dl@fa4ac36
Is this regex solution not working ? Because they closed this issue in there.
@emrecelikors See https://github.com/0xced/XCDYouTubeKit/issues/419#issuecomment-455424585
@emrecelikors See #419 (comment)
This is working, thank you but my app needs to update with that code. With regex solution,my problem will be solved without changing any source code because of that I was asking that. As I can see youtube-dl commit this fix this via regex.
@emrecelikors That regex commit is unrelated to this. Where you able to simply change the regex and it fixed your issue?
The new regex does indeed fix the issue however, some additional work needs to done in the XCDYouTubePlayerScript
class. If anyone would like to help I would really appreciate it.
The new regex does indeed fix the issue however, some additional work needs to done in the
XCDYouTubePlayerScript
class. If anyone would like to help I would really appreciate it.
Good findings! Can you please give us some hints about what we should do in XCDYouTubePlayerScript?
@chaocharleswang A XMLHttpRequest
request needs to be made in the JSContext
.
Update: the latest commit should fix it now. :-D
@darkForestCat was able to play
Yeah, I see now.Idk it was not working.Working now.Thanks a lot @SoneeJohn !
I just reopened the project and cleaned everything and everything started to work.
@SoneeJohn I've just checked your latest commits, with XMLHttpRequest
class logic. And noticed very interesting thing.
Try to replace:
XMLHttpRequest *xmlHttpRequest = [XMLHttpRequest new]; [xmlHttpRequest extend:_context];
in line 26, XCDYouTubePlayerScript.m file with:
_context[@"XMLHttpRequest"] = ^{};
This code will fix the issue with videos not able to playback. None of the XMLHttpRequest
's class ever triggered. Are you sure it is really needed in project?
@DmytroBrovkin Thanks! 👍 Can you open a PR with this change (I know it's a bit trivial). I tried it and it works.
@SoneeJohn Can do it in few days, I'm about to flight over ocean)
Do u guys update this part of code to do the regex changes ?
` //See list of regex patterns here https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1179
NSArray<NSString >patterns = @[@"\.sig\|\|([a-zA-Z0-9$]+)\(", @"[\"']signature[\"']\s,\s([^\(]+)", @"yt\.akamaized\.net/\)\s\|\|\s.?\sc\s&&d.set\([^,]+\s,\s([a-zA-Z0-9$]+)", @"\bcs&&\sd\.set\([^,]+\s,\s([a-zA-Z0-9$]+)\C", @"\bc\s&&\sd\.set\([^,]+\s,\s\([^)]\)\s\(\s([a-zA-Z0-9$]+)\(" ];`
@DmytroBrovkin Have you any update for the PR ? Because it works juste fine for me => #426
It is also working fine, but as I said earlier XMLHttpRequest
is useless. Will create PR soon.
Can't play anything at all right now. When i try to debug by copying the convert url into Chrome it show ,You don't have authorisation to view this page .