Gujal00 / ResolveURL

Fork of UrlResolver for XBMC by @t0mm0, @eldorados, @bstrdsmkr, @tknorris and @jsergio123
GNU General Public License v2.0
120 stars 57 forks source link

Doodstream issue, Video Link Not Found #324

Closed alpha7504 closed 1 year ago

alpha7504 commented 1 year ago

Hi, so I was testing links and somehow doodstream is not working anymore. Could you please check from your end?

Thanks

2023-01-29 19:43:12.793 T:14412    info <general>: SMR Link Tester: Version: |1.1.9| Queries: |{'mode': 'play_link', 'link': 'https://dood.pm/e/xs5ldgz9xd9ryvdm4sy4r0yntv3avxx'}|
2023-01-29 19:43:12.793 T:14412    info <general>: SMR Link Tester: Running on: Python 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)]|OpenSSL 1.1.1q  5 Jul 2022
2023-01-29 19:43:12.793 T:14412    info <general>: SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '2', '?mode=play_link&link=https%3A%2F%2Fdood.pm%2Fe%2Fxs5ldgz9xd9ryvdm4sy4r0yntv3avxx', 'resume:false']|
2023-01-29 19:43:12.793 T:14412    info <general>: SMR Link Tester: Playing Link: |https://dood.pm/e/xs5ldgz9xd9ryvdm4sy4r0yntv3avxx|
2023-01-29 19:43:12.838 T:14412    info <general>: SMR Link Tester: Link Supported: |https://dood.pm/e/xs5ldgz9xd9ryvdm4sy4r0yntv3avxx| Resolvers: DoodStream
2023-01-29 19:43:15.979 T:14412   error <general>: ResolveURL: ResolverError Error - From: DoodStream Link: https://dood.pm/e/xs5ldgz9xd9ryvdm4sy4r0yntv3avxx: Video Link Not Found
shellc0de27 commented 1 year ago

@alpha7504 open that url in a browser and you should be able to see why that particular link is not working

alpha7504 commented 1 year ago

Hello

That's quite weird, the same link was working in browser hours back. I wouldn't open an issue for nothing. No matter, that was not the only link I tested this with.

