Req ondemandkorea video addon
Hello, I'm requesting ondemandkorea video addon which is

There was already built addon which was

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

for korean menu

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\\ 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\ 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\ 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\\ 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<--
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\\", line 135, in
File "C:\Users\Jung\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\", line 338, in run
items = self._dispatch(self.request.path)
File "C:\Users\Jung\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\", line 312, in _dispatch
listitems = view_func(**items)
File "C:\Users\Jung\AppData\Roaming\Kodi\addons\\", line 81, in episode_post
url = scraper.extractEpisodeDataUrlFromPage(post)
File "C:\Users\Jung\AppData\Roaming\Kodi\addons\\resources\lib\", line 83, in extractEpisodeDataUrlFromPage
epinfo_tmpl ="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://
2022-11-04 14:16:09.841 T:14016 ERROR : CGUIMediaWindow::GetDirectory(plugin:// 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
I guess there is no one to save my soul from their awful smart tv apps Sad
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 ="setPageDataUrl('([^']*)')", r.text).group(1)


epinfo_tmpl ="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.
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
The error in the exception is due to 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.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix see: Aeon MQ5 Mod Matrix release thread
Nexus see: Aeon MQ5 Mod Nexus release thread
Aeon MQ 5 skin and addon repo 11.1.0
since no one seems to work with plug-in request I'm going to close down good drive access today.
I'm interested in looking at it, if you have an account you can DM it to me.

Logout Mark Read Team Forum Stats Members Help
ondemandkorea video addon0
This forum uses Lukasz Tkacz MyBB addons.