![]() |
Req ondemandkorea video addon - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +---- Forum: Requests (https://forum.kodi.tv/forumdisplay.php?fid=251) +---- Thread: Req ondemandkorea video addon (/showthread.php?tid=370301) |
ondemandkorea video addon - User 468215 - 2022-11-07 Hello, I'm requesting ondemandkorea video addon which is https://www.ondemandkorea.com There was already built addon which was https://github.com/hojel/xbmc-korea-addons/tree/master/download But, due to the recent web design change it's not working any more. Before recent web design change for which I modified a bit for kodi 19.4 English menu https://drive.google.com/file/d/1juV3ZRes1UMEArnoeVJGv84sXucjACsc/view for korean menu https://drive.google.com/file/d/17SfCNJ9ZFlLI8tD0s96IE_-QiPO4tFID/view?usp=sharing I tried to contact the author of last ondemandkorea addon which was 0.72 which was written for kodi 18, but unsuccessful for 11 month. When running addon it gives a this error mesg INFO : [xbmcswift2] Request for "/" matches rule for function "main_menu" 2022-11-04 14:16:01.452 T:15256 INFO : CPythonInvoker(12, C:\Users\Jung\AppData\Roaming\Kodi\addons\plugin.video.ondemandkorea\addon.py): script successfully run 2022-11-04 14:16:01.553 T:15256 INFO : Python interpreter stopped 2022-11-04 14:16:02.386 T:16600 INFO : CPythonInvoker(10, C:\Users\Jung\AppData\Roaming\Kodi\addons\service.xbmc.versioncheck\resources\lib\runner.py): script successfully run 2022-11-04 14:16:02.460 T:16600 INFO : Python interpreter stopped 2022-11-04 14:16:02.768 T:17744 INFO : initializing python engine. 2022-11-04 14:16:03.304 T:17744 INFO : [xbmcswift2] Request for "/genre/variety" matches rule for function "genre_view" 2022-11-04 14:16:06.174 T:6972 INFO : CPythonInvoker(11, C:\Users\Jung\AppData\Roaming\Kodi\addons\weather.multi\default.py): script successfully run 2022-11-04 14:16:06.294 T:6972 INFO : Python interpreter stopped 2022-11-04 14:16:06.611 T:17744 INFO : CPythonInvoker(13, C:\Users\Jung\AppData\Roaming\Kodi\addons\plugin.video.ondemandkorea\addon.py): script successfully run 2022-11-04 14:16:06.729 T:17744 INFO : Python interpreter stopped 2022-11-04 14:16:07.260 T:6564 INFO : KodiLibrary sync took 1.115 sec 2022-11-04 14:16:08.248 T:17968 INFO : initializing python engine. 2022-11-04 14:16:08.779 T:17968 INFO : [xbmcswift2] Request for "/episode/post/%2Ftaste-of-travel-e11042022.html" matches rule for function "episode_post" 2022-11-04 14:16:09.720 T:17968 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'AttributeError'> Error Contents: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "C:\Users\Jung\AppData\Roaming\Kodi\addons\plugin.video.ondemandkorea\addon.py", line 135, in plugin.run() File "C:\Users\Jung\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 338, in run items = self._dispatch(self.request.path) File "C:\Users\Jung\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 312, in _dispatch listitems = view_func(**items) File "C:\Users\Jung\AppData\Roaming\Kodi\addons\plugin.video.ondemandkorea\addon.py", line 81, in episode_post url = scraper.extractEpisodeDataUrlFromPage(post) File "C:\Users\Jung\AppData\Roaming\Kodi\addons\plugin.video.ondemandkorea\resources\lib\ondemandkorea.py", line 83, in extractEpisodeDataUrlFromPage epinfo_tmpl = re.search("setPageDataUrl('([^']*)')", r.text).group(1) AttributeError: 'NoneType' object has no attribute 'group' -->End of Python script error report<-- 2022-11-04 14:16:09.836 T:17968 INFO : Python interpreter stopped 2022-11-04 14:16:09.836 T:3088 ERROR : XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.ondemandkorea/episode/post/%2Ftaste-of-travel-e11042022.html 2022-11-04 14:16:09.841 T:14016 ERROR : CGUIMediaWindow::GetDirectory(plugin://plugin.video.ondemandkorea/episode/post/%2Ftaste-of-travel-e11042022.html) failed 2022-11-04 14:16:11.567 T:19816 INFO : initializing python engine. It seems like directory of episode being changed due to new design, but I don't have any clue since I don't have any knowledge about python or how to scrap,etc But, it seems like easy fix if you know how to scrap If somebody could take a look at it I would really appreciate it. Thank you RE: ondemandkorea video addon - User 468215 - 2023-01-24 I guess there is no one to save my soul from their awful smart tv apps ![]() RE: ondemandkorea video addon - kcook_shield - 2023-01-24 Have not looked at code, just the errors. The failing line seems to be using a Regex with patter containing parenthesis , but those should be escaped I would think. In the code you might want to try changing : epinfo_tmpl = re.search("setPageDataUrl('([^']*)')", r.text).group(1) to epinfo_tmpl = re.search("setPageDataUrl\('([^']*)'\)", r.text).group(1) (basically adding the escape character "\" in front of the outer parenthesis. No guarantees, but I would think this would fix that particular line of code. EDIT: I just peeked at code and it is correctly escaped, I guess the logs un-escape. So this is not the right fix, sorry. RE: ondemandkorea video addon - User 468215 - 2023-01-24 nope the back slash you were saying is already inside of code, just not showing in log because it's in Korean language backslash which is as won sign, but thanks for help though RE: ondemandkorea video addon - scott967 - 2023-01-24 The error in the exception is due to re.search didn't match anything and returned a "None" object. You will have to figure out why. Probably when they redid the site many things changed. Scraping web sites is something of an art IMO. scott s. . RE: ondemandkorea video addon - User 468215 - 2023-05-24 since no one seems to work with plug-in request I'm going to close down good drive access today. RE: ondemandkorea video addon - QianyuLi - 2023-07-25 @pazu1 I'm interested in looking at it, if you have an account you can DM it to me. |