<general>: SMR Link Tester: Version: |1.1.9| Queries: |{'mode': 'play_link', 'link': 'https://dood.wf/e/atorpioztw85'}|
2023-01-30 07:52:04.575 T:14607    info <general>: SMR Link Tester: Running on: Python 3.11.0 (main, Jan 15 2023, 09:48:21) [Clang 9.0.9 (https://android.googlesource.com/toolchain/llvm-project a2a1e703c0|OpenSSL 1.1.1n  15 Mar 2022
2023-01-30 07:52:04.575 T:14607    info <general>: SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '9', '?mode=play_link&link=https%3A%2F%2Fdood.wf%2Fe%2Fatorpioztw85', 'resume:false']|
2023-01-30 07:52:04.575 T:14607    info <general>: SMR Link Tester: Playing Link: |https://dood.wf/e/atorpioztw85|
2023-01-30 07:52:04.817 T:14607    info <general>: SMR Link Tester: Link Supported: |https://dood.wf/e/atorpioztw85| Resolvers: DoodStream
2023-01-30 07:52:07.682 T:14607   error <general>: ResolveURL: ResolverError Error - From: DoodStream Link: https://dood.wf/e/atorpioztw85: Video Link Not Found
2023-01-30 07:52:07.855 T:13826   error <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.smr_link_tester/?mode=play_link&link=https%3A%2F%2Fdood.wf%2Fe%2Fatorpioztw85]
2023-01-30 07:52:10.037 T:14623    info <general>: SMR Link Tester: Version: |1.1.9| Queries: |{'mode': 'play_link', 'link': 'https://dood.wf/e/6ubgkcfivuuj'}|
2023-01-30 07:52:10.038 T:14623    info <general>: SMR Link Tester: Running on: Python 3.11.0 (main, Jan 15 2023, 09:48:21) [Clang 9.0.9 (https://android.googlesource.com/toolchain/llvm-project a2a1e703c0|OpenSSL 1.1.1n  15 Mar 2022
2023-01-30 07:52:10.038 T:14623    info <general>: SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '10', '?mode=play_link&link=https%3A%2F%2Fdood.wf%2Fe%2F6ubgkcfivuuj', 'resume:false']|
2023-01-30 07:52:10.038 T:14623    info <general>: SMR Link Tester: Playing Link: |https://dood.wf/e/6ubgkcfivuuj|
2023-01-30 07:52:10.092 T:14623    info <general>: SMR Link Tester: Link Supported: |https://dood.wf/e/6ubgkcfivuuj| Resolvers: DoodStream
2023-01-30 07:52:12.768 T:14623   error <general>: ResolveURL: ResolverError Error - From: DoodStream Link: https://dood.wf/e/6ubgkcfivuuj: Video Link Not Found

Both links work fine in browser as of right now but not in Kodi.

Gujal00 commented 1 year ago

Seems to be working fine! May be you have something similar to #253

INFO <general>: SMR Link Tester: Playing Link: |https://dood.wf/e/atorpioztw85|
INFO <general>: SMR Link Tester: Link Supported: |https://dood.wf/e/atorpioztw85| Resolvers: DoodStream
INFO <general>: SMR Link Tester: Link Resolved: |https://dood.wf/e/atorpioztw85|https://il266m.dood.video/u5kjxvqzd7h3sdgge5fg2nyci4qypy4e445iitjlu477prhbhpavswmk4o7a/w06rg94h0b~ZUmcjSONF8?token=3tmxwa80ruz7u2oxiwhtamdq&expiry=1675052009958|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%3B+rv%3A68.0%29+Gecko%2F20100101+Firefox%2F68.0&Referer=https%3A%2F%2Fdood.yt%2Fd%2Fatorpioztw85|

INFO <general>: SMR Link Tester: Playing Link: |https://dood.wf/e/6ubgkcfivuuj|
INFO <general>: SMR Link Tester: Link Supported: |https://dood.wf/e/6ubgkcfivuuj| Resolvers: DoodStream
INFO <general>: SMR Link Tester: Link Resolved: |https://dood.wf/e/6ubgkcfivuuj|https://dp602xo.dood.video/u5kj6pwp7tflsdgge7ysgo2gikhcgmw74fvwc2ngocn7hsxg4jffo2qie36a/1snrrhm168~w5Kp6iSnn9?token=oaze8vwzt0iezduvh41coj4h&expiry=1675052082458|User-Agent=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_15_4%29+AppleWebKit%2F605.1.15+%28KHTML%2C+like+Gecko%29+Version%2F13.1+Safari%2F605.1.15&Referer=https%3A%2F%2Fdood.yt%2Fd%2F6ubgkcfivuuj|
alpha7504 commented 1 year ago

What is your kodi version and platform? I tested mine on windows and android phone, same issue on both. Phone on kodi 19.3, windows on latest stable 20.0. I don't think it's similar to that issue, there aren't any errors related to CA. I tried his fix anyway but it doesn't work since this is not the issue.

Also the problem is control never reaches that point in code where he made the changes, at line 58 match = None, because at line 57 no pattern is found. So the code below never executes.

Gujal00 commented 1 year ago

I test on Kodi 19.5 on Windows and CoreElec 19.5 So it may be a location specific issue. Can you save the webpage source for https://dood.wf/e/6ubgkcfivuuj and post the link here

alpha7504 commented 1 year ago

Here is it https://pastebin.com/yvdZnCdf

Gujal00 commented 1 year ago

Yep, as suspected you are hitting Google Captcha page, cant bypass that in ResolveURL

alpha7504 commented 1 year ago

Why am I hitting Google captcha page while others don't... ? Is it due to my ISP?

Update: It seems it's only happening with my ISP perhaps. I tried hotspot and it works fine with other ISP. The solution however was simple enough. First of all I didn't know that it was due to google captcha until you told me. The solution was to open any doodstream video url in mobile/laptop browser(make sure it's connected to the same wifi network as kodi) and click/touch play button once.

After this is done, video now plays fine in kodi. So can this "click/touch" be simulated via coding?

Gujal00 commented 1 year ago

The browser is running lot of obfuscated javascript from cloudflare+google. So the touch/click is something only a browser can handle

<script src="//challenges.cloudflare.com/turnstile/v0/api.js" async defer>
$('#video_player').addClass('vjs-waiting'); turnstile.render("#v_validate",{ "sitekey": "0x4AAAAAAABiSwY-1H0i_u5c", "callback":function(response) { $.get("/dood?op=validate&gc_response="+response
alpha7504 commented 1 year ago

Perhaps it might be possible in future. I guess temporary solution will do for now.

Thanks for info