Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Live stream error #61

Open
TseClifford opened this issue Nov 25, 2021 · 11 comments · May be fixed by #62
Open

HTTP Live stream error #61

TseClifford opened this issue Nov 25, 2021 · 11 comments · May be fixed by #62

Comments

@TseClifford
Copy link

There seems to be an issue when trying to play from an HLS source. The link plays fine through a browser but throws an error on Kodi.

ERROR : ResolveURL: AttributeError Error - From: Icdrama Link: http://icdrama.to/vidembed.cYl_9XLclxXNhR9lksfVlw.html: 'bool' object has no attribute 'startswith'
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: 'bool' object has no attribute 'startswith'
    Traceback (most recent call last):
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\addon.py", line 20, in
    action_func(**kargs)
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 28, in make_dir
    diritems = func(*args, **kargs)
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 189, in mirrors
    return _mirrors(url)
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 204, in _mirrors
    play_mirror(url)
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 173, in play_mirror
    vidurl = common.resolve(iframe_url)
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\common.py", line 89, in resolve
    return hmf.resolve()
    File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\script.module.resolveurl\lib\resolveurl\hmf.py", line 188, in resolve
    if stream_url.startswith("//"):
    AttributeError: 'bool' object has no attribute 'startswith'
    -->End of Python script error report<--
@CloudRealm
Copy link

Same Issue, here. I am using soraxas's version of the addon linked here:https://github.com/soraxas/aznhusband.github.io/releases/tag/15fe433 on Kodi 19.1

ERROR : ResolveURL: AttributeError Error - From: Icdrama Link: http://icdrama.to/vidembed.MZZZBNqo67D1ZI6tJYQPCwTF1Sfpw_00t28RCMtSAOw.html: 'bool' object has no attribute 'startswith'

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: 'bool' object has no attribute 'startswith'
Traceback (most recent call last):
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\addon.py", line 20, in
action_func(**kargs)
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 28, in make_dir
diritems = func(*args, **kargs)
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 189, in mirrors
return _mirrors(url)
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 204, in _mirrors
play_mirror(url)
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\actions.py", line 173, in play_mirror
vidurl = common.resolve(iframe_url)
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\plugin.video.icdrama\lib\common.py", line 89, in resolve
return hmf.resolve()
File "C:\Users\XXXXXX\AppData\Roaming\Kodi\addons\script.module.resolveurl\lib\resolveurl\hmf.py", line 188, in resolve
if stream_url.startswith("//"):
AttributeError: 'bool' object has no attribute 'startswith'
-->End of Python script error report<--

@eichstam
Copy link

eichstam commented Nov 29, 2021

Ran into the same issue


