Gujal00 / ResolveURL

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

Doodstream not working #278

Closed alpha7504 closed 1 year ago

alpha7504 commented 1 year ago

Hello, When playing from dramacool addon, and selecting any episode to play with doodstream server, this error generates.

2022-12-18 12:17:44.696 T:11072   ERROR <general>: ResolveURL: ResolverError Error - From: DoodStream Link: https://dood.wf/e/cnl: Video Link Not Found
2022-12-18 12:17:44.698 T:11072    INFO <general>: CPythonInvoker(26, C:\Users\alp\AppData\Roaming\Kodi\addons\plugin.video.dramacool\dramacool\addon.py): script successfully run
2022-12-18 12:17:44.706 T:7528     INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-12-18 12:17:44.890 T:11072    INFO <general>: Python interpreter stopped
2022-12-18 12:17:44.904 T:3912    ERROR <general>: Playlist Player: skipping unplayable item: 9, path [plugin://plugin.video.dramacool/s.html]
2022-12-18 12:17:46.738 T:3912  WARNING <general>: CGUIWindowManager - CGUIWindowManager::HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2022-12-18 12:17:57.141 T:3912  WARNING <general>: Skipped 2 duplicate messages..
2022-12-18 12:17:57.141 T:3912  WARNING <general>: CGUIWindowManager - CGUIWindowManager::HandleAction - ignoring action 107, because topmost modal dialog closing animation is running

The URL https://dood.wf/e/cnl certainly works.

alpha7504 commented 1 year ago

strangely it works after updating resolveurl with zip file from here for windows.

UPDATE: I don't know how it worked before for that moment, now next day same system, same settings, yet the problem appears again. Video Link Not Found.

alpha7504 commented 1 year ago

Same problem on Kodi matrix 19.3 Android..doodstream link shows video link not found. Updating resolve url from zip doesn't have any effect.

alpha7504 commented 1 year ago

After trying so many ways to fix this, turns out the problem was in the line 35 of doodstream.py. I don't know what this line does if host.endswith('.cx'): I changed cx to wf since I can open doodstream with .wf, .so etc. and now it works fine in kodi.

def get_media_url(self, host, media_id):
        if host.endswith('.cx'):
            host = 'dood.so'
        web_url = self.get_url(host, media_id)
        headers = {'User-Agent': common.RAND_UA,
                   'Referer': 'https://{0}/'.format(host)}
Gujal00 commented 1 year ago

.cx domain was an old domain used by dood but not active anymore, however lots of embeds still had .cx. That line basically changes dood.cx to dood.so to get it working. Probably wf is similar. Will add to the code. Thanks for reporting