`2021-11-27 23:09:47.693 T:1414521728   DEBUG: CSettingsManager: requested setting (HdPlay_priority) was not found.
2021-11-27 23:09:47.693 T:1414521728   DEBUG: ResolveURL: Relevant Resolvers: [<class 'lib.resolvers.hdplay.HdPlay'>]
2021-11-27 23:09:47.694 T:1414521728   DEBUG: ResolveURL: adding resolver to cache: <class 'lib.resolvers.hdplay.HdPlay'>
2021-11-27 23:09:47.786 T:1414521728   DEBUG: ResolveURL: Resolving using HDplay plugin
2021-11-27 23:09:48.062 T:1414521728   ERROR: ResolveURL: AttributeError Error - From: Icdrama Link: http://icdrama.to/vidembed.Typ8snnDsUv9NaV84BMM9Q.html: 'bool' object has no attribute 'startswith'
2021-11-27 23:09:48.064 T:1414521728   DEBUG: ResolveURL: Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.module.resolveurl/lib/resolveurl/hmf.py", line 190, in resolve
                                                if stream_url.startswith("//"):
                                            AttributeError: 'bool' object has no attribute 'startswith'
2021-11-27 23:09:48.068 T:1414521728   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'bool' object has no attribute 'startswith'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.icdrama/addon.py", line 13, in <module>
                                                action_func(**kargs)
                                              File "/storage/.kodi/addons/plugin.video.icdrama/lib/actions.py", line 28, in make_dir
                                                diritems = func(*args, **kargs)
                                              File "/storage/.kodi/addons/plugin.video.icdrama/lib/actions.py", line 189, in mirrors
                                                return _mirrors(url)
                                              File "/storage/.kodi/addons/plugin.video.icdrama/lib/actions.py", line 204, in _mirrors
                                                play_mirror(url)
                                              File "/storage/.kodi/addons/plugin.video.icdrama/lib/actions.py", line 173, in play_mirror
                                                vidurl = common.resolve(iframe_url)
                                              File "/storage/.kodi/addons/plugin.video.icdrama/lib/common.py", line 84, in resolve
                                                return hmf.resolve()
                                              File "/storage/.kodi/addons/script.module.resolveurl/lib/resolveurl/hmf.py", line 190, in resolve
                                                if stream_url.startswith("//"):
                                            AttributeError: 'bool' object has no attribute 'startswith'
                                            -->End of Python script error report<--
2021-11-27 23:09:48.069 T:1414521728   DEBUG: onExecutionDone(44, /storage/.kodi/addons/plugin.video.icdrama/addon.py)
`


@chio0hai
Copy link

chio0hai commented Dec 5, 2021

This patch works for me.

plugin.video.icdrama.patch.txt

@FACUser
Copy link

FACUser commented Dec 6, 2021

This patch works for me.

plugin.video.icdrama.patch.txt

Thanks chio0hai. This patch also works for me.

@zeus820
Copy link

zeus820 commented Dec 6, 2021 via email

@TseClifford
Copy link
Author

This patch works for me.

plugin.video.icdrama.patch.txt

Thanks, works on my end as well.
I made a pull request to merge the fix.

@TseClifford TseClifford linked a pull request Dec 7, 2021 that will close this issue
@Skyjack888
Copy link

how do you apply this patch on a fire tv stick? Sincerely, Aaron

On Mon, Dec 6, 2021 at 12:48 PM FACUser @.***> wrote: This patch works for me. plugin.video.icdrama.patch.txt https://github.com/aznhusband/aznhusband.github.io/files/7655593/plugin.video.icdrama.patch.txt Thanks chio0hai. This patch also works for me. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#61 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQV6KYOZ3MKE6SYDMPVMCDUPTZOHANCNFSM5IZI5UHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

This patch works for me too. I was able to SSH to my Firetv and edit the hdplay.py file in ./plugin.video.icdrama/lib/resolvers/
DELETE this line
match = re.search(r'var\svideo_url\s=\s"(.+?)";', html)
REPLACE with this one
match = re.search(r'var\svideo_url\s?=\s?"(.+?)";', html)

@zeus820
Copy link

zeus820 commented Dec 16, 2021 via email

@Skyjack888
Copy link

SSH to your Firetv from a computer and edit the hdplay.py file in ./plugin.video.icdrama/lib/resolvers/
DELETE this line
match = re.search(r'var\svideo_url\s=\s"(.+?)";', html)
REPLACE with this one
match = re.search(r'var\svideo_url\s?=\s?"(.+?)";', html)

@carn1x
Copy link

carn1x commented Dec 19, 2021

Should it be possible to perform this edit without root? Or would any shell/sshd server/etc need to be running as root in order to access/modify kodi files?

@PoW888
Copy link

PoW888 commented Dec 26, 2021

Should it be possible to perform this edit without root? Or would any shell/sshd server/etc need to be running as root in order to access/modify kodi files?

If it helps, I was able to edit the file using adbfire and following the video here
https://www.google.com/search?q=adbFire&rlz=1C1CHBF_enUS806US806&sourceid=chrome&ie=UTF-8#kpvalbx=_8RPIYZXeNKigptQPpYK4WA58